CodeWarrior 8- & 16-bit tools: How do I fill unused NVM with SWI instructions ?

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

CodeWarrior 8- & 16-bit tools: How do I fill unused NVM with SWI instructions ?

5,370件の閲覧回数
marc_paquette
Contributor V
To help you find solutions to problems that have already been solved, we have posted this message. It contains an entire topic ported from a separate forum. The original message and all replies are in this single message.
 
Posted: Jul 22, 2004 - 11:45 AM   
 
9S12dp256B, CW V2.0, ANSI C.. I have a requirement that I fill my unused (Flash) memory with SWI commands. Is there an easier way than doing the brute force method of assigning constants to all the absolute memory addresses that need to be filled? This newbie could use some help... Thank You, in advance, for your time and patience.

 
Posted: Jul 22, 2004 - 04:48 PM   
 
Use FILL command -- the unused ROM will be filled with 0x55.
Refer to SmartLinker manual under your installation.
 
ROM = READ_ONLY 0x4000 to 0x7FFF file 0x55
 
mw_jcheng
 
ラベル(1)
タグ(1)
0 件の賞賛
返信
3 返答(返信)

1,274件の閲覧回数
danielfriederic
Contributor I
Hi Marc, there is a little typo in your mail.
The linker command is FILL, and not file :smileywink:

ROM = READ_ONLY 0x4000 to 0x7FFF FILL 0x55

Daniel
0 件の賞賛
返信

1,274件の閲覧回数
marc_paquette
Contributor V
Thank you both, danielfriederich and alban, for the corrections.
 
I encourage your feedback--feel free to correct all the mistakes you can find. :smileyhappy:
 
Marc.
0 件の賞賛
返信

1,274件の閲覧回数
Alban
Senior Contributor II

Also, 0x55 is not SWI. 0x3F is SWI for S12.

Cheers,
Alban.

0 件の賞賛
返信