Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setcountry crashing esp32* arduino 2.0 #1309

Open
tablatronix opened this issue Nov 9, 2021 · 4 comments
Open

setcountry crashing esp32* arduino 2.0 #1309

tablatronix opened this issue Nov 9, 2021 · 4 comments
Labels
bug Validated BUG DEV Help Wanted Developer Needs Help ESP32 Esp 32 related issue

Comments

@tablatronix
Copy link
Collaborator

No description provided.

@tablatronix tablatronix added bug Validated BUG ESP32 Esp 32 related issue labels Nov 9, 2021
@tablatronix tablatronix changed the title setcountry crashing esp32 S2 setcountry crashing esp32* arduino 2.0 Jan 29, 2022
@tablatronix
Copy link
Collaborator Author

Need more testing, no idea, it doesn't crash when I call outside of wm..

@uzi18
Copy link

uzi18 commented Feb 17, 2022

@tablatronix same here at platformio

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DOUT, clock div:1
load:0x3fff0030,len:184
load:0x40078000,len:12380
ho 0 tail 12 room 4
load:0x40080400,len:2912
entry 0x400805c4
E (322) psram: PSRAM ID read error: 0xffffffff
E (322) spiram: SPI RAM enabled but initialization failed. Bailing out.

Starting
*wm:[1] Free heap:        221356
*wm:[1] ESP SDK version:  v4.4-dev-2990-g583026f04
TEST_CP ENABLED
*wm:[2] Starting Config Portal
*wm:[2] Disabling STA
*wm:[2] Enabling AP
*wm:[1] StartAP with SSID:  ESP32 WiFi
*wm:[2] AP has anonymous access!
*wm:[1] AP IP address: 192.168.4.1
*wm:[2] setting softAP Hostname: ESP32 WiFi
*wm:[2] WiFiSetCountry to US
Guru Meditation Error: Core  0 panic'ed (LoadStoreError). Exception was unhandled.

Core  0 register dump:
PC      : 0x4014039d  PS      : 0x00060b30  A0      : 0x8013df5f  A1      : 0x3ffafca0
A2      : 0x00000000  A3      : 0x3f402414  A4      : 0x3ffc5c68  A5      : 0x3ffbf748  
A6      : 0x00000000  A7      : 0x0000cdcd  A8      : 0x8014039b  A9      : 0x3ffafc80
A10     : 0x00000014  A11     : 0x3f402414  A12     : 0x00000003  A13     : 0x3f41de69  
A14     : 0x00000001  A15     : 0x0000000b  SAR     : 0x0000001c  EXCCAUSE: 0x00000003
EXCVADDR: 0x3f402419  LBEG    : 0x40144f44  LEND    : 0x40144f5c  LCOUNT  : 0x00000000  


Backtrace:0x4014039a:0x3ffafca00x4013df5c:0x3ffafcd0 0x40172b5d:0x3ffafcf0
 #0  0x4014039a:0x3ffafca00 in wifi_set_country at ??:?

@CircuitSetup
Copy link

I'm getting the same behavior, but I unfortunately cannot use the exception decoder because that does not work with Arduino 2.0.x either. I've tried in PIO and Arduino IDE.

@tablatronix
Copy link
Collaborator Author

tablatronix commented May 27, 2022

Yeah I have not been able to debug this, I do know that it only does it if setting it through wm, so I suspect a memory safety issue with the structs I use. Or maybe it can only be called if wifi is or is not init.. no idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Validated BUG DEV Help Wanted Developer Needs Help ESP32 Esp 32 related issue
Projects
None yet
Development

No branches or pull requests

3 participants