zephyr/scripts/support
Leandro Pereira f0b4e174d7 esp32: Use esptool.py to flash with 'make flash'
This flashes Zephyr at 0x1000: that's where the first stage bootloader,
part of the ESP32 ROM, expects to find an "image header".

The second-stage bootloader, part of ESP-IDF, isn't used by the Zephyr
port.  However, the bootloader can be used if desired; please refer to
the ESP-IDF documentation on how to set up partitions tables and use
the bootloader.

The following environment variables will affect the ESP32 flashing
process:

  Variable              Default value
  ESP_DEVICE            /dev/ttyUSB0
  ESP_BAUD_RATE         921600
  ESP_FLASH_SIZE        detect
  ESP_FLASH_FREQ        40m
  ESP_FLASH_MODE        dio
  ESP_TOOL              espidf

It's impossible to determine which serial port the ESP32 board is
connected to, as it uses a generic RS232-USB converter.  The default of
/dev/ttyUSB0 is provided as that's often the assigned name on a Linux
machine without any other such converters.

The baud rate of 921600bps is recommended.  If experiencing issues when
flashing, try halving the value a few times (460800, 230400, 115200,
etc).  It might be necessary to change the flash frequency or the flash
mode; please refer to the esptool documentation for guidance on these
settings.

If ${ESP_TOOL} is set to "espidf", the esptool.py script found within
ESP-IDF will be used.  Otherwise, this variable is handled as a path to
the tool.

Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
2017-06-21 12:35:49 -04:00
..
arc_debugger.sh boards: Update arc em_starterkit support from 2.2 to 2.3 2017-05-19 15:58:41 +02:00
bossa-flash.sh boards: arduino_due: Add make flash support 2017-03-01 12:46:06 +00:00
dfuutil.sh build: honor V=1 when flashing via DFU 2017-05-08 09:15:09 -04:00
esp32.sh esp32: Use esptool.py to flash with 'make flash' 2017-06-21 12:35:49 -04:00
jlink.sh scripts: Add support for 'make debug' using Segger JLink on NXP boards 2017-05-15 13:22:54 -04:00
nios2.sh altera_max10: default to UFM flashing 2016-07-28 22:25:48 +00:00
nrf_flash.sh scripts:nrf: Add 'make flash' for nrf boards. 2017-03-20 13:44:58 +00:00
openocd.sh scripts: openocd.sh: Honour V=1 2017-04-27 13:01:08 +00:00
pyocd.sh scripts: Add flash and debug support using pyOCD on NXP boards 2017-05-15 13:22:54 -04:00
qemu.sh build: use target 'debugserver' for Qemu debugging 2017-01-10 20:20:46 +00:00
quartus-flash.py nios2: add flashing/debug scripts 2016-06-10 15:22:40 +00:00
xt-gdb.sh xtensa: fix 'make debug' for xt-sim targets 2017-06-12 18:01:13 -04:00