Compile FreeRTOS for Cortex-r7

casey_55 wrote on Monday, March 12, 2018:

I am trying to compile FreeRTOS for cortex-r7. Every toolchain I have tried (4 toolchains so far), gives
me the same errors. I’ve verified that it is invoking the correct gcc & as.
[src$:537]
$CC -c …/src/queue.c -I …/inc -mthumb -mcpu=cortex-r7
/tmp/ccW9m3Rr.s: Assembler messages:
/tmp/ccW9m3Rr.s:86: Error: unexpected character l' in type specifier /tmp/ccW9m3Rr.s:86: Error: bad instruction push.l R10’
/tmp/ccW9m3Rr.s:87: Error: unexpected character l' in type specifier /tmp/ccW9m3Rr.s:87: Error: bad instruction mov.l #0x872E0,R10’

My development environment is ubuntu 16.04 virtualbox running on x86 windows.

  1. Which toolchain I should be using for bare metal cross compiles? So far, I’ve tried:
    arm-none-eabi
    gcc-linaro-5.1-2015.08-x86_64_arm-eabi
    gcc-linaro-5.2-2015.11-2-x86_64_arm-linux-gnueabihf
    gcc-arm-none-eabi-7-2017-q4-major
  2. Appropriate command line options. I don’t care for optimization at this point. My target is
    the Cortext-R7 cpu in a Renesas M3 device.

Thanks

rtel wrote on Monday, March 12, 2018:

I think the arm-none-eabi-gcc compiler from
https://launchpad.net/gcc-arm-embedded will work, but for Renesas I
previously used the KPIT provided toolchains:
https://interactive.freertos.org/hc/en-us/community/topics/200480246-Renesas

casey_55 wrote on Tuesday, March 13, 2018:

launchpad.net links to ARM download page where there is gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2. I already tried that with the same problems.

I’ll try the KPIT toolchain tomorrow.

casey_55 wrote on Tuesday, March 13, 2018:

KPIT does not seem to have any compilers for the cortex-r7. I think their tools are for other
(Renesas specific) architectures. Did not seem to be ARM related. I am not familiar with the CPU names there.

casey_55 wrote on Wednesday, March 14, 2018:

Finally built this. In ubuntu, install gcc-arm-none-eabi. Use these command line options:
-Os -g -Wall $(INCLUDES) -mcpu=cortex-r7 -marm -mfpu=vfpv4 -mfloat-abi=hard

rtel wrote on Wednesday, March 14, 2018:

Thanks for reporting back.

mani111ece wrote on Tuesday, March 27, 2018:

Newly started freeRTOS. I don’t know how to make it work.but I wanna learn freeRTOS so please guide me.
how you are building and running the sample apps for any board.please suggest any one board so that I can explore more.
so please let me know how to build and run.

rtel wrote on Tuesday, March 27, 2018:

There is a documentation page that tells you how to build the demo for
each demo in the download. The best place to start is here:
https://www.freertos.org/FreeRTOS-quick-start-guide.html