This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Arm-gcc error in Mac OSX

Hi,

I am trying to set up the development tools for the NRF52 on my Mac by following this tutorial aaroneiche.com/.../

I am getting the following error when i try to compile the code using the make command

Compiling file: system_nrf52.c make: /usr/local/gcc-arm/gcc-arm-none-eabi-5_4-2016q2/ /bin/arm-none-eabi-gcc: No such file or directory make: [_build/system_nrf52.o] Error 1

What could be the reason for this? Any inputs would be appreciated?

Parents
  • Read the blog/tutorial by Nordic about Eclipse/Gcc. Especially the step about editing /components/toolchain/gcc/Makefile.posix. Change the first definition of ....ROOT to "/usr/bin" or "/usr" or where ever the arm gcc binary is installed. It seems the toolchain pieces these definitions together to get the path to the compiler. The error message shows the definitions are not correct for your installation.

    My answer is inexact from my limited experience on Linux , you will need to discover the exact details yourself.

  • Okay so i installed the arm-none-eabi-gcc using macports. Now it is giving me the following error after correcting the MakeFile.posix.

    arm-none-eabi-gcc: error: nano.specs: No such file or directory
    make: *** [nrf52832_xxaa] Error 1
    

    I think this is because i am not using the ARM GCC compiler downloaded from their website but using the one installed using macports.

Reply
  • Okay so i installed the arm-none-eabi-gcc using macports. Now it is giving me the following error after correcting the MakeFile.posix.

    arm-none-eabi-gcc: error: nano.specs: No such file or directory
    make: *** [nrf52832_xxaa] Error 1
    

    I think this is because i am not using the ARM GCC compiler downloaded from their website but using the one installed using macports.

Children
No Data
Related