Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

CRC of flash code space

CRC of flash code space

2010-04-27 by Philippe Habib

I need to do a CRC of the code in my flash memory.  Using the IAR  
compiler, the linker will calculate the CRC and put it at the end of  
the flash.  I downloaded an app note (236) from Atmel which includes  
some assembler to do it.  Has anyone used it?  I have a couple of  
questions about it.

1.  It seems like the CRC code can live in eeprom and run from there   
I'm not clear on how to point the code to where in eeprom it will start.

2.  The code that comes with the app note has a spot that says  
something like "Insert program here" That makes me think my program  
should be there, but it doesn't make sense.  I was hoping for a CRC  
module I'd link in to my code and call at the start of my init code.   
Maybe I'll just have to write that in C and then optimize as needed.

Thanks for any pointers.

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.