-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
"AP mode failed" since commit 5197999 #40
Comments
Did you try a reset PedalinoMini to factory default? |
Resetting to defaults did get past this issue, but revealed two more. I'm about to submit a pull request that should address the first one, and prevent the second one. I think you should be able to reproduce my issue (and upcoming pull request) by factory-resetting with the latest code and boards/libraries in PlatformIO.
WiFiAP now requires 8 characters for the passphrase.
Serial output from bootup, with no buttons pressed or held after triggering the factory default:
Decoded backtrace:
Relevant code in UdpMidiOut.h:
I solved this by changing the default passphrase to repeat the chip ID. It is now 14 characters instead of 7, and still predictable based on the chip ID which is part of the default SSID.
It now boots and handles button presses without crashing/rebooting.
|
@jwyse thank you very much for your debugging and very precise report. The bug is in the getChipId function. It should return 8 hex digits from MAC address (the low 4 bytes) converted to a String. Due to a bug in my implementation it return only 7 digit when the first is zero like in your case 03C40A24. |
@jwyse How do you decode backtrace in Platformio? |
You don't. :( I used me-no-dev's EspExceptionDecoder in the Arduino IDE. It's just a wrapper within Arduino IDE, so you could use a command line version instead. If you do install the tool in the Arduino IDE, you can use it without actually loading/building/flashing the code there. Just launch the tool, point it to the ELF file in .pio\build\esp32dev\firmware.elf, and then paste the backtrace string. |
Your latest commit a few hours ago solved this problem. This issue can be closed. Thanks! |
Fresh install on ESP32. No previous configuration. VSCode, PlatformIO, boards, etc. are all up-to-date. Build succeeds but I get the below error at runtime. I tried a few different commits and found that the issue started with commit 517999 from Oct 19.
latest commit, 7e9f1d8... (Oct 26)
Relevant code from
WifiConnect.h
, with an added DPRINT line:This issue seems to have been introduced in commit 5197999 when the
ssidSoftAP
variable was introduced alongside, and sort of replacing,wifiSSID
. At this point within WifiConnect.h, ssidSoftAP and passwordSoftAP are null or empty. It appears that there are no local variables by those names.The previous commit, 3710def from Oct 12, does not have this issue, although it does seem to have an issue with mDNS that I have not tried to chase down.
The text was updated successfully, but these errors were encountered: