This KB article describes a fast method to migrate a project from Atollic to Eclipse by using a reference project.. a project that either has already been converted to Eclipse from Atollic, or was an Eclipse project to start with.
First, unzip the reference project into the same folder as your target project. For example: AmbiqMicro/AmbiqSuite/boards/apollo2_evb/examples
Open up your target project folder, and rename the “atollic_gcc” folder to “eclipse_gcc”
Then start Eclipse.
Into the workspace, Import the project that you want to convert, and also import the reference project. In this example we will convert the “hello_world” project, using a “hello_world_uart” project as the reference.
Open up the properties for the “hello_world” project, and select Tool Chain Editor.
From here, click on the “Manage Configurations” button found near the top right.
Create a new configuration by clicking the “New..” button. Name it “Debug” and select to import from projects. In the dropdown menu select the reference project.
Click OK.. and then delete the old “bin” configuration, leaving only the Debug configuration:
Click Ok, and then click “Apply and Close”.
Re-open the Preferences… “Tool Paths” is now a selection in the menu on the left. Click there and Browse on the “Toolchain folder”. Navigate to AmbiqMicro/GCC/LaunchpadGCC/bin
In the menu, select C/C++ Build, and change the Build directory to point to the right location by changing “hello_world_uart_gcc” to “hello_world_gcc”
Apply and Close. Now open the Makefiles of both projects. Copy the contents of the reference projects Makefile into that of the Target project. Make name adjustments, and file path adjustments as needed:
Now go out to Windows Explorer and navigate to the “bsp” folder for the board you are using. Change the folder name from “atollic_gcc” to “eclipse_gcc”
Do the same for the “hal” folder:
In Eclipse do a Refresh, Clean and Build the project.
You’re all set to develop now in Eclipse!
Comments
0 comments
Please sign in to leave a comment.