2414457_en-US

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

2414457_en-US

2414457_en-US

Regarding the issue of S32K3XX being unable to automatically create a local IP address.

屏幕截图 2026-09-18 100140.png屏幕截图 2026-09-18 100140.pngScreenshot 2026-09-18 100140.png 屏幕截图 2026-09-18 100315.png屏幕截图 2026-09-18 100315.pngScreenshot 2026-09-18 100315.png 屏幕截图 2026-09-18 100756.png屏幕截图 2026-09-18 100756.pngScreenshot 2026-09-18 100756.png

Hello:

I've created my own local IP address in S32DS and disabled the local IP address in the LWIP protocol stack, but I get an error during single-step debugging, failing to establish a connection, as shown in the bottom right image above. What could be the problem? Is some setting missing? Is it that creating a local IP address is not allowed and must be configured in the protocol stack?

Thank you again for taking the time to reply despite your busy schedule!

Re: 关于S32K3XX无法自己建立本地IP地址的问题

Hello @sunshine88   ,

The IPv4 address itself is not the cause of this error. lwIP allows a static IPv4 address to be provided directly through netif_add().

According to the debugger screenshot, netif_add() returns NULL because the network-interface initialization callback, ETHIF_INIT, does not return ERR_OK. Therefore, the failure occurs during initialization of the Ethernet interface or its lower-level driver, before the interface can be added to lwIP.

In your TCP/IP Stack configuration screenshot, the Enable iface option is not selected. Please enable the network interface and configure the required static IPv4 address, subnet mask, and gateway there. Then regenerate the configuration and use the initialization sequence from the corresponding S32K3 lwIP example.

If you still want to assign the address in the application, please first verify whether netif_add()succeeds.

Please note that this only makes the initialization failure easier to detect. It does not correct the underlying GMAC/Ethernet configuration.

I recommend first building and running the original lwIP example for your exact S32K3 device and software-package versions without modifying its network initialization. Once the original example works, change only the static IPv4 address and confirm the result.

Please also provide the following information if the initialization still fails:

  1. Exact S32K3 device and evaluation board
  2. S32 Design Studio version
  3. RTD and TCP/IP Stack package versions
  4. The definition of ETHIF_INIT and the error returned by that function
  5. Whether the unmodified lwIP example works on the same hardware

It appears that the same question was submitted in three separate Community posts. To keep the troubleshooting information in one place, please continue the discussion in only one of them.

Best regads,

Pavel

标记 (1)
无评分
版本历史
最后更新:
星期六
更新人: