Skip to main content
Visitor II
June 18, 2003
Question

ST7 ROM READ

  • June 18, 2003
  • 4 replies
  • 883 views
Posted on June 18, 2003 at 04:30

ST7 ROM READ

    This topic has been closed for replies.

    4 replies

    andysAuthor
    Visitor II
    June 17, 2003
    Posted on June 17, 2003 at 12:53

    Using an ST7Flite09

    Is there a way of Reading Rom and Producing a checksum?
    Visitor II
    June 17, 2003
    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
    Visitor II
    June 17, 2003
    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

    Visitor II
    June 18, 2003
    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