Using CMSIS source in project directory

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

Using CMSIS source in project directory

679 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mahna on Tue Aug 14 18:43:36 MST 2012
I am having several projects using CMSIS in my workspace. The settings of clock may be different for different projects, for which I have to change defines in CMSIS system_lpc17xx.c .
1. Is there any way in which each project can have its own copy of CMSIS source rather than sharing same source in workplace. Or somehow change the defines in system_lpc17xx as per project for different projects ?
2. How to tell the version control system to include the CMSIS source ?

Thanks
0 Kudos
Reply
2 Replies

670 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Wed Aug 15 00:34:56 MST 2012
To generate projects with different clock settings it's very easy to copy SystemInit() from system_LPC11xx.c in your local cr_startup_lpcxx.c :)

Then rename it and change it's call in cr_startup_lpcxx.c. Copy also all defines (like SYSPLLCTRL_Val...) and your local SystemInit() is just changing clock settings ;)
0 Kudos
Reply

670 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by whitecoe on Wed Aug 15 00:15:19 MST 2012
Simplest thing to do would be to just put a copy of the cmsis c file into your main application project with the change made to it, and that will get linked in instead of the one from the library project.

Or you could go all the way, and just copy all the files from the CMSIS library project into you main application project, and delete all references (include paths, link paths etc) to the CMSIS library project.

HTH!
0 Kudos
Reply