-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
ESP32 bootloop -- "wifi:create wifi task: failed to create task" #8
Comments
I just tried with Arduino IDE 2.2.1 and an "Adafruit ESP32 Feather" and I had no problems. I do see a bootloop if I have an incompatible board selected, such as if I select "Adafruit ESP32 Version 2". You probably want to verify you can upload an empty sketch before you try loading the dali clock |
My aduino compile chain appears to be working -- I'm able to compile and upload a test sketch and it works. Also, this host is being used to handle esphome builds which uses the arduino compiler. Is there something specific about the Feather which makes it a requirement? I've tested on three different varieties of ESP-WROOM-32 boards. |
I don't think so. I have no clue why it doesn't work on your particular board. It does say that it failed to create a task, so it is failing on the following line:
I would maybe see if it works with that commented out. If so, then maybe comment most of the code in "wifi_task" and see whether that works. Then add code until it crashes. |
The fact it says "Stack canary watchpoint triggered" may indicate the stack is too small. You could try increasing "3*1024" to something larger, like "4*1024", then increase it until the problem goes away. Maybe my board does not have that stack size check enabled and I am corrupting memory without realizing it. |
OK, let's give that a go. Yep, that fixed the bootloop. I don't have time to do a proper config and test right now, but it looks like a step forward. |
Righteo, interesting. It doesn't crash, but
And no access point is visible. I assume returning an IP of 0.0.0.0 is indicative of something going wrong. |
This took me like 3 evenings of swearing to figure out, but you need to downgrade your esp32 tool chain to the one the code was originally written for. This code works fine for me on esp32 v1.0.6. and Arduino IDE 2.2.1(Latest). |
Can you let me know how much you increased the stack size so I can make the fix in the code? |
I too was having the same problem with the boot loop and it was resolved with the following code amendments.
But, the WiFi access point failed to initialize correctly. rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) |
I got the same pb the AP is not showing but I saw this :
and I was wondering how to downgrade Arduino IDE (v2.3.1) esp32 tool chain to the recommended v1.0.6, can someone give me some tips on that task ? Thank you. |
+1 to some instructions on running such a downrev build environment. Additionally, perhaps the author could build a PAL and NTSC binary image that can be flashed with esptool.py? |
This is an interesting idea. The biggest issue I see with it is that one binary would need to work on all the various development boards. I don't know how realistic that is. It is possible that I would need to have one binary per SoC part number. The other issue would that I would need to provide a listing of boards and what output pin will be active. Since I don't own all boards, I would have to find a way to extract the information from the Arduino IDE itself. Due to the effort involved, I would likely only offer the binaries to my GitHub sponsors, if it is possible at all. I'll need to investigate. |
I might be completely wrong here, but I imagine nearly everyone tackling this sort of project is using the bog-standard ESP-WROOM-32 dev boards that are extremely common and extremely cheap. I know there are hundreds of ESP32 boards out there, but once you rule out the ones with fancy features like displays and battery management and LoRa, there's not much real difference between WROOM modules. |
OK, I had a little time so I worked out the 1.0.6 ESP32 toolchain process and wrote it up here: https://gist.github.com/PCOWandre/9ae7cabe39bc2389bf806cbd3c2f5bfc It compiles and runs without error; I need to rat around for an RCA jack to build a cable to test it and I'll save that for daylight. EDIT: found a RCA jack in my desk drawer -- it works -- pin on my board is labelled D25. |
Thanks for the guide, I got a compile error despite I did select a board from "ESP32 Arduino (in Sketchbook)" `In file included from c:\users\david\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\xtensa-esp32-elf\esp32-psram\no-rtti\bits\gthr.h:151, exit status 1 Compilation error: exit status 1` |
I finally get it working, using another computer with an older version of the IDE and no problem, the project compile without problem and the wifi is working now on the clock. Thanks again. |
Hi!
I've tried this on a couple of different ESP32 boards and seem to be getting the same result -- a bootloop. Please be patient; my knowledge of the arduino/esp32 environment is .. limited.
Console messages:
Environment:
The text was updated successfully, but these errors were encountered: