This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem with restart debug when I reset the CPU

Good morning,

I relocated my startup code at address 0x8004000, I created a debug .ini file like this

FUNC void DebugSetup (void) {
// </h>
    SP = _RDWORD(0x08004000);           // Setup Stack Pointer
    PC = _RDWORD(0x08004004);           // Setup Program Counter
    _WDWORD(0xE000ED08, 0x08004000); // VTOR to Image Base
}

DebugSetup();                       // Debugger Setup

When I start the Debug all it's ok, the application starts from the main;
the problem is when I reset the cpu (from the button) to reinitialize the Debug again at the main. The disassembling code starts from the location 0x08000000, instead of 0x08004000.
Why? Is there a possible to resolve this problem?
Thanks