S32K388 tcpip stack 4.0.0 missing lwip folder while compiling

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K388 tcpip stack 4.0.0 missing lwip folder while compiling

716 Views
James_Zhang_SE
Contributor I

I have recently migrated to a newer version of S32DS and packages. However, when I try to build the TCP/IP stack example, I'm encountering the following error:

James_Zhang_SE_0-1771289876721.png

Old configuration:
S32DS 3.6.3
RTD 6.0.0
TCP/IP stack 3.0.0

New configuration:
S32DS 3.6.5
RTD 7.0.0
TCP/IP stack 4.0.0

What I did is creating a project from TCP/IP stack 4.0.0 example and did the same modification that I did to 3.0.0 example. When I compile, it is giving the above error. I have attached my project.

 

0 Kudos
Reply
6 Replies

456 Views
James_Zhang_SE
Contributor I

Hi Pavel,

Any update on this?

0 Kudos
Reply

435 Views
PavelL
NXP Employee
NXP Employee

Hello @James_Zhang_SE ,

The fix has not been released yet.

You can fix that easily by yourself: please find file S32DS\software\PlatformSDK_S32K3\tcpip_itm_manifest.xml and add S32K388 to the lists of devices - there are three lists. And restart S32 Design Studio.

Best regards,

Pavel

0 Kudos
Reply

323 Views
James_Zhang_SE
Contributor I

Hi Pavel,

I have added S32K388 to the lists of devices and the compilation is successful now. However, after doing the same steps as 3.0.0 example to the 4.0.0 example, I'm hitting HardFault_Handler() when running mainLoopTask(). Can you kindly take a look at my project and help me understand why this is happening?

0 Kudos
Reply

290 Views
PavelL
NXP Employee
NXP Employee

Hello @James_Zhang_SE ,

I checked your project and I haven't found anything suspicious which could cause the hardfault.

Please try to locate the row which caused the hard fault.

I'm not in the office this week, I could check it in the beginning of the next week.

Best regards,

Pavel

0 Kudos
Reply

175 Views
PavelL
NXP Employee
NXP Employee

Hello @James_Zhang_SE ,

The hard fault has been caused by EthIf/config/EthIf_Cfg.c - please find the fixed version below.

Also, do not forget to add RTD workaround to src/device.c - please refer to Example S32K388 GMAC0 lwIP FreeRTOS S32DS 3.6.1 RTD600 - NXP Community

Best regards,

Pavel

0 Kudos
Reply

684 Views
PavelL
NXP Employee
NXP Employee

Hello @James_Zhang_SE ,

I can reproduce the issue with S32DS 3.6.6.

It appears specific to S32K388 with the TCP/IP 4.0.0. Other derivatives (e.g. S32K344) build and run as expected with the same stack version. I've reported the issue. to our software team.

For S32K388, please use S32K3 RTD 6.0.0 and TCP/IP Stack 3.0.0 in the interim.

Best regards,

Pavel

%3CLINGO-SUB%20id%3D%22lingo-sub-2318823%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K388%20tcpip%20stack%204.0.0%20missing%20lwip%20folder%20while%20compiling%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2318823%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20recently%20migrated%20to%20a%20newer%20version%20of%20S32DS%20and%20packages.%20However%2C%20when%20I%20try%20to%20build%20the%20TCP%2FIP%20stack%20example%2C%20I'm%20encountering%20the%20following%20error%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22James_Zhang_SE_0-1771289876721.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22James_Zhang_SE_0-1771289876721.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22James_Zhang_SE_0-1771289876721.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22James_Zhang_SE_0-1771289876721.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22James_Zhang_SE_0-1771289876721.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22James_Zhang_SE_0-1771289876721.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22James_Zhang_SE_0-1771289876721.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F376990i26543FE84426EE9F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22James_Zhang_SE_0-1771289876721.png%22%20alt%3D%22James_Zhang_SE_0-1771289876721.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EOld%20configuration%3A%3CBR%20%2F%3ES32DS%203.6.3%3CBR%20%2F%3ERTD%206.0.0%3CBR%20%2F%3ETCP%2FIP%20stack%203.0.0%3C%2FP%3E%3CP%3ENew%20configuration%3A%3CBR%20%2F%3ES32DS%203.6.5%3CBR%20%2F%3ERTD%207.0.0%3CBR%20%2F%3ETCP%2FIP%20stack%204.0.0%3C%2FP%3E%3CP%3EWhat%20I%20did%20is%20creating%20a%20project%20from%20TCP%2FIP%20stack%204.0.0%20example%20and%20did%20the%20same%20modification%20that%20I%20did%20to%203.0.0%20example.%20When%20I%20compile%2C%20it%20is%20giving%20the%20above%20error.%20I%20have%20attached%20my%20project.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2319059%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K388%20tcpip%20stack%204.0.0%20missing%20lwip%20folder%20while%20compiling%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2319059%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F256069%22%20target%3D%22_blank%22%3E%40James_Zhang_SE%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EI%20can%20reproduce%20the%20issue%20with%20S32DS%203.6.6.%3C%2FP%3E%0A%3CP%3EIt%20appears%20specific%20to%20S32K388%20with%20the%20TCP%2FIP%204.0.0.%20Other%20derivatives%20(e.g.%20S32K344)%20build%20and%20run%20as%20expected%20with%20the%20same%20stack%20version.%20I've%20reported%20the%20issue.%20to%20our%20software%20team.%3C%2FP%3E%0A%3CP%3EFor%20S32K388%2C%20please%20use%20S32K3%20RTD%206.0.0%20and%20TCP%2FIP%20Stack%203.0.0%20in%20the%20interim.%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPavel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2345751%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K388%20tcpip%20stack%204.0.0%20missing%20lwip%20folder%20while%20compiling%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2345751%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Pavel%2C%3C%2FP%3E%3CP%3EAny%20update%20on%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2346006%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K388%20tcpip%20stack%204.0.0%20missing%20lwip%20folder%20while%20compiling%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2346006%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F256069%22%20target%3D%22_blank%22%3E%40James_Zhang_SE%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThe%20fix%20has%20not%20been%20released%20yet.%3C%2FP%3E%0A%3CP%3EYou%20can%20fix%20that%20easily%20by%20yourself%3A%20please%20find%20file%26nbsp%3BS32DS%5Csoftware%5CPlatformSDK_S32K3%5Ctcpip_itm_manifest.xml%20and%20add%20S32K388%20to%20the%20lists%20of%20devices%20-%20there%20are%20three%20lists.%20And%20restart%20S32%20Design%20Studio.%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPavel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2350993%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K388%20tcpip%20stack%204.0.0%20missing%20lwip%20folder%20while%20compiling%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2350993%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Pavel%2C%3C%2FP%3E%3CP%3EI%20have%26nbsp%3B%3CSPAN%3Eadded%20S32K388%20to%20the%20lists%20of%20devices%20and%20the%20compilation%20is%20successful%20now.%20However%2C%20after%20doing%20the%20same%20steps%20as%203.0.0%20example%20to%20the%204.0.0%20example%2C%20I'm%20hitting%26nbsp%3BHardFault_Handler()%20when%20running%20mainLoopTask().%20Can%20you%20kindly%20take%20a%20look%20at%20my%20project%20and%20help%20me%20understand%20why%20this%20is%20happening%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2351627%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K388%20tcpip%20stack%204.0.0%20missing%20lwip%20folder%20while%20compiling%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2351627%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F256069%22%20target%3D%22_blank%22%3E%40James_Zhang_SE%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EI%20checked%20your%20project%20and%20I%20haven't%20found%20anything%20suspicious%20which%20could%20cause%20the%20hardfault.%3C%2FP%3E%0A%3CP%3EPlease%20try%20to%20locate%20the%20row%20which%20caused%20the%20hard%20fault.%3C%2FP%3E%0A%3CP%3EI'm%20not%20in%20the%20office%20this%20week%2C%20I%20could%20check%20it%20in%20the%20beginning%20of%20the%20next%20week.%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPavel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2355217%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K388%20tcpip%20stack%204.0.0%20missing%20lwip%20folder%20while%20compiling%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2355217%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F256069%22%20target%3D%22_blank%22%3E%40James_Zhang_SE%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThe%20hard%20fault%20has%20been%20caused%20by%26nbsp%3BEthIf%2Fconfig%2FEthIf_Cfg.c%20-%20please%20find%20the%20fixed%20version%20below.%3C%2FP%3E%0A%3CP%3EAlso%2C%20do%20not%20forget%20to%20add%20RTD%20workaround%20to%20src%2Fdevice.c%20-%20please%20refer%20to%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FExample-S32K388-GMAC0-lwIP-FreeRTOS-S32DS-3-6-1-RTD600%2Fta-p%2F2355215%22%20target%3D%22_blank%22%3EExample%20S32K388%20GMAC0%20lwIP%20FreeRTOS%20S32DS%203.6.1%20RTD600%20-%20NXP%20Community%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPavel%3C%2FP%3E%3C%2FLINGO-BODY%3E