在工程中增加例程文件:F2806x_CSMPasswords.asm
文件部分内容如下:
.sect "csmpasswds"
.int 0xFFFF ;PWL0 (LSW of 128-bit password)
.int 0xFFFF ;PWL1
.int 0xFFFF ;PWL2
.int 0xFFFF ;PWL3
.int 0xFFFF ;PWL4
.int 0xFFFF ;PWL5
.int 0xFFFF ;PWL6
.int 0xFFFF ;PWL7 (MSW of 128-bit password)
编译后报错如下:
##################################################################################################
"../F28069.cmd", line 138: error #10099-D: program will not fit into available
memory. placement with alignment/blocking fails for section "csm_rsvd" size
0xec page 0. Available memory ranges:
CSM_RSVD size: 0x76 unused: 0x76 max hole: 0x76
"../F28069.cmd", line 137: error #10099-D: program will not fit into available
memory. placement with alignment/blocking fails for section "csmpasswds"
size 0x10 page 0. Available memory ranges:
CSM_PWL_P0 size: 0x8 unused: 0x8 max hole: 0x8##################################################################################################
F28069.cmd为默认文件,有关部分如下:
CSM_RSVD : origin = 0x3F7F80, length = 0x000076 /* Part of FLASHA. Program with all 0x0000 when CSM is in use. */
BEGIN : origin = 0x3F7FF6, length = 0x000002 /* Part of FLASHA. Used for "boot to Flash" bootloader mode. */
CSM_PWL_P0 : origin = 0x3F7FF8, length = 0x000008 /* Part of FLASHA. CSM password locations in FLASHA */
………………
………………
csmpasswds : > CSM_PWL_P0, PAGE = 0
csm_rsvd : > CSM_RSVD, PAGE = 0
问题:
1. 按照cmd文件中csmpasswds的区域size为8;size应该为word型(16位双字节型)的个数,
2. 编译时为什么按照byte个数来计数?csmpasswds区域占用16个字节。
是不是由于以上原因编译报错,互相冲突?是我设置有问题吗?
zhi zeng2:
您好!
请问这个问题解决了吗?我碰到了同样的问题。
在工程中增加例程文件:F2806x_CSMPasswords.asm
文件部分内容如下:
.sect "csmpasswds"
.int 0xFFFF ;PWL0 (LSW of 128-bit password)
.int 0xFFFF ;PWL1
.int 0xFFFF ;PWL2
.int 0xFFFF ;PWL3
.int 0xFFFF ;PWL4
.int 0xFFFF ;PWL5
.int 0xFFFF ;PWL6
.int 0xFFFF ;PWL7 (MSW of 128-bit password)
编译后报错如下:
##################################################################################################
"../F28069.cmd", line 138: error #10099-D: program will not fit into available
memory. placement with alignment/blocking fails for section "csm_rsvd" size
0xec page 0. Available memory ranges:
CSM_RSVD size: 0x76 unused: 0x76 max hole: 0x76
"../F28069.cmd", line 137: error #10099-D: program will not fit into available
memory. placement with alignment/blocking fails for section "csmpasswds"
size 0x10 page 0. Available memory ranges:
CSM_PWL_P0 size: 0x8 unused: 0x8 max hole: 0x8##################################################################################################
F28069.cmd为默认文件,有关部分如下:
CSM_RSVD : origin = 0x3F7F80, length = 0x000076 /* Part of FLASHA. Program with all 0x0000 when CSM is in use. */
BEGIN : origin = 0x3F7FF6, length = 0x000002 /* Part of FLASHA. Used for "boot to Flash" bootloader mode. */
CSM_PWL_P0 : origin = 0x3F7FF8, length = 0x000008 /* Part of FLASHA. CSM password locations in FLASHA */
………………
………………
csmpasswds : > CSM_PWL_P0, PAGE = 0
csm_rsvd : > CSM_RSVD, PAGE = 0
问题:
1. 按照cmd文件中csmpasswds的区域size为8;size应该为word型(16位双字节型)的个数,
2. 编译时为什么按照byte个数来计数?csmpasswds区域占用16个字节。
是不是由于以上原因编译报错,互相冲突?是我设置有问题吗?
吟啸徐行:
回复 zhi zeng2:
这是应为在 DSP280x_pwd.asm文件中也往csmpasswds的区域存储了8个int型数据,在加上DSP280x_CSMPasswords.asm文件中存储的8个数据,一共要往csmpasswds区域存16个int型数据。而CMD文件中只给csmpasswds区域分配了8个int的长度。 解决办法是把DSP280x_pwd.asm文件删掉就好了。希望能帮到你。