Hey there, I am new to raspbian/FreeRTOS environments. I want to port FreeRTOS into my raspberry pi2 board.
The raspberry pi2 board now runs at raspbian OS from the SD card. My idea is to build the FreeRTOS demo source at the raspbian environment. Then replace the FreeRTOS kernel image file with raspbian kernel img file, at the SD card. Finally boot the pi2 using FreeRTOS kernel - then to start the game all over.
But the problem is in building FreeRTOS source at raspbian environment. Its giving this error,
Syntax error: word unexpected (expecting “)”)
All I did was…
- downloaded FreeRTOS demo source from below link - to the path /home/pi/FreeRTOS/ - Got it untar-ed at the same path.
- downloaded gcc-arm-none-eabi-4_9-2015q3 tool chain from the below link. Untar-ed it to /usr/lib/gcc/ - coz this is path used at the makefile of FreeRTOS demo source.
- exported the tool chain PATH,
- run the ‘make’ command.
But all it gave me was…
/usr/lib/gcc/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc: 1: /usr/lib/gcc/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc: Syntax error: word unexpected (expecting “)”)
/home/pi/FreeRTOS/RaspberryPi-FreeRTOS-master/.dbuild/c-objects.mk:25: recipe for target ‘/home/pi/FreeRTOS/RaspberryPi-FreeRTOS-master/build/FreeRTOS/Source/portable/GCC/RaspberryPi/port.o’ failed
make: * [/home/pi/FreeRTOS/RaspberryPi-FreeRTOS-master/build/FreeRTOS/Source/portable/GCC/RaspberryPi/port.o] Error 2
Please guide me further. What am I missing ?