Strange problem with driver lib

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

Strange problem with driver lib

379 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by hamu on Tue Oct 15 02:56:53 MST 2013
Hi all,

I played around with LPCXpresso v6.0.2 and there is a really strange problem...

All definitions in LPC18xx.h can´t be resolved!

Here are my (first) steps - workspace is completely new:
1) Import CMSIS_LPC18xx_DriverLib
2) Create new "LPCXpresso C Project" with LPC1833
3) Select CMSIS_LPC18xx_DriverLib als CMSIS-Core library
4) After creating project it´s enough to add one line in main.c which uses definitions in LPC18xx.h
    I used
LPC_CCU1->CLK_M3_DMA_CFG = 1 << CCU1_CLK_M3_DMA_CFG_RUN_Pos;

    The build error is now "../src/main.c:24:35: error: 'CCU1_CLK_M3_DMA_CFG_RUN_Pos'      undeclared (first use in this function)"

But CCU1_CLK_M3_DMA_CFG_RUN_Pos IS defined in LPC18xx.h.
LPC_CCU->CLK_M3_DMA_CFG works.

What´s wrong here??

Thanks
Thomas
   

0 Kudos
Reply
0 Replies