cancel
Showing results for 
Search instead for 
Did you mean: 

Printf function error stm32f103ze keil debugger not working

ayanmukherjee
Associate II
Posted on June 04, 2014 at 06:25

Hello. I am trying to interface MCBSTM32 with GP22. The main function involves printf function. The code is compiling without error. But the debugger is not working in presence of printf function. I have tested with simple integer/ float print. Debugger is not working. When I comment the printf functions the debugger is working fine. I have tried with increasing the heap size to 400 in startup_stm32f10x_hd.s but still it is not working. the stack size is 400. I am using keil version 510. Help solicited. 

#printf #stm32 #keil-uvision
1 REPLY 1
Posted on June 04, 2014 at 14:05

Have you added the appropriate semi-hosting/targeting code for your board? If not you are probably trapping in the Hard Fault Handler.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..