hbrayman wrote on Wednesday, August 29, 2007:
---------- Capture Output ----------
These began occurring after updating WinAVR.
We get these messages when compiling with optimization = s.
Compiling with optimization = 0, cleans up much of these warnings but the result crashes during initialization.
Compiling: /newFreeRTOS/FreeRTOS/Source/tasks.c
/newFreeRTOS/FreeRTOS/Source/tasks.c:
In function ‘vTaskSwitchContext’:
/newFreeRTOS/FreeRTOS/Source/tasks.c:1455: warning: dereferencing type-punned pointer will break strict-aliasing rules
/newFreeRTOS/FreeRTOS/Source/tasks.c:
In function ‘prvListTaskWithinSingleList’:
/newFreeRTOS/FreeRTOS/Source/tasks.c:1841: warning: dereferencing type-punned pointer will break strict-aliasing rules
/newFreeRTOS/FreeRTOS/Source/tasks.c:1844: warning: dereferencing type-punned pointer will break strict-aliasing rules
/newFreeRTOS/FreeRTOS/Source/tasks.c: In function ‘xTaskResumeAll’:
/newFreeRTOS/FreeRTOS/Source/tasks.c:1331: warning:
inlining failed in call to ‘vTaskIncrementTick’: --param max-inline-insns-single limit reached
/newFreeRTOS/FreeRTOS/Source/tasks.c:1171: warning: called from here
Compiling: /newFreeRTOS/FreeRTOS/Source/queue.c
avr-gcc -c -mmcu=atmega128 -I. -g -DF_CPU=16000000UL -DID=50 -Dadc -DINTG=8 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Winline -Wa,-adhlns=/newFreeRTOS/FreeRTOS/Source/queue.lst -std=gnu99 -MD -MP -MF .dep/queue.o.d /newFreeRTOS/FreeRTOS/Source/queue.c -o /newFreeRTOS/FreeRTOS/Source/queue.o
Compiling: /newFreeRTOS/FreeRTOS/Source/list.c
avr-gcc -c -mmcu=atmega128 -I. -g -DF_CPU=16000000UL -DID=50 -Dadc -DINTG=8 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Winline -Wa,-adhlns=/newFreeRTOS/FreeRTOS/Source/list.lst -std=gnu99 -MD -MP -MF .dep/list.o.d /newFreeRTOS/FreeRTOS/Source/list.c -o /newFreeRTOS/FreeRTOS/Source/list.o
/newFreeRTOS/FreeRTOS/Source/list.c: In function ‘vListInitialise’:
/newFreeRTOS/FreeRTOS/Source/list.c:97: warning: dereferencing type-punned pointer will break strict-aliasing rules
/newFreeRTOS/FreeRTOS/Source/list.c:105: warning: dereferencing type-punned pointer will break strict-aliasing rules
/newFreeRTOS/FreeRTOS/Source/list.c:106: warning: dereferencing type-punned pointer will break strict-aliasing rules
/newFreeRTOS/FreeRTOS/Source/list.c: In function ‘vListInsert’:
/newFreeRTOS/FreeRTOS/Source/list.c:163: warning: dereferencing type-punned pointer will break strict-aliasing rules
Linking: pls_50_adc.elf
avr-gcc -mmcu=atmega128 -I. -g -DF_CPU=16000000UL -DID=50 -Dadc -DINTG=8 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Winline -Wa,-adhlns=pulse1.o -std=gnu99 -MD -MP -MF .dep/pls_50_adc.elf.d pulse1.o TimeControl.o i2control.o PM.o ADC.o settings.o Uart0.o Uart1.o check.o commandLine.o Fram.o onewire.o database.o /newFreeRTOS/FreeRTOS/Source/tasks.o /newFreeRTOS/FreeRTOS/Source/queue.o /newFreeRTOS/FreeRTOS/Source/list.o /newFreeRTOS/freeRTOS/Source/portable/GCC/ATMega323/port.o /newFreeRTOS/freeRTOS/Source/portable/MemMang/heap_1.o /project/avrlib/avrlib/rprintf.o --output pls_50_adc.elf -Wl,-Map=pls_50_adc.map,–cref -Wl,-u,vfprintf -lprintf_min -lm
Creating load file for Flash: pls_50_adc.hex
avr-objcopy -O ihex -R .eeprom pls_50_adc.elf pls_50_adc.hex
Creating load file for EEPROM: pls_50_adc.eep
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load"
–change-section-lma .eeprom=0 -O ihex pls_50_adc.elf pls_50_adc.eep
c:\WinAVR-20070525\bin\avr-objcopy.exe: there are no sections to be copied!
c:\WinAVR-20070525\bin\avr-objcopy.exe: --change-section-lma .eeprom=0x00000000 never used
C:\WinAVR\utils\bin\make.exe: [pls_50_adc.eep] Error 1 (ignored)
Creating Extended Listing: pls_50_adc.lss
avr-objdump -h -S pls_50_adc.elf > pls_50_adc.lss
Creating Symbol Table: pls_50_adc.sym
avr-nm -n pls_50_adc.elf > pls_50_adc.sym
Converting to AVR Extended COFF: pls_50_adc.cof
avr-objcopy --debugging --change-section-address .data-0x800000 --change-section-address .bss-0x800000 --change-section-address .noinit-0x800000 --change-section-address .eeprom-0x810000 -O coff-ext-avr pls_50_adc.elf pls_50_adc.cof
Warning: file C:/WINDOWS/TEMP/ccv0xIWh.s not found in symbol table, ignoring
Warning: ignoring function __vectors() outside any compilation unit
Warning: ignoring function __bad_interrupt() outside any compilation unit
avr-objcopy: --change-section-vma .eeprom+0xff7f0000 never used
avr-objcopy: --change-section-lma .eeprom+0xff7f0000 never used
avr-objcopy: --change-section-vma .noinit+0xff800000 never used
avr-objcopy: --change-section-lma .noinit+0xff800000 never used
Size after:
pls_50_adc.elf :
section size addr
.data 484 8388864
.text 69618 0
.bss 2543 8389348
.stab 1044 0
.stabstr 113 0
.debug_aranges 564 0
.debug_pubnames 5737 0
.debug_info 52822 0
.debug_abbrev 8058 0
.debug_line 38683 0
.debug_frame 3472 0
.debug_str 9304 0
.debug_loc 10857 0
.debug_ranges 36 0
Total 203335
AVR Memory Usage:
-----------------
Device: atmega128
Program: 70102 bytes (53.5% Full)
(.text + .data + .bootloader)
Data: 3027 bytes (73.9% Full)
(.data + .bss + .noinit)
-------- end --------
> Terminated with exit code 0.