Starting with the 'lwip_FreeRTOS_s32k358' example project, we are trying to use on S32K328
and freeRTOS for our product
Running into the following compilation issues.
Among all the errors, highlighting one error message
Looking at this further seems like s32k328 is not supported. Can you please confirm?
What can we do to get it working for s32k328?
thank you
Raj
--
Building file: ../stacks/tcpip/lwip/src/api/if_api.c
Building file: ../stacks/tcpip/lwip/src/api/sockets.c
Invoking: Standard S32DS C Compiler
Invoking: Standard S32DS C Compiler
Building file: ../stacks/tcpip/lwip/src/api/tcpip.c
arm-none-eabi-gcc "@stacks/tcpip/lwip/src/api/api_lib.args" -MMD -MP -MF"stacks/tcpip/lwip/src/api/if_api.d" -MT"stacks/tcpip/lwip/src/api/if_api.o" -o "stacks/tcpip/lwip/src/api/if_api.o" "../stacks/tcpip/lwip/src/api/if_api.c"
arm-none-eabi-gcc "@stacks/tcpip/lwip/src/api/api_lib.args" -MMD -MP -MF"stacks/tcpip/lwip/src/api/sockets.d" -MT"stacks/tcpip/lwip/src/api/sockets.o" -o "stacks/tcpip/lwip/src/api/sockets.o" "../stacks/tcpip/lwip/src/api/sockets.c"
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@stacks/tcpip/lwip/src/api/api_lib.args" -MMD -MP -MF"stacks/tcpip/lwip/src/api/tcpip.d" -MT"stacks/tcpip/lwip/src/api/tcpip.o" -o "stacks/tcpip/lwip/src/api/tcpip.o" "../stacks/tcpip/lwip/src/api/tcpip.c"
Building file: ../stacks/tcpip/code/ports/osif/rtd/OsIf_rtd_port.c
Invoking: Standard S32DS C Compiler
Building file: ../stacks/tcpip/code/ports/netif/gmacif/rtd/gmacif.c
arm-none-eabi-gcc "@stacks/tcpip/code/ports/osif/rtd/OsIf_rtd_port.args" -MMD -MP -MF"stacks/tcpip/code/ports/osif/rtd/OsIf_rtd_port.d" -MT"stacks/tcpip/code/ports/osif/rtd/OsIf_rtd_port.o" -o "stacks/tcpip/code/ports/osif/rtd/OsIf_rtd_port.o" "../stacks/tcpip/code/ports/osif/rtd/OsIf_rtd_port.c"
Invoking: Standard S32DS C Compiler
Building file: ../stacks/tcpip/code/ports/OS/FreeRTOS/sys_arch.c
In file included from ../stacks/tcpip/lwip/src/include/lwip/sys.h:95,
from ../stacks/tcpip/lwip/src/include/lwip/priv/sockets_priv.h:46,
arm-none-eabi-gcc "@stacks/tcpip/code/ports/netif/gmacif/rtd/gmacif.args" -MMD -MP -MF"stacks/tcpip/code/ports/netif/gmacif/rtd/gmacif.d" -MT"stacks/tcpip/code/ports/netif/gmacif/rtd/gmacif.o" -o "stacks/tcpip/code/ports/netif/gmacif/rtd/gmacif.o" "../stacks/tcpip/code/ports/netif/gmacif/rtd/gmacif.c"
from ../stacks/tcpip/lwip/src/api/if_api.c:49:
../stacks/tcpip/lwip/src/api/if_api.c: In function 'lwip_if_indextoname':
../stacks/tcpip/code/ports/OS/FreeRTOS/arch/sys_arch.h:95:40: error: implicit declaration of function 'vTaskSetThreadLocalStoragePointer' [-Werror=implicit-function-declaration]
Invoking: Standard S32DS C Compiler
95 | #define set_errno(err) do { if (err) { vTaskSetThreadLocalStoragePointer(NULL, 0, (void *)(err)); } } while(0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../stacks/tcpip/code/ports/OS/FreeRTOS/arch/sys_arch.h:95:40: note: in definition of macro 'set_errno'
95 | #define set_errno(err) do { if (err) { vTaskSetThreadLocalStoragePointer(NULL, 0, (void *)(err)); } } while(0)
Building file: ../stacks/tcpip/code/apps/udpecho_raw/udpecho_raw.c
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arm-none-eabi-gcc "@stacks/tcpip/code/ports/OS/FreeRTOS/sys_arch.args" -MMD -MP -MF"stacks/tcpip/code/ports/OS/FreeRTOS/sys_arch.d" -MT"stacks/tcpip/code/ports/OS/FreeRTOS/sys_arch.o" -o "stacks/tcpip/code/ports/OS/FreeRTOS/sys_arch.o" "../stacks/tcpip/code/ports/OS/FreeRTOS/sys_arch.c"
In file included from ../stacks/tcpip/lwip/src/include/lwip/sys.h:95,
from ../stacks/tcpip/lwip/src/include/lwip/priv/sockets_priv.h:46,
from ../stacks/tcpip/lwip/src/api/sockets.c:45:
../stacks/tcpip/lwip/src/api/sockets.c: In function 'get_socket':
../stacks/tcpip/code/ports/OS/FreeRTOS/arch/sys_arch.h:95:40: error: implicit declaration of function 'vTaskSetThreadLocalStoragePointer' [-Werror=implicit-function-declaration]
95 | #define set_errno(err) do { if (err) { vTaskSetThreadLocalStoragePointer(NULL, 0, (void *)(err)); } } while(0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../stacks/tcpip/code/ports/OS/FreeRTOS/arch/sys_arch.h:95:40: note: in definition of macro 'set_errno'
95 | #define set_errno(err) do { if (err) { vTaskSetThreadLocalStoragePointer(NULL, 0, (void *)(err)); } } while(0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1.exe: some warnings being treated as errors
Invoking: Standard S32DS C Compiler
make: *** [stacks/tcpip/lwip/src/api/subdir.mk:44: stacks/tcpip/lwip/src/api/if_api.o] Error 1
arm-none-eabi-gcc "@stacks/tcpip/code/apps/udpecho_raw/udpecho_raw.args" -MMD -MP -MF"stacks/tcpip/code/apps/udpecho_raw/udpecho_raw.d" -MT"stacks/tcpip/code/apps/udpecho_raw/udpecho_raw.o" -o "stacks/tcpip/code/apps/udpecho_raw/udpecho_raw.o" "../stacks/tcpip/code/apps/udpecho_raw/udpecho_raw.c"
make: *** Waiting for unfinished jobs....
../stacks/tcpip/code/ports/osif/rtd/OsIf_rtd_port.c:132:2: error: #error "Unknown platform!"
132 | #error "Unknown platform!"
| ^~~~~
../stacks/tcpip/code/ports/osif/rtd/OsIf_rtd_port.c: In function 'OsIf_IsIsrContext':
../stacks/tcpip/code/ports/osif/rtd/OsIf_rtd_port.c:169:50: error: 'S32_SCB' undeclared (first use in this function)
169 | uint32 ipsr_code = (uint32)((uint32)((uint32)S32_SCB->ICSR & (uint32)S32_SCB_ICSR_VECTACTIVE_MASK) >>
| ^~~~~~~
../stacks/tcpip/code/ports/osif/rtd/OsIf_rtd_port.c:169:50: note: each undeclared identifier is reported only once for each function it appears in
../stacks/tcpip/code/ports/osif/rtd/OsIf_rtd_port.c:169:74: error: 'S32_SCB_ICSR_VECTACTIVE_MASK' undeclared (first use in this function)
169 | uint32 ipsr_code = (uint32)((uint32)((uint32)S32_SCB->ICSR & (uint32)S32_SCB_ICSR_VECTACTIVE_MASK) >>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../stacks/tcpip/code/ports/osif/rtd/OsIf_rtd_port.c:170:37: error: 'S32_SCB_ICSR_VECTACTIVE_SHIFT' undeclared (first use in this function)
Finished building: ../stacks/tcpip/lwip/src/api/tcpip.c
170 | (uint32)S32_SCB_ICSR_VECTACTIVE_SHIFT);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [stacks/tcpip/code/ports/osif/rtd/subdir.mk:20: stacks/tcpip/code/ports/osif/rtd/OsIf_rtd_port.o] Error 1
cc1.exe: some warnings being treated as errors
make: *** [stacks/tcpip/lwip/src/api/subdir.mk:42: stacks/tcpip/lwip/src/api/sockets.o] Error 1
Finished building: ../stacks/tcpip/code/ports/OS/FreeRTOS/sys_arch.c
Finished building: ../stacks/tcpip/code/apps/udpecho_raw/udpecho_raw.c
../stacks/tcpip/code/ports/netif/gmacif/rtd/gmacif.c: In function 'gmacif_low_level_output':
../stacks/tcpip/code/ports/netif/gmacif/rtd/gmacif.c:276:24: warning: unused variable 'bd' [-Wunused-variable]
276 | Gmac_Ip_BufferType bd;
| ^~
../stacks/tcpip/code/ports/netif/gmacif/rtd/gmacif.c:275:13: warning: unused variable 'pbuf_chain_type' [-Wunused-variable]
275 | uint8_t pbuf_chain_type = GMACIF_SINGLE_PBUF;
| ^~~~~~~~~~~~~~~
Finished building: ../stacks/tcpip/code/ports/netif/gmacif/rtd/gmacif.c
"make -j16 all" terminated with exit code 2. Build might be incomplete.
09:28:18 Build Failed. 10 errors, 2 warnings. (took 1s.374ms)
--