cancel
Showing results for 
Search instead for 
Did you mean: 

printf not working via ITM_Sendchar, _write never called

hegde_08
Associate II

I am trying to use SWD for printing using ITM_Sendchar, Printf not calling _write, I tried to put breakpoint and see, But it is not hitting breakpoint

 

 

hegde_08_0-1765201262291.pnghegde_08_1-1765201284864.pnghegde_08_2-1765201298919.pnghegde_08_3-1765201309930.png

hegde_08_0-1765201502832.pnghegde_08_1-1765201558665.png

 

24 REPLIES 24

How do I check this? any steps would be helpful

In debug configuration, It is enabled already

SB15 is a Solder Bridge.

A Solder Bridge allows a connection to be made or broken - they perform the same function as jumper links:

AndrewNeil_1-1765285749877.png

 

Specifically, SB15 allows the SWO connection between the STM32F303RE microcontroller and the ST-Link to be made or broken.

The link needs to be "made" to connect the SWO from the STM32F303RE microcontroller to the ST-Link.

AndrewNeil_0-1765285651692.png

 

ST seem to have omitted to mark which is the default here - so you'll have to check by looking at your board

@STOne-32 - the bold highlight on the default option seems to be missing for a number of them.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
hegde_08
Associate II

hegde_08_0-1765286765044.png

This is the board I got

So check to see if SB15 is open or closed

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

I am new to this, What exactly need to be checked in the board

 

This is how it looks

hegde_08_0-1765290280493.png

 

I also tried to change the core clock, default waf 16, But in the manual I saw that it is 72, So i changed that also

But Still I cannot see the logs in Trace, What I am suppose to do?

Hello @Andrew Neil , Any other suggestions to make this work?

No, sorry - out of ideas.

 

I would just use a UART...

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.