Re: [avr-gcc-list] __checksum

2008-05-29 Thread Bob Paddock
> Would seem IAR automatically buries a __checksum in the code > image but avr-gcc does not. The equivalent in avr-gcc is __data_log_end[1], see the code I just posted. The one possible difference is that __checksum is purely the code, .text in avr-gcc, where __data_log_end[1] is .text+.data. _

Re: [avr-gcc-list] __checksum

2008-05-29 Thread Bob Paddock
> I have been successfully porting the old code from IAR to AVR GCC except for > the followings: > extern flash unsigned short __checksum; If your 'checksum' is the last thing after your program, the equivalent in avr-gcc is __data_log_end[1]. You appear to be trying to do the same as this code:

Re: [avr-gcc-list] __checksum

2008-05-29 Thread David Kelly
On Thu, May 29, 2008 at 11:25:01AM -0600, Blake Leverett wrote: > On Thursday 29 May 2008, trile58 wrote: > > > > I had flash changed to PROGMEM as instructed in the porting document. > > However, I got an error "undefined reference to __checksum" . > It looks like the problem is the "flash" keywo

Re: [avr-gcc-list] __checksum

2008-05-29 Thread Blake Leverett
On Thursday 29 May 2008, trile58 wrote: > I have been successfully porting the old code from IAR to AVR GCC except > for the followings: > > extern flash unsigned short __checksum; >CRC_SUM = 0; /* Clear CRC-Check of Program Memory (Flash) > */ >/* Checksum of Program memory (

Re: [avr-gcc-list] __checksum

2008-05-29 Thread David Kelly
On Thu, May 29, 2008 at 09:48:08AM -0700, trile58 wrote: > > I have been successfully porting the old code from IAR to AVR GCC except for > the followings: > > extern flash unsigned short __checksum; >CRC_SUM = 0; /* Clear CRC-Check of Program Memory (Flash) > > */

[avr-gcc-list] __checksum

2008-05-29 Thread trile58
I have been successfully porting the old code from IAR to AVR GCC except for the followings: extern flash unsigned short __checksum; CRC_SUM = 0; /* Clear CRC-Check of Program Memory (Flash) */ /* Checksum of Program memory (IAR-Example) */ CRC_