Skip to main content

macchina a0 - initial flash


$ pip install esptool
esptool -v -p /dev/ttyUSB0 --before default-reset --after hard-reset write-flash 0x1000 Downloads/esp32/fw_bt/bootloader.bin 0x10000 Downloads/esp32/fw_bt/isotp_ble_bridge.bin 0x8000 Downloads/esp32/fw_bt/partition-table.bin

Output:

esptool v5.2.0
Serial port /dev/ttyUSB0:
Connecting.....
Detecting chip type... ESP32
Connected to ESP32 on /dev/ttyUSB0:
Chip type:          ESP32-D0WD-V3 (revision v3.1)
Features:           Wi-Fi, BT, Dual Core + LP Core, 240MHz, Vref calibration in eFuse, Coding Scheme None
Crystal frequency:  40MHz
MAC:                f8:b3:b7:65:a0:50

Uploading stub flasher...
Running stub flasher...
Stub flasher running.

Configuring flash size...
Flash will be erased from 0x00001000 to 0x00007fff...
Compressed 27952 bytes to 17649...
Writing at 0x00001000 [                              ]   0.0% 0/17649 bytes...
Writing at 0x0000767f [==========================>   ]  92.8% 16384/17649 bytes...
Writing at 0x00007d30 [==============================] 100.0% 17649/17649 bytes...
Wrote 27952 bytes (17649 compressed) at 0x00001000 in 1.7 seconds (132.0 kbit/s).
Verifying written data...
Hash of data verified.
Flash will be erased from 0x00010000 to 0x000eafff...
Compressed 895392 bytes to 568671...
Writing at 0x00010000 [                              ]   0.0% 0/568671 bytes...
Writing at 0x0001d32b [                              ]   2.9% 16384/568671 bytes...
Writing at 0x000284f5 [>                             ]   5.8% 32768/568671 bytes...
Writing at 0x00032b88 [=>                            ]   8.6% 49152/568671 bytes...
Writing at 0x00037e83 [==>                           ]  11.5% 65536/568671 bytes...
Writing at 0x0003d5fa [===>                          ]  14.4% 81920/568671 bytes...
Writing at 0x00042d54 [====>                         ]  17.3% 98304/568671 bytes...
Writing at 0x000486ff [=====>                        ]  20.2% 114688/568671 bytes...
Writing at 0x0004da45 [=====>                        ]  23.0% 131072/568671 bytes...
Writing at 0x00052cf6 [======>                       ]  25.9% 147456/568671 bytes...
Writing at 0x00058394 [=======>                      ]  28.8% 163840/568671 bytes...
Writing at 0x0005da92 [========>                     ]  31.7% 180224/568671 bytes...
Writing at 0x00063758 [=========>                    ]  34.6% 196608/568671 bytes...
Writing at 0x00068dad [==========>                   ]  37.5% 212992/568671 bytes...
Writing at 0x0006e9d9 [===========>                  ]  40.3% 229376/568671 bytes...
Writing at 0x00074480 [===========>                  ]  43.2% 245760/568671 bytes...
Writing at 0x00079d25 [============>                 ]  46.1% 262144/568671 bytes...
Writing at 0x0007f322 [=============>                ]  49.0% 278528/568671 bytes...
Writing at 0x00084957 [==============>               ]  51.9% 294912/568671 bytes...
Writing at 0x0008a235 [===============>              ]  54.7% 311296/568671 bytes...
Writing at 0x0008fa44 [================>             ]  57.6% 327680/568671 bytes...
Writing at 0x00095159 [=================>            ]  60.5% 344064/568671 bytes...
Writing at 0x0009a71a [==================>           ]  63.4% 360448/568671 bytes...
Writing at 0x000a02ed [==================>           ]  66.3% 376832/568671 bytes...
Writing at 0x000a6644 [===================>          ]  69.1% 393216/568671 bytes...
Writing at 0x000ac21b [====================>         ]  72.0% 409600/568671 bytes...
Writing at 0x000b26ca [=====================>        ]  74.9% 425984/568671 bytes...
Writing at 0x000b85f0 [======================>       ]  77.8% 442368/568671 bytes...
Writing at 0x000c2586 [=======================>      ]  80.7% 458752/568671 bytes...
Writing at 0x000ca175 [========================>     ]  83.6% 475136/568671 bytes...
Writing at 0x000d00ba [========================>     ]  86.4% 491520/568671 bytes...
Writing at 0x000d5558 [=========================>    ]  89.3% 507904/568671 bytes...
Writing at 0x000dac93 [==========================>   ]  92.2% 524288/568671 bytes...
Writing at 0x000e0b5c [===========================>  ]  95.1% 540672/568671 bytes...
Writing at 0x000e6731 [============================> ]  98.0% 557056/568671 bytes...
Writing at 0x000ea9a0 [==============================] 100.0% 568671/568671 bytes...
Wrote 895392 bytes (568671 compressed) at 0x00010000 in 50.5 seconds (141.8 kbit/s).
Verifying written data...
Hash of data verified.
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 3072 bytes to 138...
Writing at 0x00008000 [                              ]   0.0% 0/138 bytes...
Writing at 0x00008c00 [==============================] 100.0% 138/138 bytes...
Wrote 3072 bytes (138 compressed) at 0x00008000 in 0.0 seconds (910.0 kbit/s).
Verifying written data...
Hash of data verified.

Hard resetting via RTS pin...