Re: Не могу скомпилировать прошивку из исходников
Posted: 15 Apr 2014, 17:02
пытаюсь собрать трамблерную прошивку с управлением накопления. стянул архив "мастер". блок прошлогодний, с одним большим разъемом. тобиш - М32, правильно?
./configure.sh M32 GCC
получаю ошибку.
хотя Makefile появился..поменял опции компиляции, запустил make..ошибка
./configure.sh M32 GCC
получаю ошибку.
Code: Select all
avr-gcc -mmcu=atmega32 -DREALTIME_TABLES -DSECU3T -DTHERMISTOR_CS -DCOOLINGFAN_PWM -DDIAGNOSTICS -DHALL_OUTPUT -DFUEL_PUMP -DREV9_BOARD -DSM_CONTROL -DSTROBOSCOPE -DBL_BAUD_RATE=9600 -DSPEED_SENSOR -DINTK_HEATING -DBLUETOOTH_SUPP -DIMMOBILIZER -DLITTLE_ENDIAN_DATA_FORMAT -I. -Os -mcall-prologues -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffreestanding -ffunction-sections -fno-inline-small-functions -Wl,--relax -Wall -Wstrict-prototypes -Wa,-adhlns=output/adc.o -std=gnu99 output/adc.o output/bootldr.o output/ce_errors.o output/ckps.o output/crc16.o output/eeprom.o output/fuelecon.o output/funconv.o output/idlecon.o output/ignlogic.o output/jumper.o output/knklogic.o output/knock.o output/measure.o output/params.o output/procuart.o output/secu3.o output/starter.o output/suspendop.o output/tables.o output/uart.o output/ventilator.o output/vstimer.o output/camsens.o output/fuelpump.o output/diagnost.o output/wdt.o output/ioconfig.o output/pwrrelay.o output/bc_input.o output/smcontrol.o output/choke.o output/hall.o output/bluetooth.o output/onewire.o output/immobiliz.o output/ckps2ch.o output/intkheat.o --output secu-3_app.elf -Wl,-Map=./output/secu-3_app.map,--cref -Wl,-section-start=.firmware_data=0x6EA2 -Wl,-section-start=.boot_loader=0x7C00 -lm
/usr/lib/gcc/avr/4.3.5/../../../avr/bin/ld: section .firmware_data loaded at [0000000000006ea2,0000000000007bff] overlaps section .text loaded at [0000000000000000,0000000000006f1f]
/usr/lib/gcc/avr/4.3.5/../../../avr/bin/ld: section .data loaded at [0000000000006f20,0000000000006f29] overlaps section .firmware_data loaded at [0000000000006ea2,0000000000007bff]
make: *** [secu-3_app.elf] Error 1
ak@debian:~/secu3/secu3_current/secu3app-master$ avr-gcc -v
Using built-in specs.
Target: avr
Configured with: ../src/configure -v --enable-languages=c,c++ --prefix=/usr/lib --infodir=/usr/share/info --mandir=/usr/share/man --bindir=/usr/bin --libexecdir=/usr/lib --libdir=/usr/lib --enable-shared --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-checking --disable-libssp --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=avr
Thread model: single
gcc version 4.3.5 (GCC)
хотя Makefile появился..поменял опции компиляции, запустил make..ошибка
Code: Select all
avr-gcc -mmcu=atmega32 -DREALTIME_TABLES -DSECU3T -DTHERMISTOR_CS -DCOOLINGFAN_PWM -DDIAGNOSTICS -DHALL_OUTPUT -DHALL_SYNC -DDWELL_CONTROL -DREV9_BOARD -DSTROBOSCOPE -DBL_BAUD_RATE=9600 -DSPEED_SENSOR -DLITTLE_ENDIAN_DATA_FORMAT -I. -Os -mcall-prologues -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffreestanding -ffunction-sections -fno-inline-small-functions -Wl,--relax -Wall -Wstrict-prototypes -Wa,-adhlns=output/adc.o -std=gnu99 output/adc.o output/bootldr.o output/ce_errors.o output/ckps.o output/crc16.o output/eeprom.o output/fuelecon.o output/funconv.o output/idlecon.o output/ignlogic.o output/jumper.o output/knklogic.o output/knock.o output/measure.o output/params.o output/procuart.o output/secu3.o output/starter.o output/suspendop.o output/tables.o output/uart.o output/ventilator.o output/vstimer.o output/camsens.o output/fuelpump.o output/diagnost.o output/wdt.o output/ioconfig.o output/pwrrelay.o output/bc_input.o output/smcontrol.o output/choke.o output/hall.o output/bluetooth.o output/onewire.o output/immobiliz.o output/ckps2ch.o output/intkheat.o --output secu-3_app.elf -Wl,-Map=./output/secu-3_app.map,--cref -Wl,-section-start=.firmware_data=0x6EA2 -Wl,-section-start=.boot_loader=0x7C00 -lm
output/hall.o: In function `__vector_2':
hall.c:(.text.__vector_2+0x0): multiple definition of `__vector_2'
output/camsens.o:camsens.c:(.text.__vector_2+0x0): first defined here
/usr/lib/gcc/avr/4.3.5/../../../avr/bin/ld: Disabling relaxation: it will not work with multiple definitions
make: *** [secu-3_app.elf] Error 1