MCF51 - CodeSourcery - Filling Used Memory

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MCF51 - CodeSourcery - Filling Used Memory

1,724 次查看
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 回复数

979 次查看
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 项奖励
回复

979 次查看
SoJulien
Contributor II

Thanks you Mike,

 

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

0 项奖励
回复

979 次查看
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 项奖励
回复