Changing project structure in eclipse for lpc11c14

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

Changing project structure in eclipse for lpc11c14

604件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by charithjperera on Tue Jun 28 18:08:23 MST 2011
Hi,

I was wondering how i'd be able to change the default structure of the projects.

Currently everything is under /workspace/projectname/
I am trying to move the CMSIS, drivers and startup code to a common location, say an "arch(itecture)" folder under the workspace.
eg:
cmsis: /workspace/arch/lpc11c14/cmsis/
drivers: /workspace/arch/lpc11c14/drivers/
config: /workspace/projectname/config/

What do I need to change to do this?
I have tried changing the settings under:
Project -> Properties
C/C++ Build -> Settings -> Tool Settings -> MCU C Compiler -> Directories
and edited the paths there, as well as
MCU Assembler -> General

It is still refusing to work, what else do I need to change to tell it to look in the new paths?

Thanks very much!
Charith P
0 件の賞賛
返信
2 返答(返信)

594件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Rob65 on Wed Jun 29 02:31:49 MST 2011
You only need to point your project to the new include directories (C/C++ Build -> Settings -> Tool Settings -> MCU C Compiler -> Directories) and update the libraries (both library names and paths) in C/C++ Build -> Settings -> Tool Settings -> MCU Linker -> Libraries.

The library names are the same as your project names (e.g. cmsis) and the directory where to find this library you can set by selecting the workspace path - but you will need to compile the directories before doing this.

Furthermore, in the Project References tick all projects that your project is depending on and for which you want to check these for changes when building your project. Placing a tick near the drivers project will compile this project when there are any changes.

Rob
0 件の賞賛
返信

594件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by charithjperera on Tue Jun 28 18:16:01 MST 2011
Blaah! I see that there is another possible set of configs that may need changing:
Project Properties -> C/C++ General -> Paths and Symbols -> Includes

I'll see if that fixes it up and report back. Any other suggestions would also be appreciated! :)
0 件の賞賛
返信