Gast
#283542
Hi. Curently I'm starting to work with WinAVR + Eclipse. I've read "region text is full" post on forum and I've downloaded plugin for WinAVR and installed in Eclipse. Second I've downloaded and created project with AVRButterfly application (http://www.siwawi.arubi.uni-kl.de/avr_projects/index.html). I've set Build options and one thing is not working: The Memory map sad that device ATmega169 has 0x2000 of flash instead of 0x4000. Here yu can see: -----------------------------------------start Memory Configuration Name Origin Length Attributes text 0x00000000 0x00002000 xr data 0x00800060 0x0000ffa0 rw !x eeprom 0x00810000 0x00010000 rw !x default 0x00000000 0xffffffff Linker script and memory map LOAD C:/pro/WinAVR/bin/../lib/gcc/avr/3.4.3/../../../../avr/lib/avr5/crtm161. o LOAD C:/pro/WinAVR/bin/../lib/gcc/avr/3.4.3/../../../../avr/lib/avr5\libm.a LOAD ./sources/ADC.o LOAD ./sources/BCD.o LOAD ./sources/LCD_driver.o LOAD ./sources/LCD_functions.o LOAD ./sources/RTC.o LOAD ./sources/button.o LOAD ./sources/dataflash.o LOAD ./sources/eeprom.o LOAD ./sources/eeprom169.o LOAD ./sources/main.o LOAD ./sources/test.o LOAD ./sources/timer0.o LOAD ./sources/usart.o LOAD C:/pro/WinAVR/bin/../lib/gcc/avr/3.4.3/avr5\libgcc.a LOAD C:/pro/WinAVR/bin/../lib/gcc/avr/3.4.3/../../../../avr/lib/avr5\libc.a LOAD C:/pro/WinAVR/bin/../lib/gcc/avr/3.4.3/avr5\libgcc.a -------------------------------------------end And here is the part of command line executing with avr-gcc: -------------------------------------------start Building file: ../sources/usart.c Invoking: AVR-GCC C Compiler avr-gcc -c -fmessage-length=0 -Wall -Wstrict-prototypes -ID:\eclipse\workspace\Butterfly\headers -IC:\pro\WinAVR\avr\include -mmcu=avr5 -minit-stack=__stack -D__AVR_ATmega169__ -Os -fshort-enums -fpack-struct -funsigned-char -funsigned-bitfields -std=gnu99 -g3 -osources/usart.o ../sources/usart.c Finished building: ../sources/usart.c Building target: Butterfly.elf Invoking: AVR-GCC C Linker avr-gcc -o Butterfly.elf -lm -Wl,-Map=Butterfly.map --cref --oformat=coff-avr -mmcu=avr5 ./sources/ADC.o ./sources/BCD.o ./sources/LCD_driver.o ./sources/LCD_functions.o ./sources/RTC.o ./sources/button.o ./sources/dataflash.o ./sources/eeprom.o ./sources/eeprom169.o ./sources/main.o ./sources/test.o ./sources/timer0.o ./sources/usart.o C:\pro\WinAVR\bin\..\lib\gcc\avr\3.4.3\..\..\..\..\avr\bin\ld.exe: region text is full (Butterfly.elf section .text) make: *** [Butterfly.elf] Error 1 make: Target `all' not remade because of errors. Build complete for project Butterfly ------------------------------------------end And here are options from Managed code properities of Project: --------------------------------------start COMPILER -fmessage-length=0 -Wall -Wstrict-prototypes -I"D:\eclipse\workspace\Butterfly\headers" -I"C:\pro\WinAVR\avr\include" -mmcu=avr5 -minit-stack=__stack -D__AVR_ATmega169__ -Os -fshort-enums -fpack-struct -funsigned-char -funsigned-bitfields -std=gnu99 -g3 LINKER -lm -Wl,-Map=$(@:%.elf=%.map) --cref --oformat=coff-avr -mmcu=avr5 -----------------------------------------END OK. So can someone tell me why is it happen? Thanks Bart.