链接文件可能工作,结构类似于引导闪存=引导闪存=-bxl -0xbfc0000~0xbfc048 f:kSeG1BoToMe0xBFC0490~0xBFC0FFF:0x9FC01000~0x9FC01FFF:ExpExtIOM0x9FC02000~0x9FC02FEF:Debug GeXeXeXMFM。这里是应用程序的一部分KSG00A程序MME-APP--- 0x9D012000~0x9D0128F: KSGE1BoToMeM0x9D012490~0X9D07EFF:KSG00A程序MME0X9D07F0~0X9D07FFFF:例外
以上来自于百度翻译
以下为原文
Here is part of the APP's linker file that might work,
_ebase_address = 0x9D07F000; // <----- move to the end of the program flash
...
_RESET_ADDR = (0x9D012000); // <----- the entry point of the APP
_BEV_EXCPT_ADDR = ((0x9D012000) + 0x380);
_DBG_EXCPT_ADDR = ((0x9D012000) + 0x480);
_DBG_CODE_ADDR = 0xBFC02000;
_DBG_CODE_SIZE = 0xFF0 ;
_GEN_EXCPT_ADDR = _ebase_address + 0x180;
/*************************************************************************
* Memory Regions
*
* Memory regions without attributes cannot be used for orphaned sections.
* Only sections specifically assigned to these regions can be allocated
* into these regions.
*************************************************************************/
MEMORY
{
kseg0_program_mem (rx) : ORIGIN = (0x9D012000 + 0x490), LENGTH = 0x80000 - (0x12000 + 0x490) /* All C Files will be located here */
kseg0_boot_mem : ORIGIN = 0x9D012000, LENGTH = 0x0 /* This memory region is dummy */
exception_mem : ORIGIN = 0x9D07F000, LENGTH = 0x1000 /* Interrupt vector table */
kseg1_boot_mem : ORIGIN = (0x9D012000), LENGTH = 0x490 /* C Startup code */
debug_exec_mem : ORIGIN = 0xBFC02000, LENGTH = 0xFF0
config3 : ORIGIN = 0xBFC02FF0, LENGTH = 0x4
config2 : ORIGIN = 0xBFC02FF4, LENGTH = 0x4
config1 : ORIGIN = 0xBFC02FF8, LENGTH = 0x4
config0 : ORIGIN = 0xBFC02FFC, LENGTH = 0x4
kseg1_data_mem (w!x) : ORIGIN = 0xA0000000, LENGTH = 0x8000
sfrs : ORIGIN = 0xBF800000, LENGTH = 0x100000
configsfrs : ORIGIN = 0xBFC02FF0, LENGTH = 0x10
}
The structure is like
===== boot flash ======
--- BTL ---
0xBFC00000~0xBFC0048F: kseg1_boot_mem
0xBFC00490~0xBFC00FFF:
0x9FC01000~0x9FC01FFF: exception_mem
0x9FC02000~0x9FC02FEF: debug_exec_mem
===== program flash =====
--- BTL ---
0x9D000000~0x9D011FFF: kseg0_program_mem
--- APP ---
0x9D012000~0x9D01248F: kseg1_boot_mem
0x9D012490~0x9D07EFFF: kseg0_program_mem
0x9D07F000~0x9D07FFFF: exception_mem