S32k344 LWIP example Ping not working

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

S32k344 LWIP example Ping not working

711 Views
vaddi_vishal
Contributor I

I am using the lwIP example Example_S32K344_EMAC_lwIP_FreeRTOS_miniEVB_v1_0_S32DS36_RTD600.zip to test Ethernet functionality on the S32K344.

I downloaded this example from a post in the NXP Community and am using it without making any modifications to the code.

I have a few questions:

  1. Is there a way to create an lwIP example project directly in S32 Design Studio (S32DS), similar to how we create projects for UART, I2C, SPI, etc.?

  2. I am currently using a virtual platform for the S32K344 board to flash and run this lwIP example. However, when I connect using GDB, the program always enters the HardFault handler.

Could you please help me understand:

  • What might be causing the HardFault?

  • Whether lwIP examples can run on a virtual platform, or if real hardware is required?

If I am doing something incorrectly, please let me know.

Thank you.

Tags (1)
0 Kudos
Reply
4 Replies

697 Views
PavelL
NXP Employee
NXP Employee

Hello @vaddi_vishal ,

The lwIP Ethernet demo requires a real EMAC + PHY + link partner (and board-level wiring such as PHY reset/straps and reference clocks). Many “virtual platforms” model only a subset of peripherals and external hardware, and Ethernet support can be partial/incomplete depending on the platform. So, you need to configure your virtual platform to match the S32K344 miniEVB as closely as possible.

ad 1. Yes, you can create a project directly from lwIP example.

ad 2. You need to pinpoint which line of code is triggering the HardFault.

Best regards,

Pavel

0 Kudos
Reply

694 Views
vaddi_vishal
Contributor I
Thanks for the reply. How can I create the lwip example directly from s32ds? I am using s32ds 3.6.6 and RTD 6.0.0
0 Kudos
Reply

691 Views
PavelL
NXP Employee
NXP Employee

Hello @vaddi_vishal ,

From S32DS main menu - File/New/S32DS Project from Example

PavelL_0-1777442841984.png

lwIP examples are included in S32K3 TCPIP package.

Version S32K3 TCPIP 3.0.0 (SW32K3_TCPIP_STACK_3.0.0_D2507_DesignStudio_updatesite.zip) is dedicated for S32K3 RTD 6.0.0. SW32K3_FreeRTOS_11.1.0_6.0.0_CD1_D2506_DesignStudio_updatesite.zip should be install prior TCPIP stack. Please follow installation instruction in the respective Release Note for each package.

Best regards,

Pavel

0 Kudos
Reply

679 Views
vaddi_vishal
Contributor I
Thanks.
0 Kudos
Reply