Fill unused memory

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

Fill unused memory

Jump to solution
1,992 Views
bataliero
Contributor III

" Linker can be used to fill unused bytes with a defined byte pattern."

 

I would like to use this feature to fill memory with NOPs. How to set it up?

Labels (1)
0 Kudos
Reply
1 Solution
1,047 Views
BlackNight
NXP Employee
NXP Employee

for Kinetis and gcc, see the 'fill' option here:

Using LD, the GNU linker - Section Options

View solution in original post

0 Kudos
Reply
6 Replies
1,047 Views
CrasyCat
Specialist III

Hello

Which MCU are you targeting (HCS08, HCS12, Coldfire, ...)?

CrasyCat

0 Kudos
Reply
1,047 Views
carloscuev
Contributor V

I would also like to know how to do it on HCS08 using CW 10.3

Thanks.

0 Kudos
Reply
1,047 Views
BlackNight
NXP Employee
NXP Employee

For the HCS08, there is the FILL command you can use in the linker .prm file:

ROM                  =  READ_ONLY0x182C TO 0xFFAF FILL 0x12;

I hope this helps.

0 Kudos
Reply
1,047 Views
RadekS
NXP Employee
NXP Employee

Just note: the same is valid also for S12(X) MCUs.

.prm file ; FILL

0 Kudos
Reply
1,047 Views
bataliero
Contributor III

Kinetis

0 Kudos
Reply
1,048 Views
BlackNight
NXP Employee
NXP Employee

for Kinetis and gcc, see the 'fill' option here:

Using LD, the GNU linker - Section Options

0 Kudos
Reply