Reference with CMSIS project

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

Reference with CMSIS project

1,219 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Lumos on Wed Jun 27 09:45:27 MST 2012
Hello,

I have some problem with CMSIS project reference.
I created a new LPC1769 project, with reference to CMSISv2_LPC17xx project.
After inserting of small code to the main function (some working with GPIO), project was compilable without any problems. But when I make some changes in the project structure (add new source folder without source files for now), without any change within existing source files, project was not compilable with error "[COLOR=Red]../Core/cr_startup_lpc176x.c:51:28: fatal error: system_LPC17xx.h: No such file or directory[/COLOR]". When I checked project reference: right click on project/Properties/Project References, tick was present for project CMSISv2_LPC17x, but generated file .../Debug/objects.mk does not contain required reference ("LIBS :="). I tried this several times with few different changes in the project with same result: reference to CMSISv2_LPC17x library disappears.
Could you please to help me with my problem?
0 Kudos
Reply
4 Replies

1,202 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Lumos on Thu Jun 28 07:16:25 MST 2012
I found where is the problem, also how can be corrected, but reason is still unknown.

Problem location:
- right click on project / Properties / C/C++ General / Paths and Symbols
1) Includes: paths to includes was changed (name of the project was inserted before correct path to includes: [B]CMSISv2_LPC17xx/inc[/B] was changed to [B]<project name>/CMSISv2_LPC17xx/inc[/B])
2) Libraries: name of the library [B]CMSISv2_LPC17xx[/B] was deleted
3) Library paths: path also deleted

Correction:Change all previously listed changes back.

Reason for this behavior of LPCXpresso v4.2.3 [Build 292] is still unknown, but I find out this:
- Debug configuration is corrupted only (Release configuration not changed)
- Corruption happens when project structure is changed (for example add or delete empty folder in the project)
- Correction of corruption is not permanent, it means, after next change in project structure fault happens again.

I would like to check this behavior on different computer.

Quote: Zero
Check your project path settings ;)

See #4 of http://knowledgebase.nxp.com/showthread.php?t=2558


I know how to correct this situation, but I would like to have LPCXpresso without such behavior :).
0 Kudos
Reply

1,202 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Thu Jun 28 05:09:45 MST 2012
Check your project path settings ;)

See #4 of http://knowledgebase.nxp.com/showthread.php?t=2558
0 Kudos
Reply

1,202 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by researchinnovation on Thu Jun 28 04:56:26 MST 2012

Quote: Lumos
Hello,

I have some problem with CMSIS project reference.
I created a new LPC1769 project, with reference to CMSISv2_LPC17xx project.
After inserting of small code to the main function (some working with GPIO), project was compilable without any problems. But when I make some changes in the project structure (add new source folder without source files for now), without any change within existing source files, project was not compilable with error "[COLOR=Red]../Core/cr_startup_lpc176x.c:51:28: fatal error: system_LPC17xx.h: No such file or directory[/COLOR]". When I checked project reference: right click on project/Properties/Project References, tick was present for project CMSISv2_LPC17x, but generated file .../Debug/objects.mk does not contain required reference ("LIBS :="). I tried this several times with few different changes in the project with same result: reference to CMSISv2_LPC17x library disappears.
Could you please to help me with my problem?




Hi...!!!

Is your
[B]LPCXpresso4 fully activated.[/B]



Just check that and import CMSIS Library for LPC17xx V2 and CMSIS Library for LPC17xx V1.3.
And check also the folder "driver" in your project, whether this [COLOR=Red]system_LPC17xx.h or [/COLOR][COLOR=Red]LPC17xx.h[/COLOR] file is available or not.


Thanks & Regards......:)
0 Kudos
Reply

1,202 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Lumos on Thu Jun 28 02:05:23 MST 2012
No one has such problem?
0 Kudos
Reply