Questions about the CodeWarrior V2.10 limit the length of the .rodata area

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Questions about the CodeWarrior V2.10 limit the length of the .rodata area

987 次查看
hanghang
Contributor I

Why does CodeWarrior V2.10 limit the length of the .rodata area?
When I was doing CPU stress testing, I allocated too many read-only constants and got the following error:

Specified length of memory directive 'pseudo_rom' was exceeded within section '.rodata':specified 0x00040000 but length is now 0x00054228

0 项奖励
回复
1 回复

973 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

this is not limited by CodeWarrior itself, this is limited by size of segment used for rodata. For example, if the rodata is forced to internal_flash segment, which size is 0x40000 then it won't allow you to put more data than 0x40000 to this segment. You need to enlarge the segment (if there's enough space in physical flash) or you need to remove some other data from the segment.

Regards,

Lukas

0 项奖励
回复