build: Replace 'make download' with 'make flash'

This commit is contained in:
Alan C. Assis
2021-10-14 10:57:21 -03:00
committed by Gustavo Henrique Nihei
parent a7d8d9dd98
commit e0389ce1fb
11 changed files with 40 additions and 34 deletions
@@ -58,14 +58,14 @@ The `esptool.py` command to flash all the binaries is::
However, this is also included in the build process and we can build and flash with::
make download ESPTOOL_PORT=<port> ESPTOOL_BINDIR=../esp-bins
make flash ESPTOOL_PORT=<port> ESPTOOL_BINDIR=../esp-bins
Where ``<port>`` is typically ``/dev/ttyUSB0`` or similar and ``../esp-bins`` is
the path to the folder containing the bootloader and the partition table
for the ESP32-C3 as explained above.
Note that this step is required only one time. Once the bootloader and partition
table are flashed, we don't need to flash them again. So subsequent builds
would just require: ``make download ESPTOOL_PORT=/dev/ttyUSBXX``
would just require: ``make flash ESPTOOL_PORT=/dev/ttyUSBXX``
Debugging with OpenOCD
======================