
You can create several configurations: one for debugging, one for releasing, etc. The project is created under an Eclipse configuration named Default.

Then, when I’m happy with the version running on Linux, I check that code works OK on other targets (FreeRTOS on STM32, Arduino, etc.) Of course, every OS- or hardware-dependent code is isolated and adapted to related target. That’s why I’ll use Linux GCC toolchain in what follows. The first version I write targets Linux on Intel processor. Note: the code I develop must be portable.

I’m using Eclipse Oxygen 1a Release, on Linux Mint 18.2. Header files are stored in include directory, while source code is stored in src directory. Contextįor what follows, we will work with some sample code, stored in following file hierarchy:

It is assumed that the reader has a basic knowledge of Eclipse. This article describes steps I followed to import some existing C code, creating a managed project. Eclipse is very powerful, but configuring it in the right way when starting a project can be complex.
