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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,030 Views
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

0 Kudos
3 Replies

878 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

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

Jiri

0 Kudos

878 Views
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 Kudos

878 Views
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 Kudos