Fill unused memory

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

Fill unused memory

跳至解决方案
2,971 次查看
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?

标签 (1)
0 项奖励
回复
1 解答
2,026 次查看
BlackNight
NXP Employee
NXP Employee

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

Using LD, the GNU linker - Section Options

在原帖中查看解决方案

0 项奖励
回复
6 回复数
2,026 次查看
CrasyCat
Specialist III

Hello

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

CrasyCat

0 项奖励
回复
2,026 次查看
carloscuev
Contributor V

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

Thanks.

0 项奖励
回复
2,026 次查看
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 项奖励
回复
2,026 次查看
RadekS
NXP Employee
NXP Employee

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

.prm file ; FILL

0 项奖励
回复
2,026 次查看
bataliero
Contributor III

Kinetis

0 项奖励
回复
2,027 次查看
BlackNight
NXP Employee
NXP Employee

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

Using LD, the GNU linker - Section Options

0 项奖励
回复