1,对于汇编调试不需要加载启动项,仅设置堆栈即可。
2,默认分散加载文件如下; ***************************************************
; * Scatter-Loading Description File generated by uVision *
; ***************************************************
LR_IROM1 0x00000000 0x00040000 { ; load region size_region
ER_IROM1 0x00000000 0x00040000 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
}
RW_IRAM1 0x20000000 0x00020000 { ; RW data
.ANY (+RW +ZI)
}
}
3,所以开辟代码 区域时,要用RESET与上面的*.o (RESET, +First)一致否则提示
.\Objects\5.sct(7): error: L6236E: No section matches selector - no section to be FIRST/LAST.
STACK_TOP EQU 0X00002000
AREA RESET,CODE
DCD STACK_TOP
DCD START
EN