Need advice for ESP32S3-WROOM-1 (4MB)
See original GitHub issueConfiguration: Windows 10, Visual Studio Code 1.71.2, Platform ESP32 5.0.0 and 5.2.0
Hello, I use to flash bare ESP models like ESP8266-12, ESP32-WROOM-32 and ESP32-S3-WROOM-1. Never used ready boards, which are mostly referenced in platformio.ini >> board
With ESP32-S3 I startet recently with buying some ESP32-S3-WROOM-1N4 with 4MB Flash. I startet to (try to) flash them with the following platformio.ini:
[platformio] default_envs = esp32S3
[env] framework = arduino monitor_speed = 115200 upload_speed = 921600
`[env:esp32S3] build_flags = -D CORE_DEBUG_LEVEL=0 platform = espressif32 board = esp32-s3-devkitc-1
` I then realized quickly, that the referenced board (a “naked” ESP32-WROOM-1N4 seems not to available) has 8MB of flash, not 4MB and an error message told me so… I then created an own board file esp32-s3-wr-1-4MB.json which is a changed esp32-s3-devkitc-1.json: (changed lines marked)
`{ “build”: { “arduino”:{ “ldscript”: “esp32s3_out.ld”, “partitions”: “default.csv” }, “core”: “esp32”, “extra_flags”: [ “-DARDUINO_ESP32S3_DEV”, “-DARDUINO_USB_MODE=1”, “-DARDUINO_RUNNING_CORE=1”, “-DARDUINO_EVENT_RUNNING_CORE=1” ], “f_cpu”: “240000000L”, “f_flash”: “40000000L”, <<<<<<<<<<< “flash_mode”: “dio”, “hwids”: [ [ “0X303A”, “0x1001” ] ], “mcu”: “esp32s3”, “variant”: “esp32s3” }, “connectivity”: [ “wifi” ], “debug”: { “default_tool”: “esp-builtin”, “onboard_tools”: [ “esp-builtin” ], “openocd_target”: “esp32s3.cfg” }, “frameworks”: [ “arduino”, “espidf” ], “name”: “ESP32S3 WROOM-1N4, 4MB, No PSRAM”, <<<<<<<<<<< “upload”: { “flash_size”: “4MB”, <<<<<<<<<<< “maximum_ram_size”: 327680, “maximum_size”: 4194304, <<<<<<<<<<< “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” }
` and placed it in a new folder “boards” in my project. After that, I received a new error message that says, that bootloader_dio_40m.bin wasn’t found. I searched and found under …<framework>\tools\sdk\esp32s3\bin all available bootloaderX.bin files. But in contrast to the esp32\bin folder, where the bootloader_dio_40m.bin is there, here in \esp32s3\bin it is not… ? I tried then to compile and flash my program with the original Arduino IDE … and it worked.This file is named there as “HelloWord.ino.bootloader.bin”. I copied this file to …<framework>\tools\sdk\esp32s3\bin as bootloader_dio_40m.bin (with bad feelings!). But it worked. I could now compile and flash my programs on a bare ESP32S3-WROOM-1N4.
But … then came platform ESP32 release 5.2.0. And from now on one more file is requested: bootloader_dio_40m.elf. As before, the 80m and 120m variants of the bootloaderX files are available under …\esp32S3\bin, but nothing for 40m.
Now I am at the end of the street amd needs some help with the following questions:
- What is the correct way to program bare ESP-Modules. All available “boards” only address complex developer PCB.
- Is it the right way to create own board .json files?
- How do I generate the right way bootloaderX files (.bin AND .elf !!). Or must I wait until they are delivered with a release?
- Why are these files available under \esp32\bin but not under \esp32S3\bin?
- What are these requested .elf variants, that wasn’t necessary until 5.0.0?
Thank you for helping! Regards Andree
Issue Analytics
- State:
- Created a year ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
OK … 2 Minutes too late …
It was my fault! While copying back and forth I had had my old json file contents. With your provided file now it works!
THANK YOU !!!
Your platformio setup is probably borked. There is nowhere 40Mhz as flash frequency now! Delete the hidden folder
.platformio
to clean it. Platformio will rebuild,