-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ESP32 S3(FN8 chip or FR8 chip)use partition table default_8MB.csv lead to reboot continuously(default.csv 4MB is fine) #6646
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
N8 and R8 are different things. N8 means 8MB QSPI Flash, R8 means 8MB OPI PSRAM. |
Additional to what @me-no-dev said. Actual https://github.com/platformio/platform-espressif32.git does not yet support the S3. |
Mandantory. Use esptool.py v3.3. Only this version has the flash size patch for the S3. |
thank u for your answer,My boards N8 connect to 8 MB PSRAM, R8 connect to 8MB FLASH. remove the config your give, the issue is not fixed |
thank you for your help so much, use your fork solve my problem. divce work fine . |
Reduce upload speed. If this does not work try to put device manually in Upload mode. |
@UnexpectedMaker No it is not related. S3 does compile with my Platformio fork and flashing via VSC is working too. The Arduino issue is probably that the reference |
Ok, nps! Removing links other issue :) |
I have the same problem. I tought it was because of PIO. With 4mb csv it is working fine ( except my data folder does not fit into the fs ) and if i use default_16mb.csv it will boot loop. ( even with default 8mb csv ) Iam using ESP32-WROVER-E ( 16mb flash 8mb external ram ) |
I tried with this fork from @Jason2866 and i got a different boot loop serial output: rst:0x3 (SW_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:0x3fff0030,len:344
load:0x40078000,len:13328
=> 0x40078000: ?? ??:0
load:0x40080400,len:3488
=> 0x40080400: _init at ??:?
entry 0x400805d0
=> 0x400805d0: ?? ??:0
ets Jul 29 2019 12:21:46
rst:0x3 (SW_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:0x3fff0030,len:344
load:0x40078000,len:13328
=> 0x40078000: ?? ??:0
load:0x40080400,len:3488
=> 0x40080400: _init at ??:?
entry 0x400805d0
=> 0x400805d0: ?? ??:0
ets Jul 29 2019 12:21:46 If i erase the flash and upload the data folder again, i get a different serial output: rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
ets Jul 29 2019 12:21:46
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
ets Jul 29 2019 12:21:46
rst:0x10 (RTCWDT_RTC_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download |
Does work with
|
my problem was solved by replacing here is my issue : platformio/platform-espressif32#788 |
I had been looking for hours to see if it was a code problem when upgrading to a new version, but it turns out it was this. Thank you very much for your help. |
No problem. I also searched for days. xd |
I stopped the boot loop problem by adding the "board_upload.flash_size = 8MB" But I am still getting file system errors:
[env:esp32dev] If I enable "platform_packages " I get a lot of "fatal error: freertos/FreeRTOS.h: No such file or directory" errors. Weird |
|
Have you tried only with:
in the ini? |
1 cd to your platform install dir: C:\Users\xxx.platformio\platforms,and remove your espressif32 or espressif32@xx(delete the all espressif32 folders) platform ;this setting will reinstall espressif32 、framework-arduinoespressif32 and related tools only with your setting will work |
So clearing out my install directory helped. I don't get compile errors. But my FS will not init. This is for an ESP32-S3-WROOM-2 |
I have, but that seems to add more compile errors. |
I couldn't review the Formatted `.ini` section
[env:esp32dev]
;platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.3rc1/platform-espressif32-2.0.3.zip
platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.3rc1/platform-espressif32-2.0.3new.zip
platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/829/framework-arduinoespressif32-v4.4.1-3010c4571f.tar.gz
board = esp32-s3-devkitc-1
board_upload.flash_size = 8MB
;board_build.f_flash = 80000000L
;board_build.partitions=default_8MB.csv
build_flags =
-DBOARD_HAS_PSRAM
-DCORE_DEBUG_LEVEL=5
framework = arduino
upload_port = COM18
board_build.filesystem = littlefs
monitor_port = COM5
monitor_speed = 115200
lib_deps =
knolleary/PubSubClient@^2.8.0
https://github.com/husarnet/AsyncTCP.git
https://github.com/me-no-dev/ESPAsyncWebServer.git bblanchon/ArduinoJson @ 6.17
bodmer/TFT_eSPI@^2.4.61
bitbank2/PNGdec@^1.0.1
adafruit/Adafruit NeoPixel@^1.10.4` NOTE: The original showed |
Actual build (based on release core 2.0.3). I removed redundant not needed entrys and uncommented the 8MB partition scheme
|
Thanks, I will try that. I will get back to you tonight. |
I am getting this error now:
|
Ahh yes. Mistake. Should look like
|
I am still getting an error "no platform selected" (platform for 'esp32-s3dev') Thoughts? |
I also tried updating PIO since the latest "beta" fix is about compile flags. Still not working. ' |
@richcj10 I think it is the wrong place for your problem, since Arduino IDE works for you? EDIT: I think this issues moved away from the orig. problem. Thats solved. |
@richcj10 you probably need |
Make a boards.json for platformio. Create a folder
|
Maybe you have to change the |
@me-no-dev It is like i thought in #6426 |
Thanks for the help! It still is boot looping at the bootloader. I did notice this that I thought was weird: |
I don't see that statement in the Arduino debug log for uploading. |
I did a diff of the platformio-build-esp32s3.py and found these differences: "-u", "include_esp_phy_override", Changing out the files did not change the upload error. Also esptool.py is 100% match. Weird. |
I have an esp32-s3-wroom-1 M0N8R8 which I think is just the N8R8 version. Not sure what the M0 is for. In any case I had one hell of a time figuring out how to get psram working on it in platformio. Using ps_malloc would cause it to go into a continuous reboot loop. This thread helped me head in the right direction so I am posting my results here. This is what I figured out after many days/hours of searching and trial and error. {
"build": {
"arduino":{
"ldscript": "esp32s3_out.ld",
"memory_type": "qspi_opi"
},
"core": "esp32",
"extra_flags": "-DBOARD_HAS_PSRAM",
"f_cpu": "240000000L",
"f_flash": "80000000L",
"flash_mode": "dio",
"mcu": "esp32s3",
"variant": "esp32s3",
"partitions": "partitions/default_8MB.csv"
},
"connectivity": [
"wifi"
],
"debug": {
"openocd_target": "esp32s3.cfg"
},
"frameworks": [
"arduino",
"espidf"
],
"name": "Espressif ESP32-S3-DevKitC-1 N8R8 8MB QD FLASH 8MB OT PSRAM",
"upload": {
"flash_size": "8MB",
"maximum_ram_size": 524288,
"maximum_size": 8388608,
"require_upload_port": true,
"speed": 460800
},
"url": "https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/hw-reference/esp32s3/user-guide-devkitc-1.html",
"vendor": "Espressif"
} Notice the "memory_type": "qspi_opi". This was the only thing that worked for this board. NOT opi_opi, qspi_qspi, or opi_qspi. Tried them all without success. Notice here the memory designation. Flash: 8 MB QD, PSRAM: 8 MB OT. You may need to change this for your board's memory types depending on what the reference guide above says about your particular board. I was able to verify that all Flash and PSRAM is working after using this board definition with the following code. #include <Arduino.h>
void setup() {
log_d("Total heap: %d", ESP.getHeapSize());
log_d("Free heap: %d", ESP.getFreeHeap());
log_d("Total PSRAM: %d", ESP.getPsramSize());
log_d("Free PSRAM: %d", ESP.getFreePsram());
}
void loop() {} As far as monitoring this is what I got on my ini file. Works for me though there might be better options..
|
Looking forward to testing this on my unit. :) |
@code-is-art Would you share your .ini file? I am still having issues. Did your ESP32 upload state this: "Warning: Could not auto-detect Flash size (FlashID=0x3980c2, SizeID=0x39), defaulting to 4MB"? |
@richcj10 when this |
Hello, Due to the overwhelming volume of issues currently being addressed, we have decided to close the previously received tickets. If you still require assistance or if the issue persists, please don't hesitate to reopen the ticket. Thanks. |
Board
ESP32 S3
Device Description
ESP32 S3(FN8 chip or FR8 chip) have 8MB Flash , DIY Board reference to hardware manul
Hardware Configuration
[env:esp32s3]
platform = https://github.com/platformio/platform-espressif32.git
board = esp32-s3-devkitc-1
framework = arduino
upload_port = COM3
upload_speed = 921600
monitor_speed = 115200
board_build.partitions=default_8MB.csv
build_flags =
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-DCORE_DEBUG_LEVEL=5
Version
latest master (checkout manually)
IDE Name
PlatformIO
Operating System
win10
Flash frequency
80Mhz
PSRAM enabled
yes
Upload speed
921600
Description
DIY board ESP32 S3(FN8 chip or FR8 chip) have 8MB Flash ,when I select partition table default_8MB.csv, Build and upload .My device ESP32 S3(FN8 chip or FR8 chip) rebooting continuously.
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: