• AVR Freaks

Hot!Multiple Definitions Issue with EZBL

Author
mamaglio@mphindustries.com
New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2017/11/03 06:32:11
  • Location: 0
  • Status: offline
2019/07/19 14:09:13 (permalink)
0

Multiple Definitions Issue with EZBL

I had the EZ bootloader working for a USB MSD update on my PIC24FJ128GC010 chip so that was all good.  Then I started using the MCC and added peripherals.  I generated my MCC files and added the
 
 
#include "mcc_generated_files/mcc.h"
SYSTEM_Initialize();
 
to my main.c.
 
I started getting this multiple definitions issue and I am not quite sure how to fix it.  
 
Any suggestions?
 
EZBL: APPID_VER in ezbl_integration/ezbl_app.mk updated
make -f nbproject/Makefile-usb_msd.mk SUBPROJECTS= .build-conf
make -f nbproject/Makefile-usb_msd.mk dist/usb_msd/production/SpeedSign_MCC.production.hex
"C:\Program Files (x86)\Microchip\xc16\v1.33\bin\xc16-gcc.exe" mcc_generated_files/rtcc.c -o build/usb_msd/production/mcc_generated_files/rtcc.o -c -mcpu=24FJ128GC010 -MMD -MF "build/usb_msd/production/mcc_generated_files/rtcc.o.d" -mno-eds-warn -g -omf=elf -DXPRJ_usb_msd=usb_msd -legacy-libc -mlarge-code -O0 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.33\bin\xc16-gcc.exe" mcc_generated_files/system.c -o build/usb_msd/production/mcc_generated_files/system.o -c -mcpu=24FJ128GC010 -MMD -MF "build/usb_msd/production/mcc_generated_files/system.o.d" -mno-eds-warn -g -omf=elf -DXPRJ_usb_msd=usb_msd -legacy-libc -mlarge-code -O0 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.33\bin\xc16-gcc.exe" mcc_generated_files/clock.c -o build/usb_msd/production/mcc_generated_files/clock.o -c -mcpu=24FJ128GC010 -MMD -MF "build/usb_msd/production/mcc_generated_files/clock.o.d" -mno-eds-warn -g -omf=elf -DXPRJ_usb_msd=usb_msd -legacy-libc -mlarge-code -O0 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.33\bin\xc16-gcc.exe" mcc_generated_files/traps.c -o build/usb_msd/production/mcc_generated_files/traps.o -c -mcpu=24FJ128GC010 -MMD -MF "build/usb_msd/production/mcc_generated_files/traps.o.d" -mno-eds-warn -g -omf=elf -DXPRJ_usb_msd=usb_msd -legacy-libc -mlarge-code -O0 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.33\bin\xc16-gcc.exe" mcc_generated_files/interrupt_manager.c -o build/usb_msd/production/mcc_generated_files/interrupt_manager.o -c -mcpu=24FJ128GC010 -MMD -MF "build/usb_msd/production/mcc_generated_files/interrupt_manager.o.d" -mno-eds-warn -g -omf=elf -DXPRJ_usb_msd=usb_msd -legacy-libc -mlarge-code -O0 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.33\bin\xc16-gcc.exe" mcc_generated_files/mcc.c -o build/usb_msd/production/mcc_generated_files/mcc.o -c -mcpu=24FJ128GC010 -MMD -MF "build/usb_msd/production/mcc_generated_files/mcc.o.d" -mno-eds-warn -g -omf=elf -DXPRJ_usb_msd=usb_msd -legacy-libc -mlarge-code -O0 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.33\bin\xc16-gcc.exe" mcc_generated_files/pin_manager.c -o build/usb_msd/production/mcc_generated_files/pin_manager.o -c -mcpu=24FJ128GC010 -MMD -MF "build/usb_msd/production/mcc_generated_files/pin_manager.o.d" -mno-eds-warn -g -omf=elf -DXPRJ_usb_msd=usb_msd -legacy-libc -mlarge-code -O0 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.33\bin\xc16-gcc.exe" usb_msd_fileio_demo/fileio_demo.c -o build/usb_msd/production/usb_msd_fileio_demo/fileio_demo.o -c -mcpu=24FJ128GC010 -MMD -MF "build/usb_msd/production/usb_msd_fileio_demo/fileio_demo.o.d" -mno-eds-warn -g -omf=elf -DXPRJ_usb_msd=usb_msd -legacy-libc -mlarge-code -O0 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.33\bin\xc16-gcc.exe" ezbl_integration/ex_boot_usb_msd.merge.S -o build/usb_msd/production/ezbl_integration/ex_boot_usb_msd.merge.o -c -mcpu=24FJ128GC010 -MMD -MF "build/usb_msd/production/ezbl_integration/ex_boot_usb_msd.merge.o.d" -omf=elf -DXPRJ_usb_msd=usb_msd -legacy-libc -Wa,-MD,"build/usb_msd/production/ezbl_integration/ex_boot_usb_msd.merge.o.asm.d",--defsym=__MPLAB_BUILD=1,-g,--no-relax
"C:\Program Files (x86)\Microchip\xc16\v1.33\bin\xc16-gcc.exe" main.c -o build/usb_msd/production/main.o -c -mcpu=24FJ128GC010 -MMD -MF "build/usb_msd/production/main.o.d" -mno-eds-warn -g -omf=elf -DXPRJ_usb_msd=usb_msd -legacy-libc -mlarge-code -O0 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.33\bin\xc16-gcc.exe" mcc_generated_files/uart3.c -o build/usb_msd/production/mcc_generated_files/uart3.o -c -mcpu=24FJ128GC010 -MMD -MF "build/usb_msd/production/mcc_generated_files/uart3.o.d" -mno-eds-warn -g -omf=elf -DXPRJ_usb_msd=usb_msd -legacy-libc -mlarge-code -O0 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.33\bin\xc16-gcc.exe" mcc_generated_files/uart4.c -o build/usb_msd/production/mcc_generated_files/uart4.o -c -mcpu=24FJ128GC010 -MMD -MF "build/usb_msd/production/mcc_generated_files/uart4.o.d" -mno-eds-warn -g -omf=elf -DXPRJ_usb_msd=usb_msd -legacy-libc -mlarge-code -O0 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.33\bin\xc16-gcc.exe" mcc_generated_files/uart1.c -o build/usb_msd/production/mcc_generated_files/uart1.o -c -mcpu=24FJ128GC010 -MMD -MF "build/usb_msd/production/mcc_generated_files/uart1.o.d" -mno-eds-warn -g -omf=elf -DXPRJ_usb_msd=usb_msd -legacy-libc -mlarge-code -O0 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.33\bin\xc16-gcc.exe" mcc_generated_files/uart2.c -o build/usb_msd/production/mcc_generated_files/uart2.o -c -mcpu=24FJ128GC010 -MMD -MF "build/usb_msd/production/mcc_generated_files/uart2.o.d" -mno-eds-warn -g -omf=elf -DXPRJ_usb_msd=usb_msd -legacy-libc -mlarge-code -O0 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.33\bin\xc16-gcc.exe" -o dist/usb_msd/production/SpeedSign_MCC.production.elf build/usb_msd/production/mcc_generated_files/rtcc.o build/usb_msd/production/mcc_generated_files/system.o build/usb_msd/production/mcc_generated_files/clock.o build/usb_msd/production/mcc_generated_files/traps.o build/usb_msd/production/mcc_generated_files/interrupt_manager.o build/usb_msd/production/mcc_generated_files/mcc.o build/usb_msd/production/mcc_generated_files/pin_manager.o build/usb_msd/production/usb_msd_fileio_demo/fileio_demo.o build/usb_msd/production/ezbl_integration/ex_boot_usb_msd.merge.o build/usb_msd/production/main.o build/usb_msd/production/mcc_generated_files/uart3.o build/usb_msd/production/mcc_generated_files/uart4.o build/usb_msd/production/mcc_generated_files/uart1.o build/usb_msd/production/mcc_generated_files/uart2.o ezbl_integration\ezbl_lib.a -mcpu=24FJ128GC010 -omf=elf -DXPRJ_usb_msd=usb_msd -legacy-libc -Wl,--local-stack,,--defsym=__MPLAB_BUILD=1,,--script="ezbl_integration\ex_boot_usb_msd.merge.gld",--stack=16,--check-sections,--data-init,--pack-data,--handles,--isr,--no-gc-sections,--fill-upper=0,--stackguard=16,--no-force-link,--smart-io,-Map="dist/usb_msd/production/SpeedSign_MCC.production.map",--report-mem,--memorysummary,dist/usb_msd/production/memoryfile.xml,--defsym=_APPID_VER_MAJOR=2,--defsym=_APPID_VER_MINOR=10,--defsym=_APPID_VER_BUILD=5201
nbproject/Makefile-usb_msd.mk:317: recipe for target 'dist/usb_msd/production/SpeedSign_MCC.production.hex' failed
nbproject/Makefile-usb_msd.mk:90: recipe for target '.build-conf' failed
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
ezbl_integration\ezbl_lib.a(EZBL_STDIO.16dao)(.libc.write+0x0): In function `read':
weak_defaults/EZBL_STDIO.c:142: multiple definition of `_write'
build/usb_msd/production/mcc_generated_files/uart4.o(.libc.write+0x0):mcc_generated_files/uart4.c:97: first defined here
c:\program files (x86)\microchip\xc16\v1.33\bin\bin\..\bin/elf-ld.exe: Warning: size of symbol `_write' changed from 60 in build/usb_msd/production/mcc_generated_files/uart4.o to 42 in ezbl_integration\ezbl_lib.a(EZBL_STDIO.16dao)
c:\program files (x86)\microchip\xc16\v1.33\bin\bin\..\bin/elf-ld.exe: Link terminated due to previous error(s).
make[2]: *** [dist/usb_msd/production/SpeedSign_MCC.production.hex] Error 255
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

#1

0 Replies Related Threads

    Jump to:
    © 2019 APG vNext Commercial Version 4.5