Open i-am-shodan opened 3 months ago
Serial output
13:30:55.055 -> Got mac address
13:30:55.055 -> esp_netif_init() success
13:30:55.055 -> Created esp_netif_inherent_config_t
13:30:55.055 -> Created esp_netif_driver_ifconfig_t
13:30:55.055 -> Created cfg, about to create new netif
13:30:55.055 -> s_netif was not NULL
13:30:55.378 -> Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
I've also tried calling the following to ensure the Ethernet stack comes up. Still crashes
ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE);
What I can suggest is to switch to the current development version (install from Git master) and then after ETH.begin()
you can call esp_netif_action_start(ETH.netif(), 0, 0, 0);
. Other than that I have no idea why you are getting the exception. Must be something specific to esp_netif_action_start
I can confirm that it works on the latest v3. Problem is I have a lot of dependencies that are incompatible so 2.x is what I need to target.
Have you tried v2.0.14? If you are lucky it may works. With which IDF version do you have compiled your example?
I have tried, it doesn't
is there any example of how to use USB NCM in arduino environment? I want to establish tcp/ip connection over usb but the examples out there are mostly written for esp-idf.
None that I've found. You'll struggle with anything that is lwip based as Arduino ESP32 already ships that stack.
I've had some limited success with using picotcp but really the above code should work.
There are several reasons for Arduino 3.0.0 One of them is/was to optimize the network stack. I see only the way adopt your code to Arduino 3.0.0 or find a workaround for core 2.0.14. Wouldn't hold my breath for waiting fixing in core 2.0.x
There are several reasons for Arduino 3.0.0 One of them is/was to optimize the network stack. I see only the way adopt your code to Arduino 3.0.0 or find a workaround for core 2.0.14. Wouldn't hold my breath for waiting fixing in core 2.0.x
So it's working in 3.0.0? any example?
EDIT:
Currently i'm trying to use ESP-IDF, but installing the toolchain is a headache. Can't make export.bat
or export.ps1
work.
@wachidsusilo The example sketch above from the OP does work with Arduino 3.0.0
Tested, only the line tcpip_adapter_set_default_eth_handlers();
needs to be removed.
Board
LilyGo T-Dongle-S3
Device Description
ESP32-S3
Hardware Configuration
No
Version
v2.0.11
IDE Name
Arduino IDE & Platform IO
Operating System
all
Flash frequency
80Mhz
PSRAM enabled
no
Upload speed
921600
Description
I'm trying to use my board as a Ethernet NCM module. In ESP-IDF I can compile the following sketch and use this to create an ethernet interface I can send and receive packets with. I've tested the code and it works well.
I want to use the same functionality in an Arduino environment however I get a crash.
The following is a small test case that does nothing with USB, just creates the interface. The crash occurs when esp_netif_action_start is called.
Sketch
Debug Message
Other Steps to Reproduce
Compile sketch, reset
I have checked existing issues, online documentation and the Troubleshooting Guide