You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Board: DOIT ESP32 DEVKIT V1
Core Installation version: 1.0.4(platform.io) (also tested 1.0.2 arduino)
IDE name: Arduino IDE , Platform.io
Flash Frequency: 240Mhz
PSRAM enabled: Disabled
Upload Speed: 115200
Computer OS: Windows 10
Description:
I'm sending Art-Net UDP packets from MADRIX to ESP32 controller.
ESP32 there is Acess Point with static IP.
When I call Serial.begin() twice => on Udp.receivePacket() I get Exception (InstrFetchProhibited )
Also I noticed, that debug messages not appear when begin called twice.
Twice or more during tests i recived message <TIME_THERE> addba response cb: ap bss deleted
before exception
Please note, when using ESP32 in STA mode even if I called Serial.begin() twice, packets still received.
P.S. Exception appears when packet sent from my PC to controller IP
PC: 0x00000000
EXCVADDR: 0x00000000
Decoding stack results
0x400ec36e: handle_dhcp at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/lwip/apps/dhcpserver/dhcpserver.c line 10310x400f75dd: udp_input at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/lwip/lwip/src/core/udp.c line 4010x400faf71: ip4_input at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/lwip/lwip/src/core/ipv4/ip4.c line 7400x401001a6: ethernet_input at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/lwip/lwip/src/netif/ethernet.c line 1840x400ef15b: tcpip_thread at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/lwip/lwip/src/api/tcpip.c line 1350x4008877d: vPortTaskWrapper at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/freertos/port.c line 143
The text was updated successfully, but these errors were encountered:
isadora-6th
changed the title
Changing Serial baudrate causes InstrFetchProhibited when Udp.parsePacket() called
Serial.begin() twice (or more) causes InstrFetchProhibited when Udp.parsePacket() called
Jul 16, 2020
Serial.updateBaudRate(int); Works for me, but any way, calling Serial.end() causes exception.
Should I write to issue list in lwip section? I think problem is in Serial.end() code section, some internal resources (ap bss? Don't know what it is) corrupted.
During work with SD_MMC in one bit mode also noticed, not using Serial.end()(using updateBaudRate) fixed not opening files on SD.open(F_name); (I fixed it using while(time+100ms){ SD.open(File)} but delays and error messages still was sent.
Something deeper there.
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
Hardware:
Board: DOIT ESP32 DEVKIT V1
Core Installation version: 1.0.4(platform.io) (also tested 1.0.2 arduino)
IDE name: Arduino IDE , Platform.io
Flash Frequency: 240Mhz
PSRAM enabled: Disabled
Upload Speed: 115200
Computer OS: Windows 10
Description:
I'm sending Art-Net UDP packets from MADRIX to ESP32 controller.
ESP32 there is Acess Point with static IP.
When I call
Serial.begin()
twice => onUdp.receivePacket()
I get Exception(InstrFetchProhibited )
Also I noticed, that debug messages not appear when begin called twice.
Twice or more during tests i recived message
<TIME_THERE> addba response cb: ap bss deleted
before exception
Please note, when using ESP32 in STA mode even if I called
Serial.begin()
twice, packets still received.P.S. Exception appears when packet sent from my PC to controller IP
Debug Messages:
Expand Exception
Expand Decoded Exception
Serial port when begin() called once
Serial port when begin() called twice (not matter with Serial.end() or without)
Also I noticed, that debug messages not appear when begin called twice.
Even if it build flag in
platform.io
or menu option inArduino
The text was updated successfully, but these errors were encountered: