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




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