Quality RTOS & Embedded Software

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




Loading

typedef struct corCoRoutineControlBlock ... corCRCB undeclared

Posted by pugglewuggle on February 26, 2014

Upgrading to 8.0.0 from 7.6.0. I'm seeing this issue in Atmel Studio 6.1.2730 - SP2. I've had the same issue with some structs where I was doing the exact same typedef syntax. I never could get it figured out so I just referred to them as "struct Name" instead of the typedef'd name. This could be as simple as a compiler flag but I just don't know what to look for.

The error I'm getting over 30 times is:

'corCRCB' undeclared (first use in this function)

From croutine.h:

~~~~~~ typedef struct corCoRoutineControlBlock { crCOROUTINECODE pxCoRoutineFunction; xListItem xGenericListItem; /< List item used to place the CRCB in ready and blocked queues. */ xListItem xEventListItem; /< List item used to place the CRCB in event lists. */ unsigned portBASETYPE uxPriority; /< The priority of the co-routine in relation to other co-routines. */ unsigned portBASE_TYPE uxIndex; /< Used to distinguish between co-routines when multiple co-routines use the same co-routine function. / unsigned short uxState; /< Used internally by the co-routine implementation. / } corCRCB; / Co-routine control block. Note must be identical in size down to uxPriority with tskTCB. */ ~~~~~~


typedef struct corCoRoutineControlBlock ... corCRCB undeclared

Posted by rtel on February 26, 2014

Are you sure that is a V8 file? If you go to the very top of the file, what is the version number? In v8 the structure is called CRCB_t not corCRCB.

Regards.


typedef struct corCoRoutineControlBlock ... corCRCB undeclared

Posted by pugglewuggle on February 26, 2014

I restarted Atmel studio since this happened and now it works without me having changed anything. Hmmm. It shows 8.0.0 now. I wonder if something was cached.


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




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

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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