Are you comparing an internally generated CRC to the CRC generated by their published algorithm? Or are comparing a CRC generated by their published algorithm against something computed elsewhere? Also, make note of the fact that what is saved in memory MAY be the complement (I think thats it) of the real CRC such that when you run the CRC test over the ENTIRE code (including the CRC), you get some "well-known" value, such as 0x00. Jim > Thanks, > > I got that far too. I can get the CRC placed into the file, and I can > read it. My problem is I can't generate one that matches the one in > the file. I tried several methods and while they agree with each > other, none agree with the IAR one. > > I've seen the same problem raised in the AVR forum, but the people > who've solved it never post the resolution. > > I'll have to back off and take a fresh look. > > > On May 11, 2010, at 1:18 PM, wagnerj@proaxis.com wrote: > >> Hello, Phillipe >> >> I did some digging through the IAR docs. >> >> In the Linker documentation, it shows you how to generate and view >> the CRC >> of various linked modules. And, if you search that same document for >> "checksum", you will find a description of their checksum algorithm >> that >> can be included in code, as in a bootloader. >> >> Hope this helps >> Jim >> >> >> >> ------------------------------------ >> >> Yahoo! Groups Links >> >> >> > >
Message
Re: [AVR-Chat] Re; CRC using IAR compiler
2010-05-12 by wagnerj@proaxis.com
Attachments
- No local attachments were found for this message.