lpcware

Strange problem with driver lib

Discussion created by lpcware Employee on Jun 15, 2016
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
   

Outcomes