Keil Logo

No data shown it Debug (printf) Viewer

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Author
Steven Jaszkowiak
Posted
18-Dec-2018 03:58 GMT
Toolset
ARM
New! No data shown it Debug (printf) Viewer

I am using STM32F103CB. I have followed the instructions below to get a printf() statement to send the message to the Debug(printf)Viewer but do not get any message in the window.

1. Check the STDERR, STDIN and STDOUT components and set the Variant to ITM for each component.

2. Add a debugging trace messages using printf.

3. Set up the debug session for SWO trace.

4. Set the ITM Port 0 to capture the information. Clear the Privilege Port 7..0 to access ITM Port 0 from User Mode.

Regards

Author
Sankalp Agarwal
Posted
18-Dec-2018 08:19 GMT
Toolset
ARM
New! RE: No data shown it Debug (printf) Viewer

Hi

Below link should help:
http://www.keil.com/pack/doc/compiler/RetargetIO/html/_retarget__examples__i_t_m.html

Author
Steven Jaszkowiak
Posted
18-Dec-2018 14:51 GMT
Toolset
ARM
New! RE: No data shown it Debug (printf) Viewer

Thanks for the response.

I followed the like which then said to follow the link

http://www.keil.com/pack/doc/compiler/RetargetIO/html/_retarget__examples.html#Retarget_Examples_Dsip

Which told how to get the USB Host Keyboard(MCBBSTM32F400) example project.

Unfortunately I have no such project listed. Do you know of a different example project I could use? Preferably one that uses the STM32F100 series.

Thanks.

Author
Westonsupermare Pier
Posted
18-Dec-2018 17:53 GMT
Toolset
ARM
New! RE: No data shown it Debug (printf) Viewer

ITM_SendChar() should be viable provided the SWO/PB3 is physically connected to a supported debugger, and you have the settings and frequency set correctly.

Author
Steven Jaszkowiak
Posted
8-Jan-2019 03:42 GMT
Toolset
ARM
New! RE: No data shown it Debug (printf) Viewer

The problem is solved. SWO/PB3 was not connected to the debugger. I use the ST-LINK V2 and typically only use SWDIO/PA13( pin 7 of ST-Link ) and SWDCLK/PA14( pin 9 of ST-Link). I needed to add the connection for SWO/PBS( pin 13 of ST-LINK ).

Thank you for your help.

Next Thread | Thread List | Previous Thread Start a Thread | Settings

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.