Printf via ST-Link [Newbie]

Discussions concerning TrueSTUDIO for STM32 9.0.0 and later versions.

Moderators: Markus Girdland, Mattias Norlander

iwbnwif
Posts: 1
Joined: Wed Nov 14, 2018 11:00 am

Printf via ST-Link [Newbie]

Postby iwbnwif » Wed Nov 14, 2018 11:13 am

Sorry for posting such a basic question, but I am still stuck after a lot of googling.

I have an STM32 like this one https://uk.farnell.com/stmicroelectroni ... dp/1824325 with on-board ST-Link.

I am using Atollic TrueSTUDIO for STM32 version 9.01 and have downloaded the STM321VL_DIscover_FreeRTOS_Simple_Demo from the TrueSTORE. Everything is working fine with the demo, and I can extend it to create tasks, read the buttons, manipulate the LEDs etc.

I choose the option to include tiny_printf.c and would like to send a simple "Hello World\n" back to the debugger and see it somewhere inside the debug perspective. However, no amount of searching has revealed a way to do this.

As soon as the execution hits the printf statement, it jumps straight to HardFault_Handler, even if I set a breakpoint inside tiny_printf.c. I can't see why this jump should occur when the execution hasn't reached a hardware statement?

Do I need to STM32CubeMX even with the TrueSTORE demo?

Thanks for helping!

Return to “TrueSTUDIO for STM32 discussions”

Who is online

Users browsing this forum: No registered users and 1 guest