cancel
Showing results for 
Search instead for 
Did you mean: 

Hello. I am using an STM32F407VG Discovery Board. I recently encountered a problem with the ITMdataconsole of the STM32CubeMX IDE. My problem is if I use printf using argument, it triggers HardFault exception. ( HFSR bits are also not set to any value)

AKuma.10
Associate

This is the code I am debugging.0693W000001reCRQAY.png

This is the problem I encounter. The highlighted statement is a printf statement I have used in the HardFault handler0693W000001reCWQAY.png

2 REPLIES 2
matte
Associate II

Cannot re-produce. Here is my ITM console output:

Exception : Usafefault
MSP = 0x2001ffc8
UFSR = 1

I don't understand what you're trying to say.