Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training


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 ]    [ Sitemap ]    [ ]

Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.

Free TCP/IP and file system demos for the RTOS

Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists