[Icc-avr] CRC Check of Program Memory
Rodney Pearson
rodney at junipersys.com
Fri Sep 28 09:09:01 PDT 2007
Hello Michael -
I have worked on this. I developed a bootloader for the M2560 that has
a bootstrap that does what you are trying to do. The app note you refer
to has all the pieces, but it is not the clearest code in the world if
your plan on implementing it differently than Atmel has...I ended up
just stripping out the relevant CRC checking code (rot_word,rot_loop),
creating my own ASM routines and then called those from the C code.
This made it much more flexible for me since my CRC is pre-calculated
and stored in the last WORD of Flash...
Cheers!
Rodney Pearson
Software Engineer
Juniper Systems, Inc.
www.junipersys.com
________________________________
From: icc-avr-bounces at imagecraft.com
[mailto:icc-avr-bounces at imagecraft.com] On Behalf Of Bate, Michael
Sent: Friday, September 28, 2007 9:06 AM
To: icc-avr at imagecraft.com
Subject: [Icc-avr] CRC Check of Program Memory
This may have come up before; unfortunately I don't see how to search
the archives of this list.
I am looking for a way to validate the program memory of an AVR
Atmega168. Atmel provides an application note (AVR236) which includes
some assembly language code, but I do not see how to combine this code
with my C program written for the ImageCraft C compiler. There are
problems assembling this even with the assembler in AVR Studio.
Has anyone solved this problem already?
Thanks in advance.
----
Michael Bate
Principal Software Engineer
Integra Radionics
22 Terry Avenue
Burlington, MA 01803
Phone: 781-565-1313
Fax: 781-238-0606
E-mail: <mailto:michael.bate at integra-ls.com>
www.radionics.com
Integra Radionics, Trusted Accuracy
******************************
Confidentiality Notice: This e-mail transmission may contain material
that is confidential and/or proprietary. If the reader of this message
is not the intended recipient, dissemination, disclosure, distribution
or reliance on the contents is strictly prohibited. If you have received
this e-mail transmission in error, please reply to the sender and delete
the message and its contents from your system. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20070928/d48d9378/attachment-0001.html
More information about the Icc-avr
mailing list