cancel
Showing results for 
Search instead for 
Did you mean: 

can't debug stm32f103

yaniv1982
Associate II
Posted on June 20, 2012 at 11:39

I tried to debug code stm32f103 but it getting stuck on 0x8002cc6 and not moving from there. even if  I do step out or step over.

The code is ok (working on product whick sold and installed).

The IAR J-Link sw is update.

I erased the memory and burn it agian the project and nothing changed.

When I debug the prog. with simulator it's working good without any problem.

What should I do in order to debug it with the J-link whith out stucking the program?  
2 REPLIES 2
Posted on June 20, 2012 at 14:08

The code is ok.

Signs point to no. It would have been helpful if you'd provided some code or disassembly around the hanging region.

Simulators are pretty useless at replicating peripheral behaviour and timing, if real hardware doesn't like your code there is clearly a problem with the code.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
yaniv1982
Associate II
Posted on June 21, 2012 at 07:50

Thank's for the advise.I'll do it next time.

I changed the micro and it start to work.

It starnge that when I turn on the product it work regularly.

The problem was only debuggng it.