Skip to main content
Carter Lee
Associate III
October 19, 2017
Question

How can I stop on PC=0 for debugging?

  • October 19, 2017
  • 2 replies
  • 582 views
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.

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    October 19, 2017
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    AvaTar
    Senior III
    October 19, 2017
    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.