Link Directive warning :hole of size 0x6ffe4 between.rcw ending at 0xf9001c and.vletext starting at 0x1000000

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

Link Directive warning :hole of size 0x6ffe4 between.rcw ending at 0xf9001c and.vletext starting at 0x1000000

1,036 次查看
yongyuchen
Contributor I

gmemfile: warning: hole of size 0x6ffe4 between.rcw ending at 0xf9001c and.vletext starting at 0x1000000

what does this warning means?and how to Eliminate the warning ?

Thanks!

2 回复数

849 次查看
stanish
NXP Employee
NXP Employee

Hi

Which part are you using? Which compiler are you using?

The general answer would be:

If the address space is continuous you can create just one memory section instead of separate blocks

e.g. default MPC5744P linker script file for GCC from project generated by S32DS:

MEMORY
{
flash_rchw : org = 0x00FA0000, len = 0x4
 cpu0_reset_vec : org = 0x00FA0004, len = 0x4
 
 m_text : org = 0x1000000, len = 2048K 
 m_data : org = 0x40000000, len = 384K
 
 local_dmem : org = 0x50800000, len = 64K 
}

pastedImage_1.png

in the linker script above there is a gap 0x00FA0008..0x00FFFFFF

to avoid the gap you can adjust the m_text block:

MEMORY
{
flash_rchw : org = 0x00FA0000, len = 0x4
 cpu0_reset_vec : org = 0x00FA0004, len = 0x4
m_text : org = 0x00FA0008, len = 2432K - 8 ‍‍‍‍‍

Hope it helps.

Stan

0 项奖励

849 次查看
martin_kovar
NXP Employee
NXP Employee

Hello,

could you please at first clarify, which device and which IDE you use?

Regards,

Martin