cancel
Showing results for 
Search instead for 
Did you mean: 

ST7 ROM READ

andys
Associate II
Posted on June 18, 2003 at 04:30

ST7 ROM READ

4 REPLIES 4
andys
Associate II
Posted on June 17, 2003 at 12:53

Using an ST7Flite09

Is there a way of Reading Rom and Producing a checksum?
sjo
Associate II
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
Associate II
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
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