Skip to main content
ayanmukherjee
Associate II
June 4, 2014
Question

Printf function error stm32f103ze keil debugger not working

  • June 4, 2014
  • 1 reply
  • 661 views
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
This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
June 4, 2014
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 VenmoUp vote any posts that you find helpful, it shows what's working..