Posted on June 10, 2018 at 15:151) Configure the Target settings to build code for RAM
2) Disable 'Load Application at Startup'
3) Use 'Initialization File' to drive download/execution
Assuming an 0x20000000 SRAM address (Dbg_RAM.ini)
FUNC void Setup (void) {
SP = _RDWORD(0x20000000); // Setup Stack Pointer
PC = _RDWORD(0x20000004); // Setup Program Counter
_WDWORD(0xE000ED08, 0x20000000); // Setup Vector Table Offset Register
}
LOAD %L INCREMENTAL // load the application
Setup(); // Setup for Running
g, main
For external memory you'll need to add setup code to stand up the clocks, peripheral, pins and memory
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..