MCF51 - CodeSourcery - Filling Used Memory

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

MCF51 - CodeSourcery - Filling Used Memory

1,723件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

978件の閲覧回数
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 件の賞賛
返信

978件の閲覧回数
SoJulien
Contributor II

Thanks you Mike,

 

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

0 件の賞賛
返信

978件の閲覧回数
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 件の賞賛
返信