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


Re: Printf via SWV doesn't print anything

Hello,

to do the printf I used semihosting from https://github.com/justyn/semihosting-cortexm-uosQuestion
I did minor modifications because the compiler complains but it works fine.
In my code I have
trace_printf(“>>>>> AmbientT: %3.3f°C AmbientP: %4.1fhPa\n”, oMeasure_AmbientTemperature.m_lTemperature/1000.0F,oMeasure_AmbientPressure.m_lPressure/100.0F );
In the openocd console:
>>>>> AmbientT: 27.114°C AmbientP: 1025.4hPa
My configuration is STM32f429I-DISCO openstm321.1.0 and eCos as RTOS

Hello,

I’ve fixed my bug !
Actually, in “system_stm32f10x.c”, I uncommented “#define PLL_SOURCE_HSE” instead of “#define PLL_SOURCE_HSI” and now ITM_SendChar works properly (“printf()” still doesn’t work however).

Have a good day.

Hi Julien,

Could you please describe, how you implemented the ITM? What are the files you included? What are the functions that you used? and what softwared did you view the output in? was in the console of openOCD or ST utility? Could you please describe. That would be a lot helpful.

Thank you

Rosh