nicdear wrote on Saturday, November 30, 2013:
Hi,
I’m trying to compile the STemWin Library under CooCox for the STM324xG-EVAL board, 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.