PSoC Creator Project Export
- in PSoC Creator, right-click on your project and select Export to IDE (Project Name)…
- select Eclipse and hit Next
- on the next page, hit Export
- copy the (ProjectName.cydn) directory over to your VirtualBox shared directory
GNU ARM Eclipse Project Setup
Once you have your environment setup and a PSoC Creator project exported, you’re ready to import it into GNU ARM Eclipse.
Project Directory Structure
In the File System:
- Create a new root directory to hold the exported PSoC Creator project
- Copy the exported project (ProjectName.cydsn) into the root directory
- Copy the makefile into the root directory
- In the root directory, create a new user source directory named
source
. This is where any new code written in GNU ARM Eclipse goes.
Import Existing Code
In Eclipse:
- select Makefile Project with Existing Code
- give your project a name, and select the project root directory as the Existing Code Location.
- select Cross ARM GCC for Toolchain for Indexer Settings
- click Finish
Populate Build Environment Variables
For whatever reason, the build environment variables are not populated when you select the toolchain in the project import dialog.
In Project Preferences:
- in Preferences → C/C++ Build → Settings
- select the Toolchains tab
- for field Name, select GNU Tools for ARM Embedded Processors (arm-none-eabi-gcc)
- this is because of a strange bug – the build environment variables are not set until this selection is made.
Tell the Indexer Where Code is Located
At this point, the project will build correctly, but the indexer has no idea where all the code you’re referencing is located.
In Project Preferences:
- in Preferences → C/C++ General → Paths and Symbols
- select the Includes tab
- click Add…
- check all 3 boxes (“Add to all configurations”, “Add to all languages”, “Is a workspace path”)
- click Workspace…
- select your project root directory
- hit OK
Makefile
For your specific project, look at the console output of the PSoC Creator build.
Example makefile here