finding demo

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

finding demo

1,304 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by skeeve on Tue Jul 23 14:13:03 MST 2013
I'd like to run the demo project mentioned on page 20, section 3.8, of LPCXpresso Base Board Rev B User's Guide.
I've not been able to find it and I'm feeling stupid again.
Where is it?

I did manage to find http://www.lpcware.com/content/project/nxp-peripherals/usb-nxp-microcontrollers/lpcxpresso-support through Code Red,
but none of them seem to be it.
For that matter, none of them seem to be targeted at 1347s.

This is my first experience of any kind with ARMs and I am floundering.
I do have the getting started guide, but it is not getting me started.

Does CMSISv2p10_LPC13Uxx contain all the library stuff I will need to use preipherals on the baseboard?
0 Kudos
Reply
6 Replies

1,278 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cfbsoftware on Thu Jul 25 01:53:53 MST 2013

Quote: skeeve
With the avr-gcc toolchain,
one could port some code by changing the -mmcu option.
If it didn't port, the process would usually fail before getting an executable.
I note similar options for arm-gcc.
Does the same technique work?


The same technique does work with the ARM gcc compiler. i.e. when compiling for the LPC1347 the option mcpu=cortex-m3 is used but when compiling for the LPC11U the mcpu=cortex-m0 is used.

However that only looks after the difference in instruction sets and would only be sufficient if you were writing code that didn't need to communicate with the outside world.

There are many differences in the way NXP have implemented similar features and peripherals for their different families of microcontrollers. When you are looking for similar examples you need to look for targets where the control of their peripherals (GPIO, pin selection, UART,  etc. etc.) have been designed and are organized in a similar way. 
0 Kudos
Reply

1,278 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by skeeve on Wed Jul 24 08:08:19 MST 2013
Thanks much, everyone.
The information is quite useful.
Quote: lpcxpresso-support
The "CMSISv2p10_LPC13Uxx" library project does not contain peripheral driver code, it just contains basic initialisation code and CMSIS headers - giving things like structures defining the peripheral registers. For more background information, see:

http://support.code-red-tech.com/CodeRedWiki/Support4CMSIS

Thanks.  I'll go there.
Quote:
The LPC1347 examples that ship with LPCXpresso IDE can be found within the examples directory of your installation at:

\Examples\NXP\LPC1000\LPC13xx_12bitADC

[ The "12bitADC" being how we were asked to distinguish the 'new' LPC13's from the originals. ]

Another user pointed that out after I'd tried to run blinky.
twinkle worked better.
If one does not already know, some of the labelling is not all that informative.
Quote:
Also be aware that LPC1347 is very similar to the LPC11U in terms of peripherals, so examples for LPC11U should also port across fairly easily. But code for the earlier LPC1343 is not!

With the avr-gcc toolchain,
one could port some code by changing the -mmcu option.
If it didn't port, the process would usually fail before getting an executable.
I note similar options for arm-gcc.
Does the same technique work?
0 Kudos
Reply

1,278 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cfbsoftware on Wed Jul 24 01:18:36 MST 2013

Quote: lpcxpresso-support
Note that I am not sure if there are any precreated examples for using the LPC1347 mounted on an LPCXpresso baseboard.


The description on the Embedded Artists support page is:

This section contains sample applications for the LPCXpresso Base Board.

The bundle contains project files for the LPCXpresso IDE and mbed compiler.

Sample applications
•lpc176x_xpr_bb_130125.zip (655 kB)
•lpc1343_xpr_bb_101027.zip (500 kB)
•lpc1347_xpr_bb_120828.zip (786 kB)
•lpc1227_xpr_bb_110823.zip (423 kB)
•lpc1114_xpr_bb_101102.zip (263 kB). ? Please note that these applications can also be used for the LPC11C24 board (change MCU settings in the project). Read section 6.2 in the User's Manual for differences between the LPC1114 board and the LPC11C24 board.

•lpc11u14_xpr_bb_110823.zip (367 kB)
•mbed_xpr_bb_110110.zip (138 kB) ?Note: The bundle above is for the mbed Compiler.
0 Kudos
Reply

1,278 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Jul 24 00:19:10 MST 2013
The "CMSISv2p10_LPC13Uxx" library project does not contain peripheral driver code, it just contains basic initialisation code and CMSIS headers - giving things like structures defining the peripheral registers. For more background information, see:

http://support.code-red-tech.com/CodeRedWiki/Support4CMSIS

The LPC1347 examples that ship with LPCXpresso IDE can be found within the examples directory of your installation at:

\Examples\NXP\LPC1000\LPC13xx_12bitADC

[ The "12bitADC" being how we were asked to distinguish the 'new' LPC13's from the originals. ]

Additional examples can then be downloaded from:

http://www.lpcware.com/content/nxpfile/lpcxpresso-example-projects-and-cmsis-library-lpc131516174546...

and more extensive code is provided as part of LPCOpen:

http://www.lpcware.com/content/nxpfile/lpcopen-platform

Note that I am not sure if there are any precreated examples for using the LPC1347 mounted on an LPCXpresso baseboard.

Also be aware that LPC1347 is very similar to the LPC11U in terms of peripherals, so examples for LPC11U should also port across fairly easily. But code for the earlier LPC1343 is not!

Regards,
LPCXpresso Support
0 Kudos
Reply

1,278 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Tue Jul 23 22:12:52 MST 2013
I assume you mean the baseboard from Embedded Artists?
1. The baseboard is suitable for any of the LPCXpresso target boards (11xx, 13xx, 17xx etc)
2. The examples are provided by Embedded Artists. They normally get you to create an account, login and then the documentation and examples are provided from their website.

If you just want to get started, try using the examples provided with the IDE and not use the baseboard until you are a little more familiar with the basics.
0 Kudos
Reply

1,278 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cfbsoftware on Tue Jul 23 15:25:49 MST 2013

Quote: skeeve
I'd like to run the demo project mentioned on page 20, section 3.8, of LPCXpresso Base Board Rev B User's Guide.
I've not been able to find it and I'm feeling stupid again.
Where is it?


You can download the Base Board software from the designers, Embedded Artists, if you register your board with them:

http://www.embeddedartists.com/products/lpcxpresso/xpr_base.php


0 Kudos
Reply