question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need advice for ESP32S3-WROOM-1 (4MB)

See original GitHub issue

Configuration: 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:

  1. What is the correct way to program bare ESP-Modules. All available “boards” only address complex developer PCB.
  2. Is it the right way to create own board .json files?
  3. How do I generate the right way bootloaderX files (.bin AND .elf !!). Or must I wait until they are delivered with a release?
  4. Why are these files available under \esp32\bin but not under \esp32S3\bin?
  5. What are these requested .elf variants, that wasn’t necessary until 5.0.0?

Thank you for helping! Regards Andree

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ams-hhcommented, Oct 6, 2022

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 !!!

0reactions
Jason2866commented, Oct 6, 2022

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,

Read more comments on GitHub >

github_iconTop Results From Across the Web

esp32-s3-wroom-1_wroom-1u_datasheet_en.pdf
Table 1: ESP32S3WROOM1 Series Comparison1. Ambient Temp.3 ... 4 MB (Quad SPI) ... b In module variants that have embedded OSPI PSRAM, i.e., ......
Read more >
ESP32-WROOM-32D (4MB HIGH TEMP) Espressif Systems
Order today, ships today. ESP32-WROOM-32D (4MB HIGH TEMP) – Bluetooth, WiFi 802.11b/g/n, Bluetooth v4.2 +EDR, Class 1, 2 and 3 Transceiver Module 2.4GHz ......
Read more >
Esp32 Memory Map - Vela Cloud
Esp32 Memory MapUSING ESP32'S FLASH MEMORY FOR DATA STORAGE. It's a key-value database stored in the flash memory. Embedded Memory Address Mapping.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found