Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


You are viewing a reply to printf through uart  

printf through uart

Hello,

Thank you for the usefull infos.
By copying the syscalls.c file into my project and adding the flollowing function at the end of my main.c, I managed to get some output on a serial monitor by calling print().

int __io_putchar(int ch) {
  HAL_UART_Transmit(&huart2, (uint8_t *)&ch, 1, 0xFFFF);
  return ch;
}


But in a project converted to C++, doing the exact same modifications does not work. The function _ _ io_putchar() is never called.

Does anyone know what could cause that?

Thanks.