Cross-Compiling and Debugging C++ program on MaaxBoard-Avnet using Eclipse
Maaxboard has a processor: NXP i.MX 8M Processor with Quad Arm Cortex-A53 and single Cortex-M4F. So according to this information, we need a gcc compiler based on ARM64 and also the toolchains should be available for cross-compilation on Microsoft Windows and Linux host operating systems
Here it is suitable cross-compile tools for me:
x86_64 Linux hosted cross compilers
AArch64 GNU/Linux target (aarch64-none-linux-gnu)
After downloaded, extract the tools
tar xf
gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz
Now, let’s look at eclipse configuration in more detail:
Create a new project on project explorer.
Right click => New => Project => C/C++ => C++ Project = >
Choose Hellow World C++ Project from project explorer window and Cross GCC from Toolchains window
And next, next until Cross gcc command page.
Cross compiler prefix:
aarch64-none-linux-gnu-
Cross compiler path:
I extract my compiler tools into the path below. Make sure you added /bin file word to the end of your compiler path. It should be seemed like this:
/home/ubu/maaxboard/gcc-arm-10.3–2021.07-x86_64-aarch64-none-linux-gnu/bin
and finish: Your project ready to compile
Just click the project build button and you should see output log like this