Skip to main content
andys
Associate
Jun 18, 2003 2:30 AM UTC
Question

ST7 ROM READ

Posted on June 18, 2003 at 04:30

ST7 ROM READ

This topic has been closed for replies.

4 replies

andys
andysAuthor
Associate
Jun 17, 2003 10:53 AM UTC
Posted on June 17, 2003 at 12:53

Using an ST7Flite09

Is there a way of Reading Rom and Producing a checksum?
sjo
Associate III
Jun 17, 2003 12:22 PM UTC
Posted on June 17, 2003 at 14:22

There is no built in method to do this, but it would not be very hard to implement your own program checksum.

If you look in the Flash programming manual they explain the algo they use for the HDFlash devices.

Regards

Spen
simonharrison9
Visitor II
Jun 17, 2003 12:35 PM UTC
Posted on June 17, 2003 at 14:35

Hi Andy,

You need to use the Long Indirect Indexed addressing mode.

This allows you to set a memory address in RAM, then use the X or Y register as an index from that address.

Once 256 bytes are covered, increment the address in RAM until you have covered the memory range required.

I can provide demo code if required.

regards,

Simon

Anglia

parveen
Associate II
Jun 18, 2003 2:30 AM UTC
Posted on June 18, 2003 at 04:30

Have a look at Application Note 1070 ''ST7 Checksum Selfchecking capabelity''. This application note describes a software technique to determine if the data and program in flash have been corrupted.

Hope this helps

Regards,

PraveenG