Trying to build LPC4370_LEDblinky with MCUXpresso

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

Trying to build LPC4370_LEDblinky with MCUXpresso

Jump to solution
1,743 Views
simon_prentice
Contributor III

This is my first LPC4370 project.

Imported the project LPC4370_LEDblinky into MCUXpresso (IDE v10.2.0 [Build 759] [2018-05-15] ) and get "LPC43xx.h: No such file or directory" errors when building.

According to the "Using an LPC-Link2 as an LPC4370 evaluation board" instructions I am following I need  CMSIS_LPC43xx_DriverLib but I can't find it and suspect it may not be relevant to MCUXpresso.

Any ideas?

--------------------------------

Instructions

Simple example application
A simple blinky application for the LPC4370/LPC-Link2 can be found in the attached LPC4370_LPCLink2_LEDblinky.zip. Download and save the zipfile to your local disk, then use the LPCXpresso "Quickstart Panel -> Import project(s)" option to import it into your workspace. In order to build this, you will also need to import the CMSIS_LPC43xx_DriverLib library project from the LPCXpresso examples into your workspace. For details of importing, building and debugging projects - please see the LPCXpresso User Guide, provided within the product itself.

--------------
Errors
14:03:04 **** Incremental Build of configuration Debug for project LPC4370_LEDblinky ****
make -r -j4 all
Building file: ../src/cr_startup_lpc43xx.c
Building file: ../src/ledblinky4370.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -DCORE_M4 -D__USE_CMSIS=CMSIS_LPC43xx_DriverLib -D__LPC43XX__ -D__MULTICORE_NONE -Os -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"src/cr_startup_lpc43xx.d" -MT"src/cr_startup_lpc43xx.d" -o "src/cr_startup_lpc43xx.o" "../src/cr_startup_lpc43xx.c"
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -DCORE_M4 -D__USE_CMSIS=CMSIS_LPC43xx_DriverLib -D__LPC43XX__ -D__MULTICORE_NONE -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"src/ledblinky4370.d" -MT"src/ledblinky4370.o" -MT"src/ledblinky4370.d" -o "src/ledblinky4370.o" "../src/ledblinky4370.c"
../src/cr_startup_lpc43xx.c:51:10: fatal error: LPC43xx.h: No such file or directory
 #include "LPC43xx.h"
          ^~~~~~~~~~~
compilation terminated.
make: *** [src/cr_startup_lpc43xx.o] Error 1
make: *** Waiting for unfinished jobs....
../src/ledblinky4370.c:12:10: fatal error: LPC43xx.h: No such file or directory
 #include "LPC43xx.h"
          ^~~~~~~~~~~
compilation terminated.
make: *** [src/ledblinky4370.o] Error 1
14:03:05 Build Finished (took 1s.464ms)
--------------
0 Kudos
Reply
1 Solution
1,513 Views
miguel_mendoza
NXP Employee
NXP Employee

Hi Simon Prentice,

For run the example, you have to import the CMSIS_LPC43xx_DriverLib, because including some header files that the example use, to find it go to C:\MCUXpressoIDE_10.2.0_759\ide\Examples\Legacy\CMSIS_CORE\CMSIS_CORE_Latest.zip, and only you have to import as the same way as the example, in the "Quickstart Panel -> Import project(s)" option, and with that you are able to run it.

Wish it helps you!
If you still have problems, please let me know!

regards,
Miguel

View solution in original post

2 Replies
1,513 Views
simon_prentice
Contributor III

Dude!  Thank you.  Perfect, clear instructions.  Worked like a charm.

09:56:23 **** Incremental Build of configuration Debug for project LPC4370_LEDblinky ****
make -r -j4 all
Building target: LPC4370_LEDblinky.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -L"C:\nxp\workspace\CMSIS_LPC43xx_DriverLib\Debug" -Xlinker -Map="LPC4370_LEDblinky.map" -Xlinker --gc-sections -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -T "LPC4370_Hello_LED_Debug.ld" -o "LPC4370_LEDblinky.axf"  ./src/cr_startup_lpc43xx.o ./src/crp.o ./src/ledblinky4370.o   -lCMSIS_LPC43xx_DriverLib
Finished building target: LPC4370_LEDblinky.axf
 
make --no-print-directory post-build
Performing post-build steps
arm-none-eabi-size "LPC4370_LEDblinky.axf"; # arm-none-eabi-objcopy -O binary "LPC4370_LEDblinky.axf" "LPC4370_LEDblinky.bin" ; checksum -p LPC4370 -d "LPC4370_LEDblinky.bin";
   text    data     bss     dec     hex filename
   4644      72      16    4732    127c LPC4370_LEDblinky.axf
 
09:56:24 Build Finished (took 1s.627ms)
0 Kudos
Reply
1,514 Views
miguel_mendoza
NXP Employee
NXP Employee

Hi Simon Prentice,

For run the example, you have to import the CMSIS_LPC43xx_DriverLib, because including some header files that the example use, to find it go to C:\MCUXpressoIDE_10.2.0_759\ide\Examples\Legacy\CMSIS_CORE\CMSIS_CORE_Latest.zip, and only you have to import as the same way as the example, in the "Quickstart Panel -> Import project(s)" option, and with that you are able to run it.

Wish it helps you!
If you still have problems, please let me know!

regards,
Miguel