IAR work well with EA4357 on host os none

This commit is contained in:
hathach
2014-03-06 10:29:57 +07:00
parent c35e668dc4
commit fee8e5227b
4 changed files with 16 additions and 5 deletions
+11
View File
@@ -0,0 +1,11 @@
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 "Board NGX4330\\host_os_none.axf" INCREMENTAL
LOAD %L INCREMENTAL
Setup(__scatterload); // Get ready to execute image in SRAM or whatever region it is in g,main