S32K388 TCP/IP stack 5.0.0 not working

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

S32K388 TCP/IP stack 5.0.0 not working

Jump to solution
503 Views
James_Zhang_SE
Contributor II

Hi @PavelL,

I was able to run the example TCP/IP stack example project previously with the following configuration:

• S32KDS version 3.6.5
• RTD (Real-Time Drivers) version 7.0.0
• TCP/IP Stack version 4.0.0

However, after upgrading to the following versions and did the same setup procedure, it is not working:

• S32KDS version 3.6.8
• RTD (Real-Time Drivers) version 7.0.1
• TCP/IP Stack version 5.0.0

I have attached my project. Thanks for the help again.

0 Kudos
Reply
1 Solution
426 Views
PavelL
NXP Employee
NXP Employee

Hello @James_Zhang_SE ,

I apologize for delayed response caused by my workload.

The root cause is EthIf_Cfg.c , as we've already discussed in this thread S32K388 tcpip stack 4.0.0 missing lwip folder while compiling

The example is working now on my S32K388EVB-Q289.

Anyway, I did lots of changes in your project but the most critical is the EthIf_Cfg file. All modified files can be found in the attached zip. You may check the changes by yourself.

Please notice that provided code is without any warranty.

Once you replace files by the patch, please do not forget to do Update Code.

Best regards,

Pavel

View solution in original post

0 Kudos
Reply
4 Replies
464 Views
PavelL
NXP Employee
NXP Employee

Hello @James_Zhang_SE ,

I need time for investigation. I'll do my best to reply within this week.

Thank you for your understanding.

Best regards,

Pavel

0 Kudos
Reply
427 Views
PavelL
NXP Employee
NXP Employee

Hello @James_Zhang_SE ,

I apologize for delayed response caused by my workload.

The root cause is EthIf_Cfg.c , as we've already discussed in this thread S32K388 tcpip stack 4.0.0 missing lwip folder while compiling

The example is working now on my S32K388EVB-Q289.

Anyway, I did lots of changes in your project but the most critical is the EthIf_Cfg file. All modified files can be found in the attached zip. You may check the changes by yourself.

Please notice that provided code is without any warranty.

Once you replace files by the patch, please do not forget to do Update Code.

Best regards,

Pavel

0 Kudos
Reply
375 Views
James_Zhang_SE
Contributor II

Hi Pavel,

Thank you so much for your help! After applying the same steps as before, I was able to ping and test the TCP loopback. I have a few quick questions:

  1. For the Ethif Config fix and RTD workarounds, will they be added in future releases of the driver and example project?
  2. Since I'm not too familiar with this stack. When something is not working, do you have a suggested systematic way to debug?
0 Kudos
Reply
360 Views
PavelL
NXP Employee
NXP Employee

Hello @James_Zhang_SE ,

Thank you for sharing your current status.
 
If my previous post helped to solve the issue, please mark it as a solution, as this may help other users facing a similar problem.
 
Regarding point 1:
 
I have reported the EthIf_Cfg issue to the responsible software team. The release date of the fix is not known yet. There is still an internal discussion about where the RTD workaround should be implemented, whether in the MAC driver or in the clock configuration area. For now, we need to accept the current situation and apply the workaround manually.
 
Regarding point 2:
 
My usual debug flow is to check the pin configuration, clock configuration, interrupt configuration, FIFO sizes and the required RTD workaround code. The gPTP examples are also a very good reference, because they provide functional Ethernet-related configurations that can be used for comparison.

 

Best regards,

Pavel

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2399321%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K388%20TCP%2FIP%20stack%205.0.0%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2399321%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F233505%22%20target%3D%22_blank%22%3E%40PavelL%3C%2FA%3E%2C%3C%2FP%3E%3CP%3EI%20was%20able%20to%20run%20the%20example%20TCP%2FIP%20stack%20example%20project%20previously%20with%20the%20following%20configuration%3A%3C%2FP%3E%3CP%3E%E2%80%A2%20S32KDS%20version%203.6.5%3CBR%20%2F%3E%E2%80%A2%20RTD%20(Real-Time%20Drivers)%20version%207.0.0%3CBR%20%2F%3E%E2%80%A2%20TCP%2FIP%20Stack%20version%204.0.0%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EHowever%2C%20after%20upgrading%20to%20the%20following%20versions%20and%20did%20the%20same%20setup%20procedure%2C%20it%20is%20not%20working%3A%3C%2FP%3E%3CP%3E%E2%80%A2%20S32KDS%20version%203.6.8%3CBR%20%2F%3E%E2%80%A2%20RTD%20(Real-Time%20Drivers)%20version%207.0.1%3CBR%20%2F%3E%E2%80%A2%20TCP%2FIP%20Stack%20version%205.0.0%3C%2FP%3E%3CP%3EI%20have%20attached%20my%20project.%20Thanks%20for%20the%20help%20again.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2400010%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K388%20TCP%2FIP%20stack%205.0.0%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2400010%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%20need%20time%20for%20investigation.%20I'll%20do%20my%20best%20to%20reply%20within%20this%20week.%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20your%20understanding.%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-2400869%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K388%20TCP%2FIP%20stack%205.0.0%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2400869%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%20apologize%20for%20delayed%20response%20caused%20by%20my%20workload.%3C%2FP%3E%0A%3CP%3EThe%20root%20cause%20is%20EthIf_Cfg.c%20%2C%20as%20we've%20already%20discussed%20in%20this%20thread%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FS32K388-tcpip-stack-4-0-0-missing-lwip-folder-while-compiling%2Fm-p%2F2351627%22%20target%3D%22_blank%22%3ES32K388%20tcpip%20stack%204.0.0%20missing%20lwip%20folder%20while%20compiling%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EThe%20example%20is%20working%20now%20on%20my%20S32K388EVB-Q289.%3C%2FP%3E%0A%3CP%3EAnyway%2C%20I%20did%20lots%20of%20changes%20in%20your%20project%20but%20the%20most%20critical%20is%20the%20EthIf_Cfg%20file.%20All%20modified%20files%20can%20be%20found%20in%20the%20attached%20zip.%20You%20may%20check%20the%20changes%20by%20yourself.%3C%2FP%3E%0A%3CP%3EPlease%20notice%20that%20provided%20code%20is%20without%20any%20warranty.%3C%2FP%3E%0A%3CP%3EOnce%20you%20replace%20files%20by%20the%20patch%2C%20please%20do%20not%20forget%20to%20do%20Update%20Code.%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-2401574%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K388%20TCP%2FIP%20stack%205.0.0%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2401574%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Pavel%2C%3C%2FP%3E%3CP%3EThank%20you%20so%20much%20for%20your%20help!%20After%20applying%20the%20same%20steps%20as%20before%2C%20I%20was%20able%20to%20ping%20and%20test%20the%20TCP%20loopback.%20I%20have%20a%20few%20quick%20questions%3A%3C%2FP%3E%3COL%3E%3CLI%3EFor%20the%20Ethif%20Config%20fix%20and%20RTD%20workarounds%2C%20will%20they%20be%20added%20in%20future%20releases%20of%20the%20driver%20and%20example%20project%3F%3C%2FLI%3E%3CLI%3ESince%20I'm%20not%20too%20familiar%20with%20this%20stack.%20When%20something%20is%20not%20working%2C%20do%20you%20have%20a%20suggested%20systematic%20way%20to%20debug%3F%3C%2FLI%3E%3C%2FOL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2401854%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K388%20TCP%2FIP%20stack%205.0.0%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2401854%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%3CDIV%3E%0A%3CDIV%20class%3D%22_644f51fc6c5e0799%20_42fa7d3322eec097%22%20data-line-index%3D%220%22%3EThank%20you%20for%20sharing%20your%20current%20status.%3C%2FDIV%3E%0A%3CDIV%20class%3D%22_644f51fc6c5e0799%20_42fa7d3322eec097%22%20data-line-index%3D%221%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20class%3D%22_644f51fc6c5e0799%20_42fa7d3322eec097%22%20data-line-index%3D%222%22%3EIf%20my%20previous%20post%20helped%20to%20solve%20the%20issue%2C%20please%20mark%20it%20as%20a%20solution%2C%20as%20this%20may%20help%20other%20users%20facing%20a%20similar%20problem.%3C%2FDIV%3E%0A%3CDIV%20class%3D%22_644f51fc6c5e0799%20_42fa7d3322eec097%22%20data-line-index%3D%223%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20class%3D%22_644f51fc6c5e0799%20_42fa7d3322eec097%22%20data-line-index%3D%224%22%3ERegarding%20point%201%3A%3C%2FDIV%3E%0A%3CDIV%20class%3D%22cc5c5540b5f0bfc8%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20class%3D%22_644f51fc6c5e0799%20_42fa7d3322eec097%22%20data-line-index%3D%225%22%3EI%20have%20reported%20the%20EthIf_Cfg%20issue%20to%20the%20responsible%20software%20team.%20The%20release%20date%20of%20the%20fix%20is%20not%20known%20yet.%20There%20is%20still%20an%20internal%20discussion%20about%20where%20the%20RTD%20workaround%20should%20be%20implemented%2C%20whether%20in%20the%20MAC%20driver%20or%20in%20the%20clock%20configuration%20area.%20For%20now%2C%20we%20need%20to%20accept%20the%20current%20situation%20and%20apply%20the%20workaround%20manually.%3C%2FDIV%3E%0A%3CDIV%20class%3D%22cc5c5540b5f0bfc8%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20class%3D%22_644f51fc6c5e0799%20_42fa7d3322eec097%22%20data-line-index%3D%227%22%3ERegarding%20point%202%3A%3C%2FDIV%3E%0A%3CDIV%20class%3D%22cc5c5540b5f0bfc8%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20class%3D%22_644f51fc6c5e0799%20_42fa7d3322eec097%22%20data-line-index%3D%228%22%3EMy%20usual%20debug%20flow%20is%20to%20check%20the%20pin%20configuration%2C%20clock%20configuration%2C%20interrupt%20configuration%2C%20FIFO%20sizes%20and%20the%20required%20RTD%20workaround%20code.%20The%20gPTP%20examples%20are%20also%20a%20very%20good%20reference%2C%20because%20they%20provide%20functional%20Ethernet-related%20configurations%20that%20can%20be%20used%20for%20comparison.%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPavel%3C%2FP%3E%3C%2FLINGO-BODY%3E