LPCXpresso v7.0.2 fails to compile project from v6.1.2

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

LPCXpresso v7.0.2 fails to compile project from v6.1.2

463 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dmorse on Wed Mar 19 15:39:37 MST 2014
LPCXpresso v7.022_102 faild to build project(LPCUSBlib, mass stoage 6.1.2device form LPC4370) that work fine in v6.1.2_177

Error:
DescriptionResourcePathLocationType
make: *** [BSP.axf] Error 1 C/C++ Problem




Project was exported from v6.1.2 then imported into v7.0.2.
Project works fine in v6.1.2.
0 Kudos
6 Replies

423 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Mar 20 09:14:02 MST 2014
There should be no conversion required.
0 Kudos

423 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dmorse on Thu Mar 20 09:02:50 MST 2014
What is the best way to convert a project from LPCXpresso 6.1.2.to v7.0.2 ?
0 Kudos

423 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Mar 20 07:40:37 MST 2014
It is reporting that "main" does not exist. You will need to look in your project to see where main was defined, and what has happened to it...

For information on the Build console, read the FAQ:
http://www.lpcware.com/content/faq/lpcxpresso/build-console
0 Kudos

423 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dmorse on Thu Mar 20 04:42:29 MST 2014
Here is the error from the console when do a build....

07:26:06 **** Incremental Build of configuration LPC43XX for project BSP ****
make all
Building target: BSP.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -L"C:\Users\darcy\Documents\LPCXpresso_7.0.2_102\workspace2\CDL" -L"C:\Users\darcy\Documents\LPCXpresso_7.0.2_102\workspace2\BSP" -L"C:\Users\darcy\Documents\LPCXpresso_7.0.2_102\workspace2\LPCUSBlib" -Xlinker -Map="BSP.map" -Xlinker --gc-sections -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -T "BSP_LPC43XX.ld" -o "BSP.axf"  ./NGX/bsp_NGX.o  ./MCB1800_4300/bsp_MCB1800_4300.o  ./MCB1700/bsp_MCB1700.o  ./MCB1000/bsp_MCB1000.o  ./LPCXpressoBase_RevB/bsp_LPCXpressoBase_RevB.o  ./HITEX/bsp_HITEX.o  ./EAOEMBase_RevA/bsp_EAOEMBase_RevA.o  ./DataRam.o ./bsp.o   -lLPCUSBlib -lBSP -lCDL
c:/nxp/lpcxpresso_7.0.2_102/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7e-m/softfp\libcr_c.a(__weak__main.o): In function `__main':
__weak__main.c:(.text.__weak_main+0x0): undefined reference to `main'
collect2.exe: error: ld returned 1 exit status
make: *** [BSP.axf] Error 1

07:26:08 Build Finished (took 1s.217ms)

07:26:09 **** Incremental Build of configuration LPC43xx_M4 for project CDL ****
make pre-build main-build
if test -f "libCDL.a" ; then cp -f "libCDL.a" ../"libCDL.a" ; fi

make: Nothing to be done for `main-build'.

07:26:10 Build Finished (took 1s.653ms)

07:26:11 **** Incremental Build of configuration LPC43xx_Device for project LPCUSBlib ****
make pre-build main-build
if test -f "libLPCUSBlib.a" ; then cp -f "libLPCUSBlib.a" ../"libLPCUSBlib.a" ; fi

make: Nothing to be done for `main-build'.

07:26:14 Build Finished (took 2s.714ms)

07:26:16 **** Incremental Build of configuration LPC43xx M4 for project Example_MassStorageDevice ****
make all
Building target: Example_MassStorageDevice.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -L"C:\Users\darcy\Documents\LPCXpresso_7.0.2_102\workspace2\CDL" -L"C:\Users\darcy\Documents\LPCXpresso_7.0.2_102\workspace2\BSP" -L"C:\Users\darcy\Documents\LPCXpresso_7.0.2_102\workspace2\LPCUSBlib" -L"C:\Users\darcy\Documents\LPCXpresso_7.0.2_102\workspace2\CDL\LPC43xxLib\lib" -Xlinker -Map="Example_MassStorageDevice.map" -Xlinker --gc-sections -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -T "Example_MassStorageDevice_LPC43xx_M4.ld" -o "Example_MassStorageDevice.axf"  ./Lib/SCSI.o ./Lib/UsbRom.o ./Lib/fatutil.o  ./Descriptors.o ./MassStorage.o   -lLPCUSBlib -lBSP -lCDL -lspifi_drv_M4
Finished building target: Example_MassStorageDevice.axf

make --no-print-directory post-build
Performing post-build steps
arm-none-eabi-size "Example_MassStorageDevice.axf"; # arm-none-eabi-objcopy -O binary "Example_MassStorageDevice.axf" "Example_MassStorageDevice.bin" ; checksum -p LPC4370 -d "Example_MassStorageDevice.bin";
   text   data    bss    dec    hexfilename
  17528  20136   2972  40636   9ebcExample_MassStorageDevice.axf


07:26:17 Build Finished (took 1s.654ms)


If I do a clean then a build the error scroll off the console window is the a away to increase the # of lines in the window?
Where I can find the full log on disk?

0 Kudos

423 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Mar 20 03:20:18 MST 2014
As @TheFullGuy says, without the actual error message we cannot tell you what is going wrong.

However, the only porting issue we know about is with CMSIS v1.3. See this forum thread for details on the simple fix:
http://www.lpcware.com/content/forum/cmsisv1p30lpc13xx-cannot-be-build-lpcxpresso-ide-ver7
0 Kudos

423 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Wed Mar 19 16:16:29 MST 2014
How can we help when you don't post the error? Look in the build console and tell us what the error is.
0 Kudos