i'm getting problem when i fill "0xDEADBEEF" in unused space in code section.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i'm getting problem when i fill "0xDEADBEEF" in unused space in code section.

1,372件の閲覧回数
upendra_kumar
Contributor I

please help me when i try to fill code section with "0xDEADBEEF" and then by help of bootloader i flash the mcu then it's not working.

but without fill its working fine.

the fill code i have written in linker file.

 .fill :
{
FILL(0xDEADBEEF);
. = ORIGIN(m_text) + LENGTH(m_text) - 1;
BYTE(0xAA)
___ROM_AT = .;
} > m_text

タグ(3)
0 件の賞賛
返信
3 返答(返信)

1,220件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

there is similar thread - hope it helps - https://community.nxp.com/thread/481926 

Jiri

0 件の賞賛
返信

1,220件の閲覧回数
upendra_kumar
Contributor I

Thank you

Sharing information related linker file.

But my issue is first I debug without fill code section

Then after I debug with fill code section.

Then I compare both file I getting deferent data at 0x008150 address location.

Please find attach file

0 件の賞賛
返信

1,220件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

well, it's hard to say with s-record only what can be wrong. It is possible share your project? When I run both versions - both ends in some loop around 0x3F0E address and never skips out from it.  

Jiri 

0 件の賞賛
返信