Fill unused memory

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,975件の閲覧回数
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,030件の閲覧回数
BlackNight
NXP Employee
NXP Employee

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

Using LD, the GNU linker - Section Options

元の投稿で解決策を見る

0 件の賞賛
返信
6 返答(返信)
2,030件の閲覧回数
CrasyCat
Specialist III

Hello

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

CrasyCat

0 件の賞賛
返信
2,030件の閲覧回数
carloscuev
Contributor V

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

Thanks.

0 件の賞賛
返信
2,030件の閲覧回数
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,030件の閲覧回数
RadekS
NXP Employee
NXP Employee

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

.prm file ; FILL

0 件の賞賛
返信
2,030件の閲覧回数
bataliero
Contributor III

Kinetis

0 件の賞賛
返信
2,031件の閲覧回数
BlackNight
NXP Employee
NXP Employee

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

Using LD, the GNU linker - Section Options

0 件の賞賛
返信