LWIP will not compile with FreeRTOS

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LWIP will not compile with FreeRTOS

跳至解决方案
1,429 次查看
MattJCole
Contributor V

I am Using S32 Design Studio for Power Architecture Version 2.1 with the MPC5748G_178 processor.

When I have the FreeRTOS and TCPIP module in the project and try to call the tcpip_init function I get the following compiler errors

Description Resource Path Location Type
undefined reference to `pvTaskGetThreadLocalStoragePointer' api_lib.c /LwipWork_Z4_0/SDK/middleware/tcpip/lwip/src/api line 1348 C/C++ Problem
undefined reference to `pvTaskGetThreadLocalStoragePointer' api_lib.c /LwipWork_Z4_0/SDK/middleware/tcpip/lwip/src/api line 1352 C/C++ Problem
undefined reference to `pvTaskGetThreadLocalStoragePointer' api_lib.c /LwipWork_Z4_0/SDK/middleware/tcpip/lwip/src/api line 1359 C/C++ Problem
undefined reference to `pvTaskGetThreadLocalStoragePointer' api_lib.c /LwipWork_Z4_0/SDK/middleware/tcpip/lwip/src/api line 1362 C/C++ Problem
undefined reference to `vTaskSetThreadLocalStoragePointer' api_lib.c /LwipWork_Z4_0/SDK/middleware/tcpip/lwip/src/api line 1351 C/C++ Problem
undefined reference to `vTaskSetThreadLocalStoragePointer' api_lib.c /LwipWork_Z4_0/SDK/middleware/tcpip/lwip/src/api line 1362 C/C++ Problem

标记 (1)
0 项奖励
回复
1 解答
1,423 次查看
MattJCole
Contributor V

Found the problem the FreeRTOS defaults to the wrong number of "Thread Local storage Pointers". By default it is set to 0. When set to 0 those function are not defined

errorFound.png

在原帖中查看解决方案

1 回复
1,424 次查看
MattJCole
Contributor V

Found the problem the FreeRTOS defaults to the wrong number of "Thread Local storage Pointers". By default it is set to 0. When set to 0 those function are not defined

errorFound.png