FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [February 2010 Threads] FreeRTOS semaphore initial errorPosted 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 errorPosted 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 errorPosted 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 errorPosted 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.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|