[tuxdroid-user] Programming of 'tuxcore.hex' failed, this file is not a correct hex file for that C
Status: Beta
Brought to you by:
ks156
From: Philippe T. <ph...@te...> - 2007-03-18 10:18:09
|
Hello, I tried to setup the toolchain to recompile the firmware but tuxup tells me the hex file has a wrong format. I'm using Debian Etch apt-get install gcc-avr avr-libc gdb-avr libsvn-dev Edit svncrev-0.1/config.mk: APR_INCLUDE=/usr/include/apr-1.0 Make svncrev and cp to /usr/local/bin Then on tuxcore: $ make clean rm -rf main.o sensors.o motors.o global.o led.o communication.o i2c.o fifo.o ir.o parser.o config.o standalone.o svnrev.h tuxcore.elf dep/* tuxcore.hex tuxcore.eep tuxcore.lss tuxcore.map bootloader.o tuxcore_bl.hex tuxcore_bl.lss tuxcore_bl.map tuxcore_bl.elf svnrev.h dep $ make svnwcrev . svnrev.tmpl.h svnrev.h Last committed at revision 100 Updated to revision 175 avr-gcc -mmcu=atmega88 -g -DF_CPU=8000000UL -Os -Wall -Wstrict-prototypes -std=gnu99 -MD -MP -MT main.o -MF dep/main.o.d -c main.c avr-gcc -mmcu=atmega88 -g -DF_CPU=8000000UL -Os -Wall -Wstrict-prototypes -std=gnu99 -MD -MP -MT sensors.o -MF dep/sensors.o.d -c sensors.c avr-gcc -mmcu=atmega88 -g -DF_CPU=8000000UL -Os -Wall -Wstrict-prototypes -std=gnu99 -MD -MP -MT motors.o -MF dep/motors.o.d -c motors.c avr-gcc -mmcu=atmega88 -g -DF_CPU=8000000UL -Os -Wall -Wstrict-prototypes -std=gnu99 -MD -MP -MT global.o -MF dep/global.o.d -c global.c avr-gcc -mmcu=atmega88 -g -DF_CPU=8000000UL -Os -Wall -Wstrict-prototypes -std=gnu99 -MD -MP -MT led.o -MF dep/led.o.d -c led.c avr-gcc -mmcu=atmega88 -g -DF_CPU=8000000UL -Os -Wall -Wstrict-prototypes -std=gnu99 -MD -MP -MT communication.o -MF dep/communication.o.d -c communication.c avr-gcc -mmcu=atmega88 -g -DF_CPU=8000000UL -Os -Wall -Wstrict-prototypes -std=gnu99 -MD -MP -MT i2c.o -MF dep/i2c.o.d -c i2c.c avr-gcc -mmcu=atmega88 -g -DF_CPU=8000000UL -Os -Wall -Wstrict-prototypes -std=gnu99 -MD -MP -MT fifo.o -MF dep/fifo.o.d -c fifo.c avr-gcc -mmcu=atmega88 -g -DF_CPU=8000000UL -Os -Wall -Wstrict-prototypes -std=gnu99 -MD -MP -MT ir.o -MF dep/ir.o.d -c ir.c avr-gcc -mmcu=atmega88 -g -DF_CPU=8000000UL -Os -Wall -Wstrict-prototypes -std=gnu99 -MD -MP -MT parser.o -MF dep/parser.o.d -c parser.c avr-gcc -mmcu=atmega88 -g -DF_CPU=8000000UL -Os -Wall -Wstrict-prototypes -std=gnu99 -MD -MP -MT config.o -MF dep/config.o.d -c config.c avr-gcc -mmcu=atmega88 -g -DF_CPU=8000000UL -Os -Wall -Wstrict-prototypes -std=gnu99 -MD -MP -MT standalone.o -MF dep/standalone.o.d -c standalone.c avr-gcc -mmcu=atmega88 -Wl,--section-start=.version=0x1DF0 -Wl,-Map=tuxcore.map main.o sensors.o motors.o global.o led.o communication.o i2c.o fifo.o ir.o parser.o config.o standalone.o -o tuxcore.elf avr-objcopy -O ihex -R .eeprom tuxcore.elf tuxcore.hex avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 -O ihex tuxcore.elf tuxcore.eep avr-objdump -h -S tuxcore.elf > tuxcore.lss text data bss dec hex filename 7022 280 164 7466 1d2a tuxcore.elf $ tuxup tuxcore.hex [FAIL] Programming of 'tuxcore.hex' failed, this file is not a correct hex file for that CPU Time elapsed: 0 seconds. I did not modify the firmware sources but tuxcore.hex I compiled is only 20027 bytes while the one in firmware/hex is 20550 Note that the 20550-byte tuxcore.hex is accepted by tuxup so the problem is really when compiling it from sources. Any idea what's going wrong here? Phil |