Chip library project for LPC1768

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

Chip library project for LPC1768

1,220 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by reedomneck on Sun May 29 06:46:47 MST 2016
Hi,

I am using LPC1768 controller for my project and LPCxpresso IDE.
I have created 2 new projects by selecting LPCopen wizard,
For one project i have selected lpc_chip_175x_6x as LPC open chip library project from lpcopen_2_10_lpcxpresso_nxp_lpcxpresso_1769.zip file,
for second one CMSISv2p00_LPC17xx as LPC open chip library project and i am seeing difference in System control regiser.

I have mentioned it below.
In first project :sysctl_17xx_40xx.h file

typedef struct {
__IO uint32_t FLASHCFG;/*!< Offset: 0x000 (R/W)  Flash Accelerator Configuration Register */
uint32_t RESERVED0[15];

In second project :LPC17xx.h file

typedef struct
{
  __IO uint32_t FLASHCFG;               /* Flash Accelerator Module           */
       uint32_t RESERVED0[31];
  
Can any one suggest me which one i have to select as chip lib project for LPC1768.
Labels (1)
0 Kudos
5 Replies

745 Views
lpcware
NXP Employee
NXP Employee
bump
0 Kudos

745 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by reedomneck on Sun May 29 23:39:23 MST 2016
I have tried this already and i am seeing some difference in the sysctl_17xx_40xx.h file,
LPC_SYSCTL_T structure is not same as the register structure.
0 Kudos

745 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Sun May 29 23:25:09 MST 2016

Quote: reedomneck
I have selected CMSIS_CORE_



:quest:

The basic concept of LPCOpen is to use a chip library (lpc_chip_175x_6x) and a board library (lpc_board_nxp_lpcxpresso_1769).

Of course the board library is trying to include the chip things with 'chip.h'. I would suggest to start with this standard setup if you are not familiar with this stuff  :)
0 Kudos

745 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by reedomneck on Sun May 29 22:43:46 MST 2016
Thank you very much,

I have gone through the link.
CMSIS_CORE_<partfamily(CMSIS_CORE_LPC17xx)> is selected as LPC open chip library project i have created

I have selected CMSIS_CORE_<partfamily(CMSIS_CORE_LPC17xx)> as LPC open chip library project from CMSIS_CORE_Latest.zip file but when i compile i am getting error "fatal error: chip.h: No such file or directory"
0 Kudos

745 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Sun May 29 06:54:39 MST 2016
See:

https://www.lpcware.com/content/faq/lpcxpresso/cmsis-support


Quote:
The use of [color=#f00]LPCOpen is now recommend[/color] for most LPC MCUs, rather than the 'old-style' CMSIS-CORE library projects and examples. For more details please see the LPCXpresso IDE User Manual, and visit the LPCOpen webpages.

0 Kudos