-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
FFAT and BluetoothSerial conflict causing boot loop on ESP32 #3265
Comments
Please decode your backtrace, as I am unable to reproduce. |
This is the output of the decoder:
I hope that this can help you. If it's useful, I have also tested the sketch with Heltec-ESP32 ver0.0.2-rc1 board distribution with edited partition map and this is the decoded stack result:
In the additional board manager field I've added this line:
This hardware library is also worst respect all the other and have a lot of other bugs already resolved. |
I think this will be fixed by ca88fdc. As a workaround, why not just use |
The new ffat.cpp resolves the boot loop issue, but something still goes wrong if I want to format manually the fat partition. In particular, take a look to this output:
...why the partition is already mounted on startup? Why format() is telling me that is already mounted and don't format the partition? And also, why if I try to unmount it with end() method it fails? |
You need the new ffat.h as well. |
...a new boot loop to resolve...
###Decoding stack results
Only one more question about this issue...why if I comment out the BluetoothSerial.h include all perfectly works without any crash also if the partition is unformatted and with original ffat .cpp & .h files? And why if the FAT partition is formatted and BluetoothSerial.h included, all works perfectly except format that don't crashes, but do nothing? |
Simply perfect! Thanks a lot. |
Hardware:
Board: Heltec ESP32 LoRa V2 Module
Core Installation version: 1.0.3-rc3
IDE name: Arduino IDE 1.8.10
Flash Frequency: 40Mhz
PSRAM enabled: no
Upload Speed: 921600
Computer OS: Windows 8.1
Description:
After a lot of hours spent to try to figure out what is wrong in my original source code, I've isolated the problem that causes the strange reboot.
I'm using esp32/1.0.3-rc3 - Heltec WiFi LoRa 32(v2) hardware board and I've edited the default partition table to simplify the tests:
I've the ESP32 64Mbit version and this is the partition table that I've used for 8MB version:
I've also created another partition table for 4MB version, but the result is the same:
Sketch:
This is my simple code extracted from FFAT example in esp32_fatfsimage-master library.
As you can see, the included library "BluetoothSerial.h" isn't really used in this example, but is sufficient include it to cause the issue.
The problem happen only if the FFAT partition isn't already formatted...but if it's formatted, the software don't crash, but I'm unable to format it again to wipe data in runtime, and format function always fail.
Debug Messages:
Output copied from serial monitor when the software crashes:
Output from serial monitor when it works well without BluetoothSerial.h #include line:
This is the command line that I've used to clear and re-initialize the ESP32 flash:
python esptool.py --port COM7 erase_flash
The text was updated successfully, but these errors were encountered: