make: *** [.axf] Error 1

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

make: *** [.axf] Error 1

2,302 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ccavallieri on Thu May 07 06:00:18 MST 2015
Hey guys,

I'm new here and I'm stuck.

I'm working now on a Mifare Reader, MFRC522. I trying to make it read some information, but first, I want to test if I'm having some kind of communication.

I'm building my project and there's this error:

"Building target: chicago.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -Xlinker -Map=chicago.map -Xlinker --gc-sections -mcpu=cortex-m3 -mthumb -T "chicago_Release.ld" -o "chicago.axf"  ./src/main.o ./src/rc522.o  ./apps/libraries/utils/utils.o  ./apps/libraries/systemClock/systemClock.o  ./apps/libraries/spi/spi.o  ./apps/libraries/lpc1700/Lib_MCU/src/lpc17xx_adc.o ./apps/libraries/lpc1700/Lib_MCU/src/lpc17xx_can.o ./apps/libraries/lpc1700/Lib_MCU/src/lpc17xx_clkpwr.o ./apps/libraries/lpc1700/Lib_MCU/src/lpc17xx_dac.o ./apps/libraries/lpc1700/Lib_MCU/src/lpc17xx_emac.o ./apps/libraries/lpc1700/Lib_MCU/src/lpc17xx_gpio.o ./apps/libraries/lpc1700/Lib_MCU/src/lpc17xx_i2c.o ./apps/libraries/lpc1700/Lib_MCU/src/lpc17xx_i2s.o ./apps/libraries/lpc1700/Lib_MCU/src/lpc17xx_libcfg_default.o ./apps/libraries/lpc1700/Lib_MCU/src/lpc17xx_mcpwm.o ./apps/libraries/lpc1700/Lib_MCU/src/lpc17xx_nvic.o ./apps/libraries/lpc1700/Lib_MCU/src/lpc17xx_pinsel.o ./apps/libraries/lpc1700/Lib_MCU/src/lpc17xx_pwm.o ./apps/libraries/lpc1700/Lib_MCU/src/lpc17xx_qei.o ./apps/libraries/lpc1700/Lib_MCU/src/lpc17xx_rit.o ./apps/libraries/lpc1700/Lib_MCU/src/lpc17xx_rtc.o ./apps/libraries/lpc1700/Lib_MCU/src/lpc17xx_spi.o ./apps/libraries/lpc1700/Lib_MCU/src/lpc17xx_ssp.o ./apps/libraries/lpc1700/Lib_MCU/src/lpc17xx_timer.o ./apps/libraries/lpc1700/Lib_MCU/src/lpc17xx_uart.o ./apps/libraries/lpc1700/Lib_MCU/src/lpc17xx_wdt.o  ./apps/libraries/lpc1700/CMSISv1p30_LPC17xx/src/system_LPC17xx.o  ./apps/libraries/flash/flash.o  ./apps/global/global.o ./apps/global/hardware.o  
./src/rc522.o:(.rodata.frame_size+0x0): multiple definition of `frame_size'
./src/main.o:(.rodata.frame_size+0x0): first defined here
c:/nxp/lpcxpresso_7.5.0_254/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol ResetISR; defaulting to 00000000
collect2.exe: error: ld returned 1 exit status
make: *** [chicago.axf] Error 1"

I have no idea what I can do about it. I already read topics related to it but anything seems to fix the problem.

Could anyone help me?
Regards from Brazil.
0 Kudos
Reply
4 Replies

1,690 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ccavallieri on Fri May 08 05:10:12 MST 2015
Thanks for the tip.

I recently changed my notebook and the LPCXpresso wasn't registered. It was all about this.

Now it's working correctly.

Thanks!
0 Kudos
Reply

1,690 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Thu May 07 06:55:11 MST 2015

Quote: ccavallieri
Yes, they're the same. I'm not sure what I need to do...



Learn the basics  :quest:

Read again Chapters about 'Definition' and 'Declaration' in your C book ;-) 

Or use Google:

http://www.c4learn.com/c-programming/c-declaration-vs-definition/
0 Kudos
Reply

1,690 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ccavallieri on Thu May 07 06:28:09 MST 2015
Thanks for answering.

Yes, they're the same. I'm not sure what I need to do; is the problem related to that?
0 Kudos
Reply

1,690 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mysepp on Thu May 07 06:12:55 MST 2015
./src/rc522.o:(.rodata.frame_size+0x0): multiple definition of `frame_size'
./src/main.o:(.rodata.frame_size+0x0): first defined here

You have defined "frame_size" in rc522.c and main.c.

If it is the same, perhaps same "extern" is missing at one of the places?
0 Kudos
Reply