IMX7 - ARM cortex M4 development IDE for Linux

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX7 - ARM cortex M4 development IDE for Linux

890 Views
SVC2
Contributor II

Hi,

I am trying to setup a development IDE for Linux to develop application for the IMX7 - ARM cortex M4.

 

The instructions in 'NXP's Getting_Started_with_FreeRTOS_BSP_for_i.MX_7Dual.pdf' are old and there isn't much for Linux.

Using Ubuntu 22.04LTS

  1. I downloaded the compiler from https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads : x86_64 Linux hosted cross toolchains, AArch32 bare-metal target (arm-none-eabi):    gcc-arm-11.2-2022.02-x86_64-arm-none-eabi.tar.xz
  2. I downloaded and installed Eclipse: eclipse-cpp-2022-03-R-linux-gtk-x86_64.tar.gz

When I compile a simple hello world program, I get the following error messages:

/home/simon/gcc-arm-11.2-2022.02-x86_64-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/11.2.1/../../../../arm-none-eabi/lib/libc.a(lib_a-closer.o): in function `_close_r': Try2 C/C++ Problem
/home/simon/gcc-arm-11.2-2022.02-x86_64-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/11.2.1/../../../../arm-none-eabi/lib/libc.a(lib_a-exit.o): in function `exit': Try2 C/C++ Problem
/home/simon/gcc-arm-11.2-2022.02-x86_64-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/11.2.1/../../../../arm-none-eabi/lib/libc.a(lib_a-fstatr.o): in function `_fstat_r': Try2 C/C++ Problem
/home/simon/gcc-arm-11.2-2022.02-x86_64-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/11.2.1/../../../../arm-none-eabi/lib/libc.a(lib_a-isattyr.o): in function `_isatty_r': Try2 C/C++ Problem
/home/simon/gcc-arm-11.2-2022.02-x86_64-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/11.2.1/../../../../arm-none-eabi/lib/libc.a(lib_a-lseekr.o): in function `_lseek_r': Try2 C/C++ Problem
/home/simon/gcc-arm-11.2-2022.02-x86_64-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/11.2.1/../../../../arm-none-eabi/lib/libc.a(lib_a-readr.o): in function `_read_r': Try2 C/C++ Problem
/home/simon/gcc-arm-11.2-2022.02-x86_64-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/11.2.1/../../../../arm-none-eabi/lib/libc.a(lib_a-sbrkr.o): in function `_sbrk_r': Try2 C/C++ Problem
/home/simon/gcc-arm-11.2-2022.02-x86_64-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/11.2.1/../../../../arm-none-eabi/lib/libc.a(lib_a-writer.o): in function `_write_r': Try2 C/C++ Problem
make: *** [makefile:45: Try2] Error 1 Try2 C/C++ Problem
undefined reference to `_close' Try2 line 47, external location: /data/jenkins/workspace/GNU-toolchain/arm-11/src/newlib-cygwin/newlib/libc/reent/closer.c C/C++ Problem
undefined reference to `_exit' Try2 line 64, external location: /data/jenkins/workspace/GNU-toolchain/arm-11/src/newlib-cygwin/newlib/libc/stdlib/exit.c C/C++ Problem
undefined reference to `_fstat' Try2 line 55, external location: /data/jenkins/workspace/GNU-toolchain/arm-11/src/newlib-cygwin/newlib/libc/reent/fstatr.c C/C++ Problem
undefined reference to `_isatty' Try2 line 52, external location: /data/jenkins/workspace/GNU-toolchain/arm-11/src/newlib-cygwin/newlib/libc/reent/isattyr.c C/C++ Problem
undefined reference to `_lseek' Try2 line 49, external location: /data/jenkins/workspace/GNU-toolchain/arm-11/src/newlib-cygwin/newlib/libc/reent/lseekr.c C/C++ Problem
undefined reference to `_read' Try2 line 49, external location: /data/jenkins/workspace/GNU-toolchain/arm-11/src/newlib-cygwin/newlib/libc/reent/readr.c C/C++ Problem
undefined reference to `_sbrk' Try2 line 51, external location: /data/jenkins/workspace/GNU-toolchain/arm-11/src/newlib-cygwin/newlib/libc/reent/sbrkr.c C/C++ Problem
undefined reference to `_write' Try2 line 49, external location: /data/jenkins/workspace/GNU-toolchain/arm-11/src/newlib-cygwin/newlib/libc/reent/writer.c C/C++ Problem

 

  • Do I have the right compiler? Seems like this compiler uses cygwin which is meant for windows.
  • Are there any instructions on how to setup the IDE under Linux?

Any pointers will be appreciated

Simon

 

0 Kudos
Reply
0 Replies