|
|
### **1. Install GNU MCU Eclipse plugin**
|
|
|
Open Eclipse, go to **Help->Install new software**.
|
|
|
In _Work with_ put `http://gnu-mcu-eclipse.netlify.com/v4-neon-updates/` and press enter.
|
|
|
In the list below, check only **`GNU MCU C/C++ ARM Cross Compiler`** and **`GNU MCU C/C++ OpenOCD Debugging`**, then follow the steps to finalize the installation.
|
|
|
|
|
|
|
|
|
### **2. Importing skyward-boardcore**
|
|
|
After you cloned the skyward-boardcore repo on your system, in Eclipse go to **File->New->Makefile project with existing code**. Select the root directory of the skyward-boardcore repo, and choose **`ARM Cross GCC`** as the `Toolchain for Indexer Settings`
|
|
|
|
|
|
### **3. Setting up the Indexer**
|
|
|
We now need to setup the Indexer for code completion / error detection to work correctly.
|
|
|
Go to **Project->Properties** and follow the instructions for each of the following sections, make sure you apply the settings after each section:
|
|
|
* **C/C++ Build->Settings:**
|
|
|
Prefix: `arm-miosix-eabi-`
|
|
|
_Toolchain Path:_ Click on "project" right below the text box and add `/opt/arm-miosix-eabi/bin` to _"Toolchain Folder"_
|
|
|
* **C/C++ General->Indexer:**
|
|
|
Check **_"Enable project specific settings"_**
|
|
|
Uncheck **_"Index source files not included in the build"_** and **_"Allow euristic resolution of includes"_**
|
|
|
Check **_"Use active build configuration"_**. There appears to be a bug in eclipse that will switch back to _"Use a fixed build configuration"_ after you close the program. If you prefer, you can select your build configuration here and leave the check on _"Use a fixed build configuration"_.
|
|
|
|
|
|
### **4. Adding board specific build configurations**
|
|
|
_(Currently supported boards are STM32F429zi discovery and Skyward Stormtrooper Master)_
|
|
|
First, download the file for your desired board from [HERE](https://drive.google.com/open?id=1Jq4VUUA5OcZfbJRDmoJTISem0f8qh30k)
|
|
|
In the project properties, click on the **C/C++ Build** section and then on **Manage Configurations...**
|
|
|
Create a new configurations for your board (eg. "Discovery") making sure you selected **"Copy settings from... Existing configuration->Default"**
|
|
|
Apply the settings, then go to **File->Import->C/C++->C/C++ Project settings**. Select the configuration file for the board you want (eg. "SKW_TRP_Master.xml"), your project and the corresponding configuration.
|
|
|
After that, rebuild the index using **Project->C/C++ index->Rebuild**, and you're done!
|
|
|
|
|
|
### **Creating settings for a new board**
|
|
|
(WIP) |