ST-link printf to console with GDB and semihosting or ITM and ST Link Utility
Hi, please can you explaine how to activate the SWO without passing by CubeMX, by adding the code responsible for this manually.
EDIT:
So i stalled with the semihosting and i get it to work in SWSTM32 on stm32f407:
-First you dont need to add the serial wire from cubemx if you need a cubemx project (for me a default project just activate the semihosting without more confugiration).
-If you dont need to use a cubemx project you just need to do the steps as described above(1-5) then delete all the function in syscalls.c which make errors then delete the “int _write(int file, char *ptr, int len)” and then the semihosting is working.