how to create .axf file

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

how to create .axf file

2,062 Views
nimmipp
Contributor I

I have a problem with lpcxpresso, and the console is given below

 

11:49:10 **** Build of configuration Debug for project TEST_ARM ****
make all
Building file: ../src/cr_startup_lpc176x.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -DDEBUG -D__USE_CMSIS=CMSISv2p00_LPC17xx -D__CODE_RED -D__REDLIB__ -I"E:\S2\MINI PROJECT\SOFT\i2c\CMSISv2p00_LPC17xx\inc" -O0 -Os -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -mcpu=cortex-m3 -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"src/cr_startup_lpc176x.d" -MT"src/cr_startup_lpc176x.d" -o "src/cr_startup_lpc176x.o" "../src/cr_startup_lpc176x.c"
Finished building: ../src/cr_startup_lpc176x.c

Building file: ../src/i2c.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -DDEBUG -D__USE_CMSIS=CMSISv2p00_LPC17xx -D__CODE_RED -D__REDLIB__ -I"E:\S2\MINI PROJECT\SOFT\i2c\CMSISv2p00_LPC17xx\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -mcpu=cortex-m3 -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"src/i2c.d" -MT"src/i2c.o" -MT"src/i2c.d" -o "src/i2c.o" "../src/i2c.c"
Finished building: ../src/i2c.c

Building file: ../src/i2ctest.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -DDEBUG -D__USE_CMSIS=CMSISv2p00_LPC17xx -D__CODE_RED -D__REDLIB__ -I"E:\S2\MINI PROJECT\SOFT\i2c\CMSISv2p00_LPC17xx\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -mcpu=cortex-m3 -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"src/i2ctest.d" -MT"src/i2ctest.o" -MT"src/i2ctest.d" -o "src/i2ctest.o" "../src/i2ctest.c"
Finished building: ../src/i2ctest.c

Building file: ../src/main.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -DDEBUG -D__USE_CMSIS=CMSISv2p00_LPC17xx -D__CODE_RED -D__REDLIB__ -I"E:\S2\MINI PROJECT\SOFT\i2c\CMSISv2p00_LPC17xx\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -mcpu=cortex-m3 -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"src/main.d" -MT"src/main.o" -MT"src/main.d" -o "src/main.o" "../src/main.c"
Finished building: ../src/main.c

Building target: TEST_ARM.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -L"E:\S2\MINI PROJECT\SOFT\i2c\CMSISv2p00_LPC17xx\Debug" -Xlinker --gc-sections -Xlinker -Map=TEST_ARM.map -mcpu=cortex-m3 -mthumb -T "RDB1768cmsis2_LedFlash_Debug.ld" -o "TEST_ARM.axf" ./src/cr_startup_lpc176x.o ./src/i2c.o ./src/i2ctest.o ./src/main.o -lCMSISv2p00_LPC17xx
c:/nxp/lpcxpresso_7.3.0_186/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libcr_c.a(fpprintf.o): In function `printf':
fpprintf.c:(.text.printf+0x38): undefined reference to `__sys_write'
c:/nxp/lpcxpresso_7.3.0_186/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libcr_c.a(_deferredlazyseek.o): In function `__flsbuf':
_deferredlazyseek.c:(.text.__flsbuf+0x84): undefined reference to `__sys_istty'
c:/nxp/lpcxpresso_7.3.0_186/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libcr_c.a(_writebuf.o): In function `_Cwritebuf':
_writebuf.c:(.text._Cwritebuf+0x14): undefined reference to `__sys_flen'
_writebuf.c:(.text._Cwritebuf+0x28): undefined reference to `__sys_seek'
_writebuf.c:(.text._Cwritebuf+0x40): undefined reference to `__sys_write'
c:/nxp/lpcxpresso_7.3.0_186/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libcr_c.a(alloc.o): In function `_Csys_alloc':
alloc.c:(.text._Csys_alloc+0xe): undefined reference to `__sys_write'
alloc.c:(.text._Csys_alloc+0x12): undefined reference to `__sys_appexit'
c:/nxp/lpcxpresso_7.3.0_186/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7-m\libcr_c.a(fseek.o): In function `fseek':
fseek.c:(.text.fseek+0x1a): undefined reference to `__sys_istty'
fseek.c:(.text.fseek+0x44): undefined reference to `__sys_flen'
collect2.exe: error: ld returned 1 exit status
make: *** [TEST_ARM.axf] Error 1

11:49:16 Build Finished (took 5s.425ms)

please help me to solve this problem

how can i create .axf file

0 Kudos
1 Reply

1,151 Views
lpcxpresso_supp
NXP Employee
NXP Employee

See: https://community.nxp.com/message/630711 

Regards,

LPCXpresso IDE Support

0 Kudos