ESP32: Difference between revisions
Content added Content deleted
Line 21: | Line 21: | ||
== Flashing the Bootloader == |
|||
⚫ | |||
⚫ | |||
To flash all build output, run 'make flash' or: |
|||
python /home/virtpc/esp/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port COM4 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio - flash_freq 40m --flash_size detect |
|||
0x1000 /home/virtpc/esp/esp-idf/examples/system/ota/native_ota_example/build/bootloader/bootloader.bin |
|||
0x10000 /home/virtpc/esp/esp-idf/examples/system/ota/native_ota_example/build/sntp.bin |
|||
0x8000 /home/virtpc/esp/esp-idf/examples/system/ota/native_ota_example/build/partitions_two_ota.bin |
|||
Here you can see that 3 bin files are written to the following addresses: |
|||
0x1000 bootloader.bin, |
|||
0x8000 partitions_two_ota.bin. |
|||
0x10000 native_ota_example.bin - application, |
|||
If you get this error in console, Likely bootloader is corrupt or erased: |
|||
⚫ | |||
Download new bootloader file from this Zip file: |
|||
https://docs.espressif.com/projects/esp-at/en/release-v2.4.0.0/esp32c3/AT_Binary_Lists/ESP32-C3_AT_binaries.html |
https://docs.espressif.com/projects/esp-at/en/release-v2.4.0.0/esp32c3/AT_Binary_Lists/ESP32-C3_AT_binaries.html |
||
Install the bootloader at 0x0 location: |
|||
esptool.py --port /dev/ttyACM0 --baud 9600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_size detect 0x0 bootloader.bin |
esptool.py --port /dev/ttyACM0 --baud 9600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_size detect 0x0 bootloader.bin |
||
* If you get this error while installing both bootloader & the Application files: |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
You need to give proper space between the files: |
|||
0x1000 bootloader.bin 0x8000 esp32-idf4-20191220-v1.12.bin |
|||
* If you see these error in Console: |
|||
⚫ | |||
⚫ | |||
⚫ | |||
Or: |
|||
⚫ | |||
⚫ | |||
⚫ | |||
Most likely the Bootloader is installed but there is no application installed or is not bootable. |
|||
⚫ | |||
⚫ | |||
⚫ | |||
= Projects = |
= Projects = |