Drivers for LPC11xx ???

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

Drivers for LPC11xx ???

1,743 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Pacman on Fri Apr 04 11:34:48 MST 2014
I have 3 LPC1114/302, but I am having trouble compiling just a simple LED-blinker for them.
I did succeed in compiling+flashing LPC1342 and LPC812 yesterday, but the LPC1114 gives me trouble.

I've downloaded LPCOpen for lpc11uxx and have tried the following #defines, but most of them throws errors at me:

#define CHIP_LPC11XXLV
[color=#c00]/Users/jens/Library/uCode/libraries/lpc11uxx/inc/cmsis.h:55:26: fatal error: cmsis_11lvxx.h: No such file or directory[/color]

#define CHIP_LPC1125/* does not work */
[color=#c00]/Users/jens/Library/uCode/libraries/lpc11uxx/inc/cmsis.h:40:24: fatal error: cmsis_1125.h: No such file or directory[/color]

#define CHIP_LPC110x
[color=#c00]/Users/jens/Library/uCode/libraries/lpc11uxx/inc/cmsis.h:58:2: error: #error "No CHIP_* definition is defined"[/color]

#define CHIP_LPC11CXX
[color=#c00]/Users/jens/Library/uCode/libraries/lpc11uxx/inc/cmsis.h:46:25: fatal error: cmsis_11cxx.h: No such file or directory[/color]

#define CHIP_LPC11UXX
[color=#c00]/Users/jens/Library/uCode/libraries/lpc11uxx/inc/chip.h:248:25: fatal error: gpio_11xx_2.h: No such file or directory[/color]

#define CHIP_LPC11EXX
[color=#c00]/Users/jens/Library/uCode/libraries/lpc11uxx/inc/cmsis.h:49:25: fatal error: cmsis_11exx.h: No such file or directory[/color]

#define CHIP_LPC11AXX
[color=#c00]/Users/jens/Library/uCode/libraries/lpc11uxx/inc/cmsis.h:43:25: fatal error: cmsis_11axx.h: No such file or directory[/color]


It seems to me that none of the possible configurations will build.

To me it's not clear at all which configuration to use for the LPC1110-1115.
As I came to the conclusion that the LPC1125 might be the closest to the LPC1114, where do I get the appropriate files for this ?

How/where do I get the cmsis_*.h files needed for the different chips ?
-Shouldn't they be included with the archive ?

If any other kind of drivers/CMSIS exists for the LPC1114, I would be very interested.
Labels (1)
0 Kudos
Reply
2 Replies

1,418 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Pacman on Fri Apr 04 22:31:03 MST 2014
Thank you, Kevin.

This really helps.

I'm writing a new IDE, thus I'm trying to bring in support for as many different devices as possible.
-I'm also trying to test OpenOCD's SWD compatibility before the 0.8.0 release.
(So far, there's a good chance that both LPC1342 and LPC812 will work right out-of-the-box with adapters that support SWD).

I was downloading the Expresso version, as to me it was the simplest and easiest to navigate and the directory-structure that's easiest to integrate in my IDE.
I now see there's a lot more files in the IAR version.

It seems there's a minor bug in the cmsis_11cxx.h from the expresso archive:
File: lpcopen_v2_03_lpcxpresso_nxp_lpcxpresso_11u37h/lpc_chip_11uxx_lib/inc/cmsis_11cxx.h
#if !defined(CHIP_LPC11CXX)
#error Incorrect or missing device variant (CHIP_LPC11AXX)
#endif


... I've now successfully gotten the LPC1114 flashed using OpenOCD and SWD.
Thank you so much for your help.
0 Kudos
Reply

1,418 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by wellsk on Fri Apr 04 13:13:34 MST 2014
It looks like you are missing files. Those cmsis_<CHIP>.h files are usually locate din the chip_<CHIP> area in config_<CHIP> directories.
You need to either add an include path to the directory or copy the files into your inc directory.


Quote:
To me it's not clear at all which configuration to use for the LPC1110-1115.
As I came to the conclusion that the LPC1125 might be the closest to the LPC1114, where do I get the appropriate files for this ?


Use the CHIP_LPC11CXX configuration.
 * CHIP_LPC11CXX definition

 * CHIP_LPC11CXX must be defined for all code when building for the LPC1111, LPC1112,
 * LPC1113, LPC1114, LPC11D14, LPC1115, LPC11C12, LPC11C13, LPC11C22, and LPC11C34 devices.
 * This unvalued definition can be added to the compilers argument list or as part of
 * sys_config.h.


You might download and start with the LPC11c24 package - it's the closest match to your device.
http://www.lpcware.com/system/files/lpcopen_v2_00a_lpcxpresso_nxp_lpcxpresso_11c24.zip
http://www.lpcware.com/system/files/lpcopen_v2_00a_keil_iar_nxp_lpcxpresso_11c24.zip

If you restructure the files from the package (ie, into src and inc directories), copy the contents from the lpcopen\software\lpc_core\lpc_chip\chip_11xx\config_11cxx directory to inc directory.
0 Kudos
Reply