Forum: System Workbench for STM32

Logging Printf Logs on a text file and on Console[SOLVED].

I am using STM32XX device and SW4STM32 Version: 1.3.0.201507241045.I am using printf in my methods .How can I log the output of the printf on a text file by running the program on the STM32.Also how can I see the output on console.
Br,
Rp

Tunisia

I suggest using semihosting to display printf output in debugger console, for further information on semihosting see my post hereQuestion

To retarget debugger console output to a file, you have to check “File” checkbox and choose a file from Debug Configuration > Common (TAB)

Best Regards,
Tarek


Thanks.It worked !!