load program
时间:10-02
整理:3721RD
点击:
请问:按下边编写.CMD文件,load program是不是在内部ram?还有如果内部ram空间不够,是不是自动进入外部ram?
MEMORY
{
PAGE 0: /* PROGRAM MEMORY */
VECS: origin=0h, length=0040h /* PROGRAM */
PROG: origin=0044h, length=7FFFh /* 32K On-chip flash memory */
PAGE 1: /* DATA MEMORY */
BLK_B2: origin=60h, length=20h /* Block B2 */
BLK_B0: origin=200h, length=100h /* Block B0, On-chip DARAM if CNF=0 */
BLK_B1: origin=300h , length=100h /* Block B1 */
SARAM_D: origin=0800H , length=0800H /* 2K SARAM in data space */
PERIPH: origin=7000h , length=1000h /* Peripheral register space */
EX2_DM: origin=8000h , length=8000h /* External data RAM */
}
SECTIONS
{
.vectors: {} > VECS PAGE 0 /* INTERRUPT VECTOR TABLE */
.pvecs: {} > PROG PAGE 0
.text: {} > PROG PAGE 0 /* CODE */
.data: {} > PROG PAGE 0 /* INITIALIZATION DATA TABLES */
.bss: {} > BLK_B1 PAGE 1
.context: {} > BLK_B2 PAGE 1
}
你这样是不可能load 到ram里面去的 改sections
很简单,程序是要load到ram里面执行的,你再cmd中把程序放到flash了,所以load时
会提示,把程序放在了一个不可写的地方了