MCF51 - CodeSourcery - Filling Used Memory

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

MCF51 - CodeSourcery - Filling Used Memory

1,061 Views
SoJulien
Contributor II

Dear all,

 

I am using MCF51AC256, and I need to fill unsused memory (Flash, and maybie also RAM) as described in AN3305.

 

I need a simple method that does not interfer when compiling a new software release.

 

All yours ideas are welcome, thanks.

Julien

Labels (1)
0 Kudos
3 Replies

316 Views
egoodii
Senior Contributor III

If I can assume you are using CodeWarrior, then the linker FILL parameter:

ROM = READ_ONLY 0xF000 TO 0xFFAB FILL 0x83;

does a fine job of filling out the s19 file.  As an adjunct, adding the paramater section:

 

CHECKSUM

  CHECKSUM_ENTRY METHOD_CRC_CCITT

     OF READ_ONLY 0xF000 TO 0xFFAB

     INTO READ_ONLY 0xFFAC SIZE 2

     UNDEFINED 0x83

  END

END

will insert a CCITT checksum.

0 Kudos

316 Views
SoJulien
Contributor II

Thanks you Mike,

 

It seems pretty good, I will try it for both item I have post.

0 Kudos

316 Views
scifi
Senior Contributor I

Hi Julien,

 

Have a look at Srecord: http://srecord.sourceforge.net

You can use this program (more specifically, srec_cat) to manipulate .s19 files in all sorts of ways, including filling unused memory with a specific pattern.

 

Regards,

- mike

0 Kudos