Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


porting FreeRTOS on raspberry pi2

Posted by divakarrajr on August 27, 2016

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.... 1. downloaded FreeRTOS demo source from below link - to the path /home/pi/FreeRTOS/ - Got it untar-ed at the same path. https://github.com/jameswalmsley/RaspberryPi-FreeRTOS 2. downloaded gcc-arm-none-eabi-49-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. https://launchpad.net/gcc-arm-embedded/4.9/4.9-2015-q3-update/+download/gcc-arm-none-eabi-49-2015q3-20150921-linux.tar.bz2 3. exported the tool chain PATH, export PATH="$PATH:/usr/lib/gcc/gcc-arm-none-eabi-4_9-2015q3/bin" 4. run the 'make' command.

But all it gave me was...

/usr/lib/gcc/gcc-arm-none-eabi-49-2015q3/bin/arm-none-eabi-gcc: 1: /usr/lib/gcc/gcc-arm-none-eabi-49-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 ?

porting FreeRTOS on raspberry pi2

Posted by rtel on August 27, 2016

I'm afraid I have no knowledge of that environment at all. You are also using code from a repository which is not provided or maintained by us, so I would recommend asking the repository's owner.

[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS v10.2.1 is available for immediate download. MIT licensed, includes 64-bit RISC-V, NXP Cortex-M33 demo & Nuvoton Cortex-M23 demo.

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Cadence Tensilica Cortes

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers





STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner