"Dave Hylands" <[EMAIL PROTECTED]> wrote:
> c:/winavr/bin/../avr/include/avr/eeprom.h:208: error: can't find a
> register in class 'BASE_POINTER_REGS' while reloading 'asm'
> c:/winavr/bin/../avr/include/avr/eeprom.h:208: error: can't find a
> register in class 'BASE_POINTER_REGS' while reloading
Hi,
The following code snippet (as small as I could get it and still
reproduce the problem) fails to compile with the following command
line:
avr-gcc -c -mmcu=atmega168 ee-fail.c -Os
Dropping the -Os or using -O0 makes it work. Using -O1 -O2 -O3 or -Os
all cause the following errors:
606 >avr-
I have the following:
#define BOOTSTART 0x1F800
#define BL_SERIAL 2
#define BL_SMB 4
So I can say
((void (*)(void))((BOOT_START+BL_SERIAL)/2))();
When I want to jump into my bootloader at the serial download entry point.
In last years WinAvr that code breaks. It generates: