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

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

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

4,596 Views
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
 
Labels (1)
Tags (1)
0 Kudos
3 Replies

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

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

500 Views
Alban
Senior Contributor II

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

Cheers,
Alban.

0 Kudos