docs

a slatepencil documentail site

View on GitHub

ESP-IDF flash log

idf.py -p /dev/cu.usbserial-210 flash

Executing action: flash
Running ninja in directory /Users/username/esp/hello_world/build
Executing "ninja flash"...
[1/5] cd /Users/username/esp/hello_world/build/esp-idf/esptool_py && /Users/username/.espressif/python_env/idf5.1_py3.9_env/bin/python /Users/username/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 partition --type app /Users/username/esp/hello_world/build/partition_table/partition-table.bin /Users/username/esp/hello_world/build/hello_world.bin
hello_world.bin binary size 0x30f20 bytes. Smallest app partition is 0x100000 bytes. 0xcf0e0 bytes (81%) free.
[2/5] Performing build step for 'bootloader'
[1/1] cd /Users/username/esp/hello_world/build/bootloader/esp-idf/esptool_py && /Users/username/.espressif/python_env/idf5.1_py3.9_env/bin/python /Users/username/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 /Users/username/esp/hello_world/build/bootloader/bootloader.bin
Bootloader binary size 0x5100 bytes. 0x2f00 bytes (37%) free.
[2/3] cd /Users/username/esp/esp-idf/components/esptool_py && /Users/username/.espressif/tools/cmake/3.24.0/CMake.app/Contents/bin/cmake -D IDF_PATH=/Users/username/esp/esp-idf -D "SERIAL_TOOL=/Users/username/.espressif/python_env/idf5.1_py3.9_env/bin/python;;/Users/username/esp/esp-idf/components/esptool_py/esptool/esptool.py;--chip;esp32s3" -D "SERIAL_TOOL_ARGS=--before=default_reset;--after=hard_reset;write_flash;@flash_args" -D WORKING_DIRECTORY=/Users/username/esp/hello_world/build -P /Users/username/esp/esp-idf/components/esptool_py/run_serial_tool.cmake
esptool esp32s3 -p /dev/cu.usbserial-210 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 2MB 0x0 bootloader/bootloader.bin 0x10000 hello_world.bin 0x8000 partition_table/partition-table.bin
esptool.py v4.5.dev2
Serial port /dev/cu.usbserial-210
Connecting....
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
MAC: ff:ff:ff:ff:ff:ff
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00005fff...
Flash will be erased from 0x00010000 to 0x00040fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 20736 bytes to 13162...
Writing at 0x00000000... (100 %)
Wrote 20736 bytes (13162 compressed) at 0x00000000 in 0.6 seconds (effective 299.5 kbit/s)...
Hash of data verified.
Compressed 200480 bytes to 109304...
Writing at 0x00010000... (14 %)
Writing at 0x0001c9bc... (28 %)
Writing at 0x000225d6... (42 %)
Writing at 0x00028ab4... (57 %)
Writing at 0x0002ef89... (71 %)
Writing at 0x00036ec5... (85 %)
Writing at 0x0003ca3f... (100 %)
Wrote 200480 bytes (109304 compressed) at 0x00010000 in 3.0 seconds (effective 536.7 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 528.5 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
Done
Executing action: flash
Running ninja in directory D:\IOT\esp32\hello_world\build
Executing "ninja flash"...
[1/5] C:\WINDOWS\system32\cmd.exe /C "cd /D D:\IOT\esp32\hello_world\build\...n_table/partition-table.bin D:/IOT/esp32/hello_world/build/hello_world.bin
hello_world.bin binary size 0x2bb90 bytes. Smallest app partition is 0x100000 bytes. 0xd4470 bytes (83%) free.
[1/1] C:\WINDOWS\system32\cmd.exe /C "cd /D D:\IOT\esp32\hello_world\build\...bootloader 0x1000 D:/IOT/esp32/hello_world/build/bootloader/bootloader.bin
Bootloader binary size 0x6880 bytes. 0x780 bytes (7%) free.
[4/5] C:\WINDOWS\system32\cmd.exe /C "cd /D C:\Espressif\frameworks\esp-idf...ssif/frameworks/esp-idf-v5.3.2/components/esptool_py/run_serial_tool.cmake
esptool.py --chip esp32 -p COM3 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x1000 bootloader/bootloader.bin 0x10000 hello_world.bin 0x8000 partition_table/partition-table.bin
esptool.py v4.8.1
Serial port COM3
Connecting......................
Chip is ESP32-D0WD-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: c8:f0:9e:51:e9:ac
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00007fff...
Flash will be erased from 0x00010000 to 0x0003bfff...
Flash will be erased from 0x00008000 to 0x00008fff...
SHA digest in image updated
Compressed 26752 bytes to 16361...
Writing at 0x00001000... (100 %)
Wrote 26752 bytes (16361 compressed) at 0x00001000 in 0.9 seconds (effective 228.5 kbit/s)...
Hash of data verified.
Compressed 179088 bytes to 95751...
Writing at 0x00010000... (16 %)
Writing at 0x0001c216... (33 %)
Writing at 0x00021d79... (50 %)
Writing at 0x000277b3... (66 %)
Writing at 0x0002ef0d... (83 %)
Writing at 0x000364a9... (100 %)
Wrote 179088 bytes (95751 compressed) at 0x00010000 in 2.9 seconds (effective 494.9 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 220.9 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
Done

ESP-IDF start log

idf.py -p /dev/cu.usbserial-210 monitor
Executing action: monitor
Running idf_monitor in directory /Users/username/esp/hello_world
Executing "/Users/username/.espressif/python_env/idf5.1_py3.9_env/bin/python /Users/username/esp/esp-idf/tools/idf_monitor.py -p /dev/cu.usbserial-210 -b 115200 --toolchain-prefix xtensa-esp32s3-elf- --target esp32s3 /Users/username/esp/hello_world/build/hello_world.elf -m '/Users/username/.espressif/python_env/idf5.1_py3.9_env/bin/python' '/Users/username/esp/esp-idf/tools/idf.py' '-p' '/dev/cu.usbserial-210'"...
--- idf_monitor on /dev/cu.usbserial-210 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x18 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
Octal Flash Mode Enabled
For OPI Flash, Use Default Flash Boot Mode
mode:SLOW_RD, clock div:1
load:0x3fce3810,len:0x1678
load:0x403c9700,len:0xbe8
load:0x403cc700,len:0x2e40
entry 0x403c9904
I (32) boot: ESP-IDF v5.1-dev-3376-gccea970c61 2nd stage bootloader
I (32) boot: compile time Feb 14 2023 15:07:43
I (33) boot: chip revision: v0.1
I (37) boot.esp32s3: Boot SPI Speed : 80MHz
I (42) boot.esp32s3: SPI Mode       : SLOW READ
I (47) boot.esp32s3: SPI Flash Size : 2MB
I (52) boot: Enabling RNG early entropy source...
I (57) boot: Partition Table:
I (61) boot: ## Label            Usage          Type ST Offset   Length
I (68) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (75) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (83) boot:  2 factory          factory app      00 00 00010000 00100000
I (90) boot: End of partition table
I (94) esp_image: segment 0: paddr=00010020 vaddr=3c020020 size=09c00h ( 39936) map
I (112) esp_image: segment 1: paddr=00019c28 vaddr=3fc91500 size=025fch (  9724) load
I (115) esp_image: segment 2: paddr=0001c22c vaddr=40374000 size=03dech ( 15852) load
I (124) esp_image: segment 3: paddr=00020020 vaddr=42000020 size=177cch ( 96204) map
I (151) esp_image: segment 4: paddr=000377f4 vaddr=40377dec size=096fch ( 38652) load
I (168) boot: Loaded app from partition at offset 0x10000
I (168) boot: Disabling RNG early entropy source...
I (179) cpu_start: Pro cpu up.
I (179) cpu_start: Starting app cpu, entry point is 0x40375230
0x40375230: call_start_cpu1 at /Users/username/esp/esp-idf/components/esp_system/port/cpu_start.c:152

I (0) cpu_start: App cpu up.
I (194) cpu_start: Pro cpu start user code
I (194) cpu_start: cpu freq: 160000000 Hz
I (194) cpu_start: Application information:
I (197) cpu_start: Project name:     hello_world
I (202) cpu_start: App version:      1
I (206) cpu_start: Compile time:     Feb 14 2023 15:07:38
I (212) cpu_start: ELF file SHA256:  ba1cf32d1bf59ac2...
I (218) cpu_start: ESP-IDF:          v5.1-dev-3376-gccea970c61
I (225) cpu_start: Min chip rev:     v0.0
I (230) cpu_start: Max chip rev:     v0.99 
I (235) cpu_start: Chip rev:         v0.1
I (239) heap_init: Initializing. RAM available for dynamic allocation:
I (246) heap_init: At 3FC94338 len 000553D8 (340 KiB): DRAM
I (253) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (259) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (266) heap_init: At 600FE010 len 00001FF0 (7 KiB): RTCRAM
W (272) spi_flash: Octal flash chip is using but dio mode is selected, will automatically swich to Octal mode
I (283) spi_flash: detected chip: mxic (opi)
I (287) spi_flash: flash io: opi_str
W (292) spi_flash: Detected size(32768k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (305) sleep: Configure to isolate all GPIO pins in sleep state
I (312) sleep: Enable automatic switching of GPIO sleep configuration
I (319) app_start: Starting scheduler on CPU0
I (324) app_start: Starting scheduler on CPU1
I (324) main_task: Started on CPU0
I (334) main_task: Calling app_main()
Hello world!
This is esp32s3 chip with 2 CPU core(s), WiFi/BLE, silicon revision v0.1, 2MB external flash
Minimum free heap size: 390448 bytes
Restarting in 10 seconds...
Restarting in 9 seconds...
Restarting in 8 seconds...
Restarting in 7 seconds...
Restarting in 6 seconds...
Restarting in 5 seconds...
Restarting in 4 seconds...
Restarting in 3 seconds...
Restarting in 2 seconds...
Restarting in 1 seconds...
Restarting in 0 seconds...
Restarting now.
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (SW_CPU_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:2
load:0x3fff0030,len:7176
load:0x40078000,len:15564
ho 0 tail 12 room 4
load:0x40080400,len:4
--- 0x40080400: _init at ??:?

load:0x40080404,len:3904
entry 0x40080640
I (31) boot: ESP-IDF v5.3.2-dirty 2nd stage bootloader
I (31) boot: compile time Feb 18 2025 14:49:29
I (31) boot: Multicore bootloader
I (36) boot: chip revision: v3.0
I (40) boot.esp32: SPI Speed      : 40MHz
I (44) boot.esp32: SPI Mode       : DIO
I (49) boot.esp32: SPI Flash Size : 2MB
I (53) boot: Enabling RNG early entropy source...
I (59) boot: Partition Table:
I (62) boot: ## Label            Usage          Type ST Offset   Length
I (70) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (77) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (85) boot:  2 factory          factory app      00 00 00010000 00100000
I (92) boot: End of partition table
I (96) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=094cch ( 38092) map
I (118) esp_image: segment 1: paddr=000194f4 vaddr=3ffb0000 size=0231ch (  8988) load
I (121) esp_image: segment 2: paddr=0001b818 vaddr=40080000 size=04800h ( 18432) load
I (131) esp_image: segment 3: paddr=00020020 vaddr=400d0020 size=13850h ( 79952) map
I (160) esp_image: segment 4: paddr=00033878 vaddr=40084800 size=082ech ( 33516) load
I (179) boot: Loaded app from partition at offset 0x10000
I (180) boot: Disabling RNG early entropy source...
I (192) cpu_start: Multicore app
I (200) cpu_start: Pro cpu start user code
I (200) cpu_start: cpu freq: 160000000 Hz
I (200) app_init: Application information:
I (203) app_init: Project name:     hello_world
I (208) app_init: App version:      1
I (213) app_init: Compile time:     Feb 18 2025 14:46:42
I (219) app_init: ELF file SHA256:  c58ff0f2f...
I (224) app_init: ESP-IDF:          v5.3.2-dirty
I (229) efuse_init: Min chip rev:     v0.0
I (234) efuse_init: Max chip rev:     v3.99
I (239) efuse_init: Chip rev:         v3.0
I (244) heap_init: Initializing. RAM available for dynamic allocation:
I (251) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (257) heap_init: At 3FFB2BE8 len 0002D418 (181 KiB): DRAM
I (263) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (270) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (276) heap_init: At 4008CAEC len 00013514 (77 KiB): IRAM
I (284) spi_flash: detected chip: generic
I (287) spi_flash: flash io: dio
W (291) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (305) main_task: Started on CPU0
I (315) main_task: Calling app_main()
Hello world!
This is esp32 chip with 2 CPU core(s), WiFi/BTBLE, silicon revision v3.0, 2MB external flash
Minimum free heap size: 305072 bytes
Restarting in 10 seconds...
Restarting in 9 seconds...
--- To exit from IDF monitor please use "Ctrl+]". Alternatively, you can use Ctrl+T Ctrl+X to exit.
Restarting in 8 seconds...
--- To exit from IDF monitor please use "Ctrl+]". Alternatively, you can use Ctrl+T Ctrl+X to exit.
Restarting in 7 seconds...
Restarting in 6 seconds...
Restarting in 5 seconds...
Restarting in 4 seconds...
Restarting in 3 seconds...
Restarting in 2 seconds...
Restarting in 1 seconds...
Restarting in 0 seconds...
Restarting now.
ets Jul 29 2019 12:21:46