pcbreflux / nordic

Nordic stuff
GNU General Public License v3.0
40 stars 14 forks source link

"make" command leads to error: word unexpected (expecting ")") #7

Open BJ-RN88 opened 4 years ago

BJ-RN88 commented 4 years ago

Hi, I'm following your Tutorials for the nrf51822, those are great!

But I get an Error when trying to "make" the blinky example. After the block for creating the system_nrf51.o the error occurs. It says: /home/pi/Documents/RPi_Projekte/Winkelsensor/nordic-master/gcc-arm-none-eabi-5_4-2016q3/bin/arm-none-eabi-gcc: 1: /home/pi/Documents/RPi_Projekte/Winkelsensor/nordic-master/gcc-arm-none-eabi-5_4-2016q3/bin/arm-none-eabi-gcc: Syntax error: word unexpected (expecting ")")

Do you have any idea on how to solve this problem? Thanks for your support!

mahanako commented 2 years ago

I had that error as well and in my case it was the gcc itself, or better my goof: I have downloaded the arm-none-eabi-gcc for linux as mentioned in the tutorial but it was a 80386 program and my linux runs on an ARM system. Try call the arm-none-eabi-gcc exactly as mentioned in your makefile. If you get an error saying that the file is not an executable, then you'll know. I solved the problem with sudo apt install arm-none-eabi-gcc also accommodating this change in the Makefile.common.