Using CMSIS source in project directory

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Using CMSIS source in project directory

678 次查看
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 项奖励
回复
2 回复数

669 次查看
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 项奖励
回复

669 次查看
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 项奖励
回复