2017-10-19 01: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.
2017-10-19 03:41 AM
Zero contains vector data, not code, it is not an executable address.
Look at what the Initial PC vector actually points too.
2017-10-19 04: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.