Where to get library documentation

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

Where to get library documentation

3,181 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by prancius on Fri Sep 14 11:10:15 MST 2012
Hello,

I am new in nxp. I have LPC11C24 board.
I would like to start using, but i cant find standart library documentation.
For example how use timers, change port states and so on.

Please point me.

Regards,
Pranas
0 Kudos
Reply
14 Replies

3,155 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by graynomad on Fri Oct 05 16:51:17 MST 2012
That's right "I before E except after K" :)
0 Kudos
Reply

3,155 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cfb on Fri Oct 05 15:48:09 MST 2012

Quote: graynomad
Actually I have no idea what Kiel use


I think it was an attempt at a joke :)
The company (now part of ARM) that produces ARM compilers is spelt 'Keil'
0 Kudos
Reply

3,155 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by graynomad on Fri Oct 05 09:44:21 MST 2012
Actually I have no idea what Kiel use, I just know that most code examples I get from the web don't compile because of what appear to be fairly generic, but non-existant on my system, low-level functions.

Sorry I don't have an example to back this up :)
0 Kudos
Reply

3,155 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ex-kayoda on Fri Oct 05 09:33:48 MST 2012

Quote: graynomad
... I can only assume they are for Kiel or another compilers.



I'm a little bit confused about the 'Kiel' compiler you are talking about :confused:

Is our good old Kiel http://www.kiel.de/ hiding a compiler :confused:
0 Kudos
Reply

3,155 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by graynomad on Fri Oct 05 09:00:15 MST 2012
I also came to LPCs from a background with various uCs and I have to say my experience was much different. After downloading the IDE I reckon I had examples compiling within 20 minutes. It did take some time to figure out I need the CMSIS lib added but that was the only hitch.

When I finally got an Xpresso board I was flashing the LED in minutes.

So while it ain't no Arduino in the turn-key stakes it's pretty good.

That said you do have to start delving into the data sheets pretty soon, but they are pretty good and there is example code to give you the idea.

One thing I have found is that it seems every example I see posted on the web fails to compile, I can only assume they are for Kiel or another compilers. That's pretty annoying but all the code you get from the NXP code bundles seems to work so far although for the 12xx there isn't that much.
0 Kudos
Reply

3,155 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Fri Oct 05 06:15:19 MST 2012
Did you read the Getting Started Manual? It tells you how to create a project (including startup code and main()). i.e. The IDE will do it for you. You could also import some of the examples, which are complete (but basic) examples.

Redlib and Newlib are standard C libraries (i.e. nothing to do with your target hardware). More information on these can be found here:
http://support.code-red-tech.com/CodeRedWiki/RedlibAndNewlib

The NXP docs aren't bad (I've seen worse) - but you do need to know what you are looking for. What are these 'tricky things' you think are missing?

HTH
0 Kudos
Reply

3,155 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by catvic on Fri Oct 05 04:36:54 MST 2012
Prana, I'm completely agree.

I'm just starting with the LPC1xxx devices, and my experience is terrible. The hardware manuals (User Manual + Data Sheet) does not answer many tricky things, and there are not enough app notes covering those.

The IDE is very confusing. After two days, I'm still triying to figure out how to create a simple source file containing main(), not to mention how to write a single output port.

I don't know where the hardware include file is, where there's a description of the library functions, if there is any .....

I've been extensible working with many other architectures and IDE's (HC08, HC12, Coldfire, AVR, MSP430, TI DSPs, Renensas 8/16 bits, Fujitsu 8/16/32 bits, microchip, ...) I've never found something so convoluted, misleading and deceptive like this NXP tool chain.
I'm considering to change....

Catvic
0 Kudos
Reply

3,155 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by prancius on Sat Sep 15 11:41:24 MST 2012
Yes. You can read mcu data sheets. Its describes about registers and so on, but the discusion is about library documentation (redlib, newlib) as i understand it is missing....

I have spent few hours for searching and reading a forum to make simple usart print. Like in other platforms like mplab., microc just opening a help reading function description include library and everything working just in few minutes.

I hope you understand what i am talking about.

Regards
Pranas
0 Kudos
Reply

3,155 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by graynomad on Sat Sep 15 07:41:22 MST 2012
True, I use "data sheets" as a generic term.
0 Kudos
Reply

3,155 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cfb on Sat Sep 15 07:28:12 MST 2012

Quote: graynomad
You are supposed to read data sheets and look at existing code examples.


When developing software for the LPC1xxx family the User Manuals are usually more relevant than the Data Sheets:

http://www.nxp.com/technical-support-portal/50809/56890/user-manuals
0 Kudos
Reply

3,155 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by graynomad on Sat Sep 15 06:33:06 MST 2012
I don't think the LPC environment is much worse than most others in this regard. You are supposed to read data sheets and look at existing code examples.

It's not a great look and you would think the powers that be would have a vested interest in creating some decent docs.

That's the sort of reason platforms like the Arduino do so well, not that their documentation is very good either but an least the environment isolates you from the hard bits.

Along those lines I'm currently writing a HAL (Hardware Abstraction Level) for the LPC1227 (and maybe others later). When done I hope it will allow an LPC newbie (as I still am) to write code without having to know the nitty gritty of every bit in every register.

It's not ready yet by a long shot but there is some documentation here

http://lard.robgray.com/index.php
0 Kudos
Reply

3,155 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by prancius on Fri Sep 14 22:50:09 MST 2012
I am very sad, because have bought i board but i do not think that this programing platform do not have library description and function manuals.
0 Kudos
Reply

3,155 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cfb on Fri Sep 14 15:32:25 MST 2012

Quote: prancius
i cant find standart library documentation.


See the earlier discussion in this forum from a couple of weeks ago: "Getting started without library documentation ?? " :

http://knowledgebase.nxp.com/showthread.php?t=3554
0 Kudos
Reply

3,155 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ArtjomGromak on Fri Sep 14 13:40:58 MST 2012

Quote: prancius

For example how use timers, change port states and so on.


You can find example project in LPCXpresso folders (C:\nxp\LPCXpresso_4.2.2_275\lpcxpresso\Examples\NXP\LPC1000\LPC11xx\).
0 Kudos
Reply