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

FreeRTOS 4.0.4, GCC, ARM7_AT91SAM7S: portmacr

Posted by Thomas K.-H. Nittel on July 19, 2006
Hello, Richard,

I compiled FreeRTOS 4.0.4. with arm-elf-gcc 4.1.0. It seems that there is a write error in the file 'FreeRTOS\Source\portable\GCC\ARM7_AT91SAM7S\portmacro.h'.
The line 234 '#define portDISABLE_INTERRUPTS()' seems being too much.

Best regards

Thomas

RE: FreeRTOS 4.0.4, GCC, ARM7_AT91SAM7S: portmacr

Posted by Nobody/Anonymous on July 19, 2006
Sorry, don't understand.

RE: FreeRTOS 4.0.4, GCC, ARM7_AT91SAM7S: port

Posted by Thomas K.-H. Nittel on July 19, 2006
This is the original code:
#ifdef THUMB_INTERWORK
...
#else
#define portDISABLE_INTERRUPTS()\
#define portDISABLE_INTERRUPTS()\
asm volatile (\
...
#define portENABLE_INTERRUPTS()\
asm volatile (\
...
#endif /* THUMB_INTERWORK */


If the second branch is compiled the error message 'error: '#' is not followed by a macro parameter' appears.

If the code is modified as follows there isn't an error message.

#ifdef THUMB_INTERWORK
...
#else
#define portDISABLE_INTERRUPTS()\
asm volatile (\
...
#define portENABLE_INTERRUPTS()\
asm volatile (\
...
#endif /* THUMB_INTERWORK */

RE: FreeRTOS 4.0.4, GCC, ARM7_AT91SAM7S: port

Posted by Richard on July 19, 2006
Hi Thomas,

Thanks for pointing that out. Looks like a paste problem. I will remove the extra line.

However - there are not any demos that actually use that path through the code. The only command line GCC demo for the SAM7 is the lwIP demo. Is this what you are building, or do you have your own setup? I think I have on file some command line projects for the SAM7S, but I suspect they will be using THUMB mode.

Regards.

RE: FreeRTOS 4.0.4, GCC, ARM7_AT91SAM7S: port

Posted by Thomas K.-H. Nittel on July 19, 2006
Hi Richard,
I have set up a small FreeRTOS project based on FreeRTOSV4.0.4\FreeRTOS\Demo\lwIP_Demo_Rowley_ARM7 to evaluate FreeRTOS on Atmel's evaluation board AT91SAM7X256-EK. I use the same compiler options as this project, i.e. I use the thumb mode and don't use the discussed path through the code either. But when I looked through the code this line attracted my attention.
Regards.
Thomas


[ 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