Thursday, April 26th 2018, 7:12pm UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

NicD

Beginner

Date of registration: Nov 29th 2013

Posts: 2

Location: Durban / South Africa

Occupation: Engineer

1

Friday, November 29th 2013, 3:13pm

emWin and CooCox

Hi,

I'm trying to compile the STemWin Library under CooCox for the
STM324xG-EVAL
boar
d
, but its throws the following error:



[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Project\STM324xG-EVAL\RTOS\User\main.c:44:1: error: unknown type name 'xTimerHandle'
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Project\STM324xG-EVAL\RTOS\User\main.c:49:29: error: unknown type name 'xTimerHandle'
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Project\STM324xG-EVAL\RTOS\User\main.c: In function 'main':


[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c:96:2: error: unknown type name 'tmrTIMER_CALLBACK'
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c:218:1: error: unknown type name 'xTimerHandle'
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c:218:148: error: unknown type name 'tmrTIMER_CALLBACK'
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c:257:37: error: unknown type name 'xTimerHandle'
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c: In function 'prvProcessExpiredTimer':
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c:332:4: warning: implicit declaration of function 'xTimerGenericCommand' [-Wimplicit-function-declaration]
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c:332:45: error: 'tmrCOMMAND_START' undeclared (first use in this function)
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c:332:45: note: each undeclared identifier is reported only once for each function it appears in
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c:339:33: error: 'xTimerHandle' undeclared (first use in this function)
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c:339:48: error: expected ')' before 'pxTimer'
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c:339:29: error: called object 'pxTimer->pxCallbackFunction' is not a function
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c: In function 'prvProcessReceivedCommands':
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c:537:9: error: 'tmrCOMMAND_START' undeclared (first use in this function)
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c:543:37: error: 'xTimerHandle' undeclared (first use in this function)
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c:543:52: error: expected ')' before 'pxTimer'
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c:543:33: error: called object 'pxTimer->pxCallbackFunction' is not a function
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c:554:9: error: 'tmrCOMMAND_STOP' undeclared (first use in this function)
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c:559:9: error: 'tmrCOMMAND_CHANGE_PERIOD' undeclared (first use in this function)
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c:565:9: error: 'tmrCOMMAND_DELETE' undeclared (first use in this function)
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c: In function 'prvSwitchTimerLists':
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c:604:34: error: 'xTimerHandle' undeclared (first use in this function)
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c:604:49: error: expected ')' before 'pxTimer'
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c:604:30: error: called object 'pxTimer->pxCallbackFunction' is not a function
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c:623:46: error: 'tmrCOMMAND_START' undeclared (first use in this function)
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c: At top level:
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c:656:36: error: unknown type name 'xTimerHandle'
[cc] C:\CooCox\Projects\STemWin_Library_V1.1.1\Utilities\Third_Party\FreeRTOS\Source\timers.c:675:26: error: unknown type name 'xTimerHandle'

I have the the "Utilities\Third_Party\FreeRTOS\Source\include" and "Project\STM324xG-EVAL\RTOS\Config" directories included but the compiler doesn't seem to see the timers.h file containing the
'xTimerHandle' definition.



Any help with be greatly appreciated,



Thanks

Date of registration: May 26th 2009

Posts: 1,022

2

Friday, November 29th 2013, 4:41pm

Hello,

Since the files timers.c and timers.h are part of FreeRTOS, I would recommend to contact FreeRTOS support at www.freertos.org.

Best regards,
Adrian

NicD

Beginner

Date of registration: Nov 29th 2013

Posts: 2

Location: Durban / South Africa

Occupation: Engineer

3

Saturday, November 30th 2013, 9:13pm

Thanks Adrian, will do so. :thumbsup: