Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 22104

Problems in slaa294a checksum

$
0
0

Hi,

I am planning to use the checksum functionality listed on the application note and example code slaa294a.

There are a few places where the example seems to have some gremlins.
Hopefully, someone from TI or the community can tell me if I'm right so that I don't put bugs into a production.

  • The comments n the code and the pdf file indicate that the checksum spans two segments of the flash memory which should be 1024 bytes /  0x400 (0xFA00 to 0xFDFF).
    In the for loops for generating and testing the checksum, the range is 0 to 0x200 which looks like it's spanning only a single block (512 bytes / 0x200). 
    (I assume that incrementing pointers works in bytes and not words).
  • In setting up FCTL2 the FSSEL0 is used which implies that ACLK is the base clock
    The divider FN0 is used which means that the divider should be one 
    Flash clock should be written as ACLK/1 instead of MCLK/2
  • At the end of the example, the set lock code is missing. Is this optional or is this omission a mistake?
  • Overall logic listed in the comments hasn't been implemented in the code. 

Looking forward to some answers from the community. If I'm posting a topic that I should have found with searches- please let me know what terms I should have used.


Viewing all articles
Browse latest Browse all 22104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>