-
-
Notifications
You must be signed in to change notification settings - Fork 653
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
v5.1.0 broked something related to LittleFS and SPIFFS with TinyPICO board... works in Arduino IDE. #877
Comments
Same as #867 @sblantipodi There was a change/fix in the way how the Arduino Bootloaders are compiled in IDF for Arduino for core 2.0.4. |
thanks for the answer and for joining in @Jason2866 |
@sblantipodi First try flash mode |
I noticed it, QIO is the flash mode needed to work well on all boards now. |
@valeros Looking at this https://github.com/espressif/arduino-esp32/blob/master/tools/platformio-build-esp32.py#L306-L313 there is always the qio lib included since the variable there is not set from anyware. Or do i miss here something? |
So then we could also set See for other other options: https://github.com/espressif/arduino-esp32/tree/master/tools/sdk/esp32 Something like this: {
"build": {
"arduino":{
"ldscript": "esp32_out.ld",
"memory_type": "dio_qspi"
},
"core": "esp32",
"extra_flags": "-DARDUINO_ESP32_DEV -DARDUINO_USB_CDC_ON_BOOT=0 -DESP32_16M",
"f_cpu": "240000000L",
"f_flash": "40000000L",
"flash_mode": "dio",
"mcu": "esp32",
"variant": "esp32",
"partitions": "esp32_partition_app4096k_spiffs8124k.csv"
},
... |
yep. But for all except the ESP32-S3 it could be generated from |
OK, this really has become my new nightmare.... I tested myself to make a build where I set the
N.B. the old builds apparently must have had |
This issue also seems to affect Arduino |
TBH, I'm a bit unaware why the Espressif team decided to use the |
@valeros See also my findings here: letscontrolit/ESPEasy#4200 TL;DR |
@valeros I did tests this morning regarding to. When i changed the setup to |
Not sure if that's true. |
@TD-er True! Good point.
Why i didnt do that earlier??? |
Opened issue espressif/arduino-esp32#7140 |
Ah great :) I'm curious whether my unit here may indeed not support QIO but only QOUT. |
@cyberman54 yes, since including the wrong SPI lib driver results in damaging flash content. This is hitting LittleFS, SPIFFS, NVS and all code stuff writing to flash. |
I've updated the Arduino package for ESP32 with the patch by @Jason2866 submitted in espressif/esp32-arduino-lib-builder#80 |
@valeros Great, but why you removed the |
@Jason2866 I just glanced at espressif/esp32-arduino-lib-builder#80 and didn't see any branches special for S3. Anyway, fixed in the latest package. |
How can i use the current version with the fix with platformio? |
@cyberman54 Just run |
@valeros Perfect! Thx, for your great support :-) |
Are you going to open a PR for your way? It is better than mine. So i could close my PR |
@Jason2866 Do you mean a PR to https://github.com/espressif/esp32-arduino-lib-builder ? I wasn't planning on submitting a new PR, let's see what the maintainers say about yours. |
Fine, the PR does work. But it is not easy to understand at first sight was it does ;-) |
@sblantipodi Please try other flash modes than |
@Jason2866 Hi, I'm from mobile now, I'll try it next week as soon as I will be back home. Thanks for quoting. |
I confirm it works awesome, congrats guys! |
This is a small code sample that read and write to Little FS on ESP32.
if I use a TinyPICO board, this small snippet fails reading writing LittleFS when using
[email protected]
it works well when using
[email protected]
I noticed that the only way to make it work with
[email protected]
is to use
board_build.flash_mode = qio
instead of
board_build.flash_mode = dio
but this does not have sense to me.
when using
[email protected]
that snippet works with both
QIO
andDIO
.the problem happen on TinyPICO board only, it does not happen on LolinD32 or other ESP32 boards I have.
Same snipped always works well with Arduino IDE when using Core 2.0.4.
The text was updated successfully, but these errors were encountered: