Wi-Fi example fails if Ethernet is present in device tree #58020
-
Using the Wi-Fi example on NPX RT1040 through UART to an ESP32-C3 running ESP-AT, This example works fine, provided that the device tree does not contain Ethernet (&enet). Wifi Scan Fails. ` |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 14 replies
-
Solution, If both are present on the board, change ethernet priority to be after Wi-Fi. If net default is set to ethernet, change it to the Wi-Fi module as follows |
Beta Was this translation helpful? Give feedback.
-
This is a known limitation of the Wi-Fi shell, which uses |
Beta Was this translation helpful? Give feedback.
-
@rlubos @carlescufi "wifi scan" works fine, however "wifi connect ssid password" causes the device to restart. I put a switch on the power to the ethernet so that I am able to kill power to it and "wifi connect" works with ethernet power killed during that command My question is, even though net_if_get_default is set to the ESP32C3, Ethernet functions must still be being used in the Wifi functions, I am just unsure where. Can this thread be re-opened to discuss this or shall I make a new one? |
Beta Was this translation helpful? Give feedback.
-
@krish2718 Did you experience any problems with @ShahinHaque97-Corintech It's really hard to find the answer out of thin air, especially that you run a custom hardware configuration. Would be good if you could debug the issue a bit and provide more specific information. I'll convert the issue into a discussion for now. |
Beta Was this translation helpful? Give feedback.
-
The Ethernet is built into the MIMRT1040 through an IC KSZ8081RNA to the Ethernet Cable. Here is the link to the development board - https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/i-mx-rt1040-evaluation-kit:MIMXRT1040-EVK The ethernet driver used is https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/ethernet/eth_mcux.c |
Beta Was this translation helpful? Give feedback.
-
Although Ethernet is not being used in the Wi-Fi example "eth_mcux.c" is still active as the device tree contains "&enet" and board Kconfig contains "ETH_MCUX_PHY_RESET" When the Wifi is used, the PHY is set to reset allowing the ethernet to be inactive. After probing the rest connection on the board, I have found that is not is being reset a resistor issue. I have both Wi-Fi and Ethernet working on this board (with changing set default) This discussion can be closed. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi All, At the moment you need to force the wifi iface to be default or a swath of library code simply ceases to work. I just ran into the wifi BLE provisioning system which also uses |
Beta Was this translation helpful? Give feedback.
-
I was thinking more of below flags, so, either native or offloaded we can always identify use
|
Beta Was this translation helpful? Give feedback.
Although Ethernet is not being used in the Wi-Fi example "eth_mcux.c" is still active as the device tree contains "&enet" and board Kconfig contains "ETH_MCUX_PHY_RESET" When the Wifi is used, the PHY is set to reset allowing the ethernet to be inactive. After probing the rest connection on the board, I have found that is not is being reset a resistor issue.
I have both Wi-Fi and Ethernet working on this board (with changing set default)
This discussion can be closed.
Thanks.