How can I stop on PC=0 for debugging?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-10-19 1:53 AM
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.
Is there any way to start for debugging at the PC =0?
I want to see the how to work the memories.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-10-19 3:41 AM
Zero contains vector data, not code, it is not an executable address.
Look at what the Initial PC vector actually points too.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-10-19 4:00 AM
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.
