-
Notifications
You must be signed in to change notification settings - Fork 715
Bootloop with Wifi + BLE #110
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
Comments
That's a great post/report. Lots of great details and well described. Unfortunately I'm still considering we are in Arduino limbo for just now. The latest Arduino-ESP32 libraries use the Until that is formally resolved by what ever change is necessary and the Arduino-ESP32 libraries are modified/re-released to pick up the change, there isn't a current environment available to us to sensibly perform Arduino work and testing. Flagging as blocked until we get the above issue resolved. |
Is there any known workaround for this issue? Sadly I depend on another bugfix in the Arduino repository fixing some HTTPS issues, which means I can't easily use an older version. |
Progress is being made. We have a "chain" of fixes needed ... the ESP-IDF is the foundation and the latest Git master seems to contain what we need. The next level up is for the Arduino-ESP32 package to refresh itself with the latest ESP-IDF from Git master and a request has been opened for this just a day ago ... see: When that request/issue gets satisfied ... the final part will be testing the BLE libraries on Arduino and pushing a new Arduino BLE C++ library which should only take about a day. |
The great news is that the Arduino ESP32 project has been updated. Please re-build your base Arduino ESP32 environment. The even better news is that the owner of that project has decided to include the BLE C++ classes as part of the distribution. So it is now baked in. Please re-test and let us now see where we stand. |
Great! I'll test it later today |
Sadly, the changes don't seem to have fixed the issue. I'm still getting the same problem as @pit001 had |
I have managed to recreate the issue on my machine using the latest Arduino-ESP32 environment. This is great ... because a problem re-created is a problem half solved. Running the decoder against the stack trace, I find:
Unfortunately, this appears to happen at the start of the program before any other activity is performed which had me stymied. So I walked through the source code of the ESP-IDF found here:
Working backwares ... Line 207 calls However we have a new problem ... the stack size is governed by the configuration variable called |
Hello Mr. Kolban thank you for your this great utility of yours . You have dug very much into esp32 i think. What i want to find out is actually esp and ble can be used together via esp idf core? |
Hello what i have found is something interesting. We can actually start the esp_bluedroid_init() and wifi.begin() together but when we i just only include one of the library file only include..it goes into same error.! |
Sorry i might disturbing again...But thought one time i should share this.. |
Note: There was an unrelated thread created here ... moved to #170 |
We appear to have a report of this now happening in pure ESP-IDF (i.e. none of the code used in this project). See: |
Closing for just now |
Hi, not sure if this issue is allready contained in #82 or others.
The simplified test code (below) results in a bootloop if line
BLEDevice::init("");
is active:
Debug Output:
Rebooting...
ets Jun 8 2016 00:22:57
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:DIO, clock div:1
load:0x3fff0010,len:4
load:0x3fff0014,len:716
load:0x40078000,len:0
load:0x40078000,len:11572
entry 0x40078a14
assertion "res == pdTRUE" failed: file "/Users/ficeto/Espressif/ESP32/esp-idf/components/esp32/./cpu_start.c", line 337, function: start_cpu0_default
abort() was called at PC 0x4015eb1f on core 0
Backtrace: 0x400898e4:0x3ffe3b90 0x400899e3:0x3ffe3bb0 0x4015eb1f:0x3ffe3bd0 0x40083a79:0x3ffe3c00 0x40083c1c:0x3ffe3c30 0x4007886a:0x3ffe3c50 0x400788d1:0x3ffe3c80 0x40078a0e:0x3ffe3cb0 0x40078b33:0x3ffe3e70 0x40007c31:0x3ffe3eb0 0x4000073d:0x3ffe3f20
Rebooting...
Decoding 15 results
0x4015eb1f: __assert_func at /Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdlib/../../../.././newlib/libc/stdlib/assert.c line 63 (discriminator 8)
0x400898e4: invoke_abort at /Users/ficeto/Espressif/ESP32/esp-idf/components/esp32/./panic.c line 553
0x400899e3: abort at /Users/ficeto/Espressif/ESP32/esp-idf/components/esp32/./panic.c line 553
0x4015eb1f: __assert_func at /Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdlib/../../../.././newlib/libc/stdlib/assert.c line 63 (discriminator 8)
0x40083a79: start_cpu0_default at /Users/ficeto/Espressif/ESP32/esp-idf/components/esp32/./cpu_start.c line 337 (discriminator 1)
0x40083c1c: call_start_cpu0 at /Users/ficeto/Espressif/ESP32/esp-idf/components/esp32/./cpu_start.c line 207
The text was updated successfully, but these errors were encountered: