Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/02/06 06:26
Read: times


 
#127246 - Checksum of what?
Responding to: ???'s previous message
James Corbin said:
Hi, I'm using an Atmel 8051 derivative without a built-in global checksum read ability.

What is a "global checksum read ability"?

Usually, only CODE space is checksummed (because it's only meaningful there) and any checking/reporting of it would have to be done by the code that you write.
More commonly, the checksum would be checked by some external device (eg, a PROM programmer)

What 8051 derivative does have a "global checksum read ability"?

execute at startup and store the result in RAM (later being transmitted to the PC terminal).

Usually, the checksum is stored in the ROM itself, and is such that performing the check operation over the whole ROM should result in a value of zero - if it doesn't, you know you've got an error!

There is a fundamental flaw here: if you accept the likelihood that your ROM will fail, how can you rely on your own code (whih must be stored in that same ROM) to check itself?
What happens if the ROM error happens to be somewhere within the checksum validation code...

1) Is a 32-bit CRC the typical checksum format used for something like this?

Not clear exactly what you mean, so not sure what would be "normal" for it!

Usually, ROM checks are just 16-bit simple checksums

2) For something like a 64k part, how long does this typically take to execute?

Don't know, but a 32-bit CRC is obviously going to take longer that a 16-bit simple checksum...


List of 26 messages in thread
TopicAuthorDate
Global Checksum            01/01/70 00:00      
   Checksum of what?            01/01/70 00:00      
      Rom Contents            01/01/70 00:00      
         why checksum???            01/01/70 00:00      
            The OP intended to use CRC-32...            01/01/70 00:00      
            ... but it's a good point otherwise...            01/01/70 00:00      
               timestamp vs crc            01/01/70 00:00      
                  timestamp, serial number, neutral 16 bit checksum            01/01/70 00:00      
                  who said 'automatic' and yes I have            01/01/70 00:00      
                     You didn't, Jan did            01/01/70 00:00      
   A bit of a logical fallasy            01/01/70 00:00      
      not at all... depends on application...            01/01/70 00:00      
      Statistics            01/01/70 00:00      
         ferrite beads            01/01/70 00:00      
            \"legitimate\" uses of checksum            01/01/70 00:00      
               I have seen NO catches by a checksum            01/01/70 00:00      
                  it's not just the matter of "kitchenware"...            01/01/70 00:00      
                     One thing that should not be handled by checksummi            01/01/70 00:00      
                        blah blah            01/01/70 00:00      
                        That's not how I remember it ...            01/01/70 00:00      
                           that was me            01/01/70 00:00      
                  I\'ve got a box that contains a few ...            01/01/70 00:00      
            links to CRC            01/01/70 00:00      
               I still say that crc's and checksums only work            01/01/70 00:00      
                  Most            01/01/70 00:00      
      I'd like to learn more            01/01/70 00:00      

Back to Subject List