LPCXpresso Libraries

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPCXpresso Libraries

1,085 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by arada on Sun May 08 18:36:49 MST 2011
Hello there,
I would like to know how to include the examples' library driver to a new empty project and how to create a project from scratch using simple REGISTER definition instead of the "complex" structures includes in LPC11xx.h.
Best regards,
Andres Rada.
0 项奖励
回复
3 回复数

1,063 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by arada on Mon May 16 20:13:22 MST 2011
Very accurate information.
0 项奖励
回复

1,063 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Mon May 09 06:21:27 MST 2011

Quote: arada
Hello there,
I would like to know how to include the examples' library driver to a new empty project



If you are referring to the example code for driving peripherals contained in the latest NXP produced examples for LPC11xx (for example the NXP_LPCXpresso1114-301_2011-01-27.zip provided with LPCXpresso 3.6.3), then you might want to take a look at the readme for the template project provided within these examples.

There is also more information on examples in general at:

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


Quote:

and how to create a project from scratch using simple REGISTER definition instead of the "complex" structures includes in LPC11xx.h.

If you are struggling to understand the structures in LPC11xx.h, then I would suggest that you take a look at the following FAQ, which amongst other things  describes how to use the CMSIS definitions for accessing peripheral registers....

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

Regards,
CodeRedSupport
0 项奖励
回复

1,063 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Rob65 on Mon May 09 01:48:13 MST 2011
Use the [I]Import archived projects[/I] from the [I]Import and export[/I] section of the Quickstart panel.
Select only the library projects (and the CMSIS) projects to import in any workspace you created.

Don't forget to create you 'application'  project as an LPCXpresso C project. you can do this either via the File -> new - Other and then select "LPCXpresso C project", or click the little button on the toolbar that shows "create new project with startup code, linker script and main()". It's the little blue box with the 'C' inside and a little yellow '+'.
Select your LPC version and the library you want to use.
The "Semihosting"  projects will provide printf() functionality via the console window of LPCXpresso.

Rob
0 项奖励
回复