Quality RTOS & Embedded Software

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


Loading

ADS 1.2 compiler port question

Posted by Nobody/Anonymous on March 3, 2006
I want port free rtos use ARM Developer Suite 1.2,but the compiler have some limit: it can't modify "SP" value when use inline assemble, so i can't write "portRESTORE_CONTEXT" and "portSAVE_CONTEXT" in c code;it can't support a function to be "nake" or "task".
how can i do?

kevin

RE: ADS 1.2 compiler port question

Posted by Nobody/Anonymous on March 3, 2006
This is the second message in two days on this. Is this to do with the new Keil/ARM combined offering?

I think in RVDS you can write assembly functions directly in C code just by placing an asm (or __asm?) before the function.

eg

asm void aFunction( void )
{
asm statements go here
}

RE: ADS 1.2 compiler port question

Posted by Nobody/Anonymous on March 6, 2006
Though i can write assmbly function directly in C code, but can't direct access "SP","LR" register, so i can't use inline assembly MACRO in C code, because
some freertos code like "portRESTORE_CONTEXT", "portSAVE_CONTEXT" "portENTER_SWITCHING_ISR" direct use "SP" "LR" register, how can i do?

kevin

RE: ADS 1.2 compiler port question

Posted by Nobody/Anonymous on March 6, 2006
If this is a hard limitation in the compiler then it is going to be difficult. Are there any modes of operation where it allows access? It seems very restrictive.

RE: ADS 1.2 compiler port question

Posted by Nobody/Anonymous on September 8, 2006
Have you figured out the solution for this yet?
I am having the same problem.

RE: ADS 1.2 compiler port question

Posted by Nobody/Anonymous on September 9, 2006
Have a look at the files in FreeRTOS\Source\portable\RVDS\ARM_CM3. These use RVDS but are not for the ARM7. But I'm sure you could copy how it was done.


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


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

Latest News

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

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

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


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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