Hi,
I added the example project of lwip_baremetal_s32k358 from S32K3_TCPIP_STACK_1_0_4 package. S32K3
I also installed the following packages as mentioned in the release pdf:
- S32K3 development package;
- SW32K3 Real Time Drivers 4.4_R21-11 Version 3.0.0 package;
- SW32K3 FreeRTOS 10.5.1 version 3.1.0 package.
Now, upon opening the .mex file in the "Pins" view, the following error is present:


Upon clicking the "Add missing drivers (if any) to the project, for all tools", the following popup comes:

On clicking "Yes" the errors disappear.
Then, I click on the "Update Code" option.

However, there are errors which are still present in the "Peripheral" view.

Clicking on "Build 'Debug FLASH'" gives the following errors:
12:02:25 **** Build of configuration Debug_FLASH for project lwip_baremetal_s32k358 ****
make -j22 all
Building file: ../src/device.c
Building file: ../src/main.c
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@src/device.args" -MMD -MP -MF"src/device.d" -MT"src/device.o" -o "src/device.o" "../src/device.c"
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@src/device.args" -MMD -MP -MF"src/main.d" -MT"src/main.o" -o "src/main.o" "../src/main.c"
Building file: ../src/test.c
../src/device.c: In function 'device_init':
../src/device.c:205:48: error: 'DCM_GPR_DCMRWF1_MAC_CONF_SEL_MASK' undeclared (first use in this function); did you mean 'DCM_GPR_DCMRWF1_EMAC_CONF_SEL_MASK'?
205 | IP_DCM_GPR->DCMRWF1 = (IP_DCM_GPR->DCMRWF1 & ~DCM_GPR_DCMRWF1_MAC_CONF_SEL_MASK) | DCM_GPR_DCMRWF1_MAC_CONF_SEL(2U);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| DCM_GPR_DCMRWF1_EMAC_CONF_SEL_MASK
../src/device.c:205:48: note: each undeclared identifier is reported only once for each function it appears in
../src/device.c:205:85: error: implicit declaration of function 'DCM_GPR_DCMRWF1_MAC_CONF_SEL'; did you mean 'DCM_GPR_DCMRWF1_EMAC_CONF_SEL'? [-Werror=implicit-function-declaration]
205 | IP_DCM_GPR->DCMRWF1 = (IP_DCM_GPR->DCMRWF1 & ~DCM_GPR_DCMRWF1_MAC_CONF_SEL_MASK) | DCM_GPR_DCMRWF1_MAC_CONF_SEL(2U);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| DCM_GPR_DCMRWF1_EMAC_CONF_SEL
Building file: ../generate/src/Clock_Ip_Cfg.c
../src/device.c:208:21: error: 'NUM_OF_CONFIGURED_PINS_PortContainer_0_VS_0' undeclared (first use in this function)
208 | Siul2_Port_Ip_Init(NUM_OF_CONFIGURED_PINS_PortContainer_0_VS_0, g_pin_mux_InitConfigArr_PortContainer_0_VS_0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/device.c:208:66: error: 'g_pin_mux_InitConfigArr_PortContainer_0_VS_0' undeclared (first use in this function)
208 | Siul2_Port_Ip_Init(NUM_OF_CONFIGURED_PINS_PortContainer_0_VS_0, g_pin_mux_InitConfigArr_PortContainer_0_VS_0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1.exe: some warnings being treated as errors
Invoking: Standard S32DS C Compiler
make: *** [src/subdir.mk:25: src/device.o] Error 1
make: *** Waiting for unfinished jobs....
Building file: ../generate/src/Gmac_Ip_Cfg.c
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Clock_Ip_Cfg.d" -MT"generate/src/Clock_Ip_Cfg.o" -o "generate/src/Clock_Ip_Cfg.o" "../generate/src/Clock_Ip_Cfg.c"
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Gmac_Ip_Cfg.d" -MT"generate/src/Gmac_Ip_Cfg.o" -o "generate/src/Gmac_Ip_Cfg.o" "../generate/src/Gmac_Ip_Cfg.c"
Finished building: ../src/main.c
arm-none-eabi-gcc "@src/device.args" -MMD -MP -MF"src/test.d" -MT"src/test.o" -o "src/test.o" "../src/test.c"
Finished building: ../generate/src/Clock_Ip_Cfg.c
../src/test.c:128:10: fatal error: lwip/opt.h: No such file or directory
128 | #include "lwip/opt.h"
| ^~~~~~~~~~~~
compilation terminated.
make: *** [src/subdir.mk:24: src/test.o] Error 1
Finished building: ../generate/src/Gmac_Ip_Cfg.c
"make -j22 all" terminated with exit code 2. Build might be incomplete.
12:02:40 Build Failed. 8 errors, 0 warnings. (took 15s.577ms)
I tried looking up in the forum for similar issues, but wasn't able to find any.
It would be extremely helpful if someone could help me resolve this issue.
@nxp @support
Thanks a lot in advance!