Using CMSIS source in project directory

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Using CMSIS source in project directory

676件の閲覧回数
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 返答(返信)

667件の閲覧回数
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 件の賞賛
返信

667件の閲覧回数
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 件の賞賛
返信