Using Flash Download Tool for ESP32-C3 using BIN files from Arduino

aik_one
Posts: 3
Joined: Thu Nov 30, 2023 8:56 pm

Using Flash Download Tool for ESP32-C3 using BIN files from Arduino

Postby aik_one » Thu Nov 30, 2023 9:07 pm

Hello. I'm working on a custom board that uses the ESP32-C3 WROOM module. I have code written in Arduino and everything is working. I'm trying to simplify the flashing process by using the Flash Download Tool. I have couple of questions... The following is the log I got from Arduino when it's flashing the module (I have C3 Dev Kit selected as the module in Arduino):
esptool.py v4.5.1
Serial port COM4
Connecting....
Chip is ESP32-C3 (revision v0.4)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 48:31:b7:32:5b:e0
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00003fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x00052fff...
Compressed 13152 bytes to 9473...
Writing at 0x00000000... (100 %)
Wrote 13152 bytes (9473 compressed) at 0x00000000 in 0.4 seconds (effective 242.7 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 146...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.1 seconds (effective 283.2 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 596.7 kbit/s)...
Hash of data verified.
Compressed 272784 bytes to 152209...
Writing at 0x00010000... (10 %)
Writing at 0x0001afa1... (20 %)
Writing at 0x000233a9... (30 %)
Writing at 0x00029e8b... (40 %)
Writing at 0x0002fe6b... (50 %)
Writing at 0x000360ce... (60 %)
Writing at 0x0003bdee... (70 %)
Writing at 0x0004382b... (80 %)
Writing at 0x0004a58a... (90 %)
Writing at 0x00050a7c... (100 %)
Wrote 272784 bytes (152209 compressed) at 0x00010000 in 3.9 seconds (effective 553.3 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
Looking at this log, I confirmed the bootloader is at 0x0, the partitions is at 0x8000 and the application code is at 0x10000. I'm confused about what data is at 0xe000 because Arduino did not generate any other BIN files. Do I need to do anything?

I used the 3 BINS files and set them with the addresses shown above and had multiple successful downloads using the Flash Download Tool. I just wanted to confirm what file is supposed to be flashed at 0xe000 and if its required.

MicroController
Posts: 1735
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Using Flash Download Tool for ESP32-C3 using BIN files from Arduino

Postby MicroController » Sun Dec 03, 2023 6:00 pm

Wrote 8192 bytes (47 compressed) at 0x0000e000
Not much actual data there...
It's probably the 'otadata' partition being initialized.

aik_one
Posts: 3
Joined: Thu Nov 30, 2023 8:56 pm

Re: Using Flash Download Tool for ESP32-C3 using BIN files from Arduino

Postby aik_one » Mon Dec 11, 2023 7:22 pm

MicroController wrote:
Sun Dec 03, 2023 6:00 pm
Wrote 8192 bytes (47 compressed) at 0x0000e000
Not much actual data there...
It's probably the 'otadata' partition being initialized.
Thanks. So I should be good with using the three files Arduino generated right?

Who is online

Users browsing this forum: No registered users and 126 guests