problems building examples projects: CMSISv2_LPC17xx not found

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

problems building examples projects: CMSISv2_LPC17xx not found

660 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by modestt on Thu Oct 27 01:39:33 MST 2011
Hi All,
recently installed LPCXpresso:
Version: LPCXpresso v4.1.0 [Build 190] [27/09/2011]

downloaded example code from NXP website supporting LPCXpresso

http://ics.nxp.com/support/documents/microcontrollers/zip/mcb1700.code.bundle.lpc1769.lpcxpresso.zip

regardless of which project I pick, all fail to compile reporting

cannot find -lCMSISv2_LPC17xxADC C/C++ Problem

I have tried and followed pretty much all threads I can find on this but nothing works. All paths in header files and project config seems OK.
I am using windows 7 OS.

Any ideas ?
Many Thanks in advance
0 Kudos
10 Replies

644 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Nov 04 09:13:04 MST 2011
I don't use different CMSIS versions and therefore never change its header files :eek:

If I'm using a source which includes different structs from other or older CMSIS versions I change this source :)

I don't want to get confused if I have to rewrite my code in a few years with another Notebook (with my customer beside me) :mad:
0 Kudos

644 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by klausc127 on Fri Nov 04 08:52:55 MST 2011
Hi Zero again,
thank you for your fast replies.
i have now my LPC17xx.h back (i was trying so many things).
My base of my project was the DAC with CMSISv2_
and it has the definition:
[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][LEFT]typedef[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]struct[/LEFT]
[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT]{
__IO [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]CR[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]; [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/*!< Offset: 0x000 (R/W) D/A Converter Register */[/LEFT]
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT]__IO [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]CTRL[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]; [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/*!< Offset: 0x004 (R/W) DAC Control register */[/LEFT]
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT]__IO [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]CNTVAL[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]; [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/*!< Offset: 0x008 (R/W) DAC Counter Value Register */[/LEFT]
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]} [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]LPC_DAC_TypeDef[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2];[/SIZE]
[SIZE=2][/SIZE]
[SIZE=2]The LPC71xx.h from v2p00 has:
[/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f][LEFT]/*------------- Digital-to-Analog Converter (DAC) ----------------------------*/[/LEFT]
[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][LEFT]typedef[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]struct[/LEFT]
[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT]{
__IO [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]DACR[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2];
__IO [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]DACCTRL[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2];
__IO [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint16_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]DACCNTVAL[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2];[/LEFT]
} [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]LPC_DAC_TypeDef[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2];[/SIZE]
[SIZE=2][/SIZE]
[SIZE=2]This leads (no wonder) to the errors:[/SIZE]
[SIZE=2][SIZE=2][LEFT]../src/Pcon-slave.c:119:9: error: 'LPC_DAC_TypeDef' has no member named 'CR'
../src/Pcon-slave.c:179:12: error: 'LPC_DAC_TypeDef' has no member named 'CR'
../src/Pcon-slave.c:205:12: error: 'LPC_QEI_TypeDef' has no member named 'IES'[/LEFT]
../src/Pcon-slave.c:210:12: error: 'LPC_QEI_TypeDef' has no member named 'IEC'

How could i overcome this without manually changing the all the usages of DAC (and other stuff)? (like adding a second LPC17xx.h ? or ....) Or shall i refactor the calls of LPC_DAC?

Thanks
Klaus
[/SIZE][/SIZE]
0 Kudos

644 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Nov 04 08:27:00 MST 2011

Quote: klausc127
[SIZE=2]../src/Pcon-slave.c:35:21: fatal error: LPC17xx.h: No such file or directory[/SIZE]




Your compiler is nagging because this file can't be found :eek:

Is its directory correct included :confused:

"${workspace_loc:/CMSISv2p00_LPC17xx/inc}"
And is this file really stored in this drectory?

Is project CMSISv2p00_LPC17xx opened?

Of course you can define all registers and basic functions yourself but I'm not sure if want to write your own CMSIS :rolleyes:
0 Kudos

644 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by klausc127 on Fri Nov 04 07:41:46 MST 2011
Hi Zero,
i followed article #2 and i get the following:
[SIZE=2]../src/Pcon-slave.c:35:21: fatal error: LPC17xx.h: No such file or directory
If comment it out i get other messages:
[SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000][LEFT]../src/Pcon-slave.c:116:9: error: 'LPC_DAC_TypeDef' has no member named 'CR'[/LEFT]
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT]../src/Pcon-slave.c:176:12: error: 'LPC_DAC_TypeDef' has no member named 'CR'
../src/Pcon-slave.c:202:12: error: 'LPC_QEI_TypeDef' has no member named 'IES'
../src/Pcon-slave.c:207:12: error: 'LPC_QEI_TypeDef' has no member named 'IEC'
In the version with CMSIS2_ that didn't happen.
Need I to add the defenition manually or can i include an other library or ..
Thank you
Klaus[/LEFT]
[/SIZE][/SIZE]
0 Kudos

644 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Nov 04 02:09:53 MST 2011
Did you read #2 of this thread :eek:
0 Kudos

644 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by klausc127 on Fri Nov 04 01:20:00 MST 2011
Hello,
I wanted to know, which version of CMSIS is the newer one?
CMSISv2_LPC17xx or CMSISv2p00_LPC17xx

and as I am trying to use parts of examples using the one together with parts using the other:
How could I include both into the project?
How could I change from the older definitions to the newer?

Thanks in advance
Klaus
0 Kudos

644 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by modestt on Thu Oct 27 08:20:34 MST 2011
I found solution so I though I post it.
1. started from zero again.
2. deleted all projects from work-space dir.
3. Switched to work-space.
4. Imported CMSIS and associated project from zip file into work space.
5. build and done.

Many Thanks
-Salman
0 Kudos

644 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by modestt on Thu Oct 27 07:19:55 MST 2011
Hi,
Can some one throw any ideas ? :confused:
Many Thanks
0 Kudos

644 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by modestt on Thu Oct 27 04:12:05 MST 2011
Thanks for your reply.
I am aware of that and browsed through the post you indicated earlier.
The linker and include file setting seem to be correct and point to
CMSISv2_LPC17xx. To make sure I have changed path to CMSISv2_LPC17xx folder

"C:\ArmCortexworkspace\CMSISv2_LPC17xx"             include paths
"C:\ArmCortexworkspace\CMSISv2_LPC17xx\Debug"

CMSISv2_LPC17xx -L      linker Library
"C:\ArmCortexworkspace\CMSISv2_LPC17xx\"  Library search path

but that did not help.

Many Thanks
0 Kudos

644 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Thu Oct 27 03:20:23 MST 2011
Are you aware that this samples are using a different library (CMSISv2_LPC17xx) instead  CMSISv2[COLOR=Red]p00[/COLOR]_LPC17xx?

See: http://knowledgebase.nxp.com/showthread.php?t=2326
0 Kudos