Also I’ve received valuable answers and wishes from the “LinkedIn Professionals” (here and here). Most of them like to work with an IDE and preferably Eclipse IDE. As PlatformIO is a console tool with rich commands interface it can work with different IDEs as the “builder, uploader & debugger”.
Today I want to explain how we can build and debug Atmel AVR (Arduino) based project using Eclipse IDE + PlatformIO.
“PlatformIO is a cross-platform code builder and the missing library manager”
Working on an embedded firmware for SmartAnthill Project I’ve been dealing with building code for different embedded platforms. Nowadays, each platform proposes standalone toolchain, driver-lib and even own IDE:
With each new embedded platform I had to adapt to its own IDE, code highlighter, code autocompletion, debugger and many more. Then I’ve decided to write code in my favourite editor (Vim) and build it only with these IDEs. But a structure of my project looked ugly because each IDE had created own project’s META files and folders. Therefore, I had different project locations for each IDE and “symlinked” source code folder to one location. But this wasn’t for long…
The Android NDK is a toolset that allows us to implement parts of our app using native-code languages such as C and C++. There are many articles about integrating AndroidSDK/NDK and writing some “C/C++” JNI compatible code. JNI is the Java Native Interface. It defines a way for managed code (written in the Java programming language) to interact with native code (written in C/C++).
But today we will talk about:
the native cross-compiling on the Windows/UNIX-like systems
uploading of the compiled binary file to the Android device
running the compiled binary file via Android CLI shell.
And what is interesting, we will not use the Android SDK (except adb utility) or any others Android sources 🙂
So the last days of this year are ending… And many of us are thinking about what we did in this old year. Some of us are analyzing a self success, when others the happened failures. But we should realize that the success and failures are our knowledge of life.
Each of us have had happy and troubled minutes in this year. But the main is that we had faith in ourself and in success. I like to follow by this proverb: “Everything will work out for the best“.
Therefore, let these holidays bring you and your family gladness, love and prosperity. I wish you in New Year that all of your dreams become true. And I want to give you a few of my “Piano” New Year songs… 🙂