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 semaphore initial error

Posted by Bill Yang on February 15, 2010
Hi,

I compiled FreeRTOS lwIP web server demo by Keil RVMDK and got several errors regarding initializing the Semaphore.

ETHIsr.c(89): error: #29: expected an expression
xSemaphoreHandle ETHRxBinSemaphore [MAX_ETH_PORTS] ={ [0 ... (MAX_ETH_PORTS - 1)] = NULL };

if I comment the initialize array like below, it can pass compiling. But I am not sure if this is correct doing.
xSemaphoreHandle ETHRxBinSemaphore [MAX_ETH_PORTS] ={ /*[0 ... (MAX_ETH_PORTS - 1)] =*/ NULL };

Thanks,
Bill

RE: FreeRTOS semaphore initial error

Posted by Richard on February 16, 2010
I don't know where you got the files from, but the line that Keil is complaining about does not look like C code to me.

Regards.

RE: FreeRTOS semaphore initial error

Posted by Bill Yang on February 16, 2010
Hi Richard,

The file, ETHIsr.c, is in FreeRTOSlwIPExemplo1.tar.bz2 from you, which there 4 line code from 81 - 102. I believe it is originally compiled by GCC in Linux. I just wonder if any one know this syntax of C or GCC. So far everything seems OK to pass the compiling and link except for the " [0 ... (MAX_ETH_PORTS - 1)] =", which I commented these contents. I tried to build this demo combining with the demo of Cortex_LM3SXXXX_Keil_IRA, because we need to replace uIP with lwIP TCP/IP stack for implementing SNMP agent in our project.

By the way, I post a question yesterday regarding the Luminiary new ARM Cortex-M3 chip, LM3S9B96, if FreeRTOS current Cortex-LM3Sxxxx_Keil_IAR supports it or not? Also I have been informed that the new release StellarisWare, SW-DK-LM3S9B96-5570, has demo project of SafeRtos_demo that is using SafeRTOS. I wonder if SafeRTOS is the similar to FreeRTOS. I means the rtos functionality for both is the same. Also I am interested in what the price of SafeRTOS is if we want to subscribe it.

Thanks,
Bill Yang

RE: FreeRTOS semaphore initial error

Posted by Richard on February 16, 2010
SafeRTOS is pre-embedded in the LM3S9B96 ROM and can be used for free. The certification evidence can be purchased separately from WITTENSTEIN. See http://www.safertos.com for more information.


[ 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