Re: [avr-gcc-list] Inconsisten behaviour of switch statement

2007-03-27 Thread Joerg Wunsch
As Schwichtenberg, Knut wrote: Is compiled to: .LM2: lds r24,minute clr r25 cpi r24,15 cpc r25,__zero_reg__ breq .L6 .LM3: cpi r24,16 cpc r25,__zero_reg__ brge .L10

RE: [avr-gcc-list] Inconsisten behaviour of switch statement

2007-03-27 Thread Schwichtenberg, Knut
Hi, -Original Message- From: Joerg Wunsch [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 27, 2007 9:51 AM To: avr-gcc-list@nongnu.org Cc: Schwichtenberg, Knut Subject: Re: [avr-gcc-list] Inconsisten behaviour of switch statement Yes, but this is technically OK. The volatile

RE: [avr-gcc-list] Inconsisten behaviour of switch statement

2007-03-27 Thread Eric Weddington
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] org] On Behalf Of Schwichtenberg, Knut Sent: Tuesday, March 27, 2007 2:27 AM To: Joerg Wunsch; avr-gcc-list@nongnu.org Subject: RE: [avr-gcc-list] Inconsisten behaviour of switch statement At the meoment

[avr-gcc-list] Determine a segment length I the makefile

2007-03-27 Thread Schwichtenberg, Knut
Hi, I know I could set the length of a segment in the linker script. Is there a chance to set it in the makefile? While the linker scripts for the avr5 are able to handle the M128-memory my M32 run out of memory without any comment - especially if I add an additional bootloader. Cheers Knut

[avr-gcc-list] Embedding CRC into hex file

2007-03-27 Thread larry barello
Does anyone have the AVR equivalent routine for one of the CRC16 generated with srecord they would share? I would like to modify my boot loader to check the application code before running so corrupted downloads don't wedge my application. I know there are plenty of examples on the web (I have

Re: [avr-gcc-list] Embedding CRC into hex file

2007-03-27 Thread Bob Paddock
On Tue, 27 Mar 2007 11:22:13 -0400, larry barello [EMAIL PROTECTED] wrote: Does anyone have the AVR equivalent routine for one of the CRC16 generated with srecord they would share? I would like to modify my boot loader to check the application code before running so corrupted downloads

Re: [avr-gcc-list] Embedding CRC into hex file

2007-03-27 Thread Bob Paddock
On Tue, 27 Mar 2007 14:34:27 -0400, larry barello [EMAIL PROTECTED] wrote: Srec_cat has CCITT 16 built in. What stopping you? How do you initialize it with all ones? Last I looked it was initialized with all zeros, and I did not see away to initialize it otherwise. If you initialize with

Re: [avr-gcc-list] Implementation RS485 communication in c

2007-03-27 Thread Daniel O'Connor
On Wednesday 28 March 2007 14:13, Christian Engel wrote: I think for implement a communication between two ATmega 162 with the RS485 standard. Has anybody before implement a communication with RS485 in c? I'm sure that, but has anybody more information about it for me? In facts I'm looking