cancel
Showing results for 
Search instead for 
Did you mean: 

How can I stop on PC=0 for debugging?

Carter Lee
Associate III
Posted on October 19, 2017 at 10:53

I'm currently working with MDK and ULINK2 JTAG debugger in STM32F103C8.

I want to stop Program Counter = 0; for debugging.

But currently as much as I can stop debugging point is just PC = 0x80000178.

0690X00000608gsQAA.png

Is there any way to start for debugging at the PC =0?

I want to see the how to work the memories.

2 REPLIES 2
Posted on October 19, 2017 at 12:41

Zero contains vector data, not code, it is not an executable address.

Look at what the Initial PC vector actually points too.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
AvaTar
Lead
Posted on October 19, 2017 at 13:00

Your current stop is the reset vector, i.e. the address fetched from 0x00000000.

This is basically what you want. Memory initialization happens here, before calling _main.