rt-thread-official/bsp/xplorer4330/m4/SPIFI 32MB Debug.ini

11 lines
448 B
INI
Raw Normal View History

FUNC void Setup (unsigned int region) {
region &= 0xFFFF0000;
SP = _RDWORD(region); // Setup Stack Pointer
PC = _RDWORD(region + 4); // Setup Program Counter
_WDWORD(0xE000ED08, region); // Setup Vector Table Offset Register
}
LOAD "build\\project.axf" INCREMENTAL
Setup(__scatterload); // Get ready to execute image in SRAM or whatever region it is in g,main