按上面的步骤进行配置,让整个程序放在RAM中运行,
; *************************************************************
; *** Scatter-Loading Description File generated by uVision ***
; *************************************************************
LR_IROM1 0x08000000 0x00010000 { ; load region size_region
ER_IROM1 0x08000000 0x00010000 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
}
RW_IRAM1 0x20000000 0x00010000 { ; RW data
*.o (RESET_ram, +First)
startup_stm32f10x_hd_RAM.o(+RO)
main.o(+RO +RW)
.ANY (+RW +ZI)
}
}
编译后,提示:
..\OBJ\BootLoaderFTPRAM.sct(7): error: L6236E: No section matches selector - no section to be FIRST/LAST.
|