Quality RTOS & Embedded Software

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


Using freeRTOS with RM48 and IAR-Tools

Posted by menggaardp on January 21, 2014

Hi, Has anybody tried and successeded making a project with RM48L952 and freeRTOS in IAR-embedded Workbench? I am trying but get link errors like this: Error[Lp002]: relocation failed: value out of range or illegal: 0x7fff078 Kind : RARMLDRPCG0[0x4] Location: 0x000010ac Module: .App02DebugObjportASM.o Section: 6 (.text) Offset: 0x0 Target : 0x0800012c "pxCurrentTCB" Module: .App02DebugObjtasks.o Section: 8 (.bss) Offset: 0x0

I have taken demo-code for the CCS and corrected errors to make it suit the IAR-tools. Has anybody had the success in making it work?

Best regards Michael c".)

Using freeRTOS with RM48 and IAR-Tools

Posted by rtel on January 21, 2014

Branch/data referencing instructions can often only branch/reference data a certain distance from their own position in the memory map. For example, a branch instruction may encode a fixed number of bits for the branch target, and if that number of bits were 4 (exaggerating) then you could only branch a maximum of 0xff bytes away from the location of the branch instruction itself.

The error sounds like you are using an assembly instruction to try and reference pxCurrentTCB when pxCurrentTCB is too far away for that particular assembly instruction to be used. I suspect the code you have copied this from will not be referencing the variable directly, but through a constant that holds the address of the variable. You can then load the full 32-bit address of the variable into a register and dereference the address to get the variable's value.


Using freeRTOS with RM48 and IAR-Tools

Posted by menggaardp on January 22, 2014

Thank You for the fine reply, - it solved my troubles. Well, now I can link my program, it still needs to prove that it can run :-) I changed a const-link in portasm.asm from DCW to DWD, that made the difference!

Best regards Michael c".)

[ 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.0 is available for immediate download. MIT licensed, and including RISC-V and ARMv8-M (Cortex-M33) demos.

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