esp32.cfg 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #
  2. # Example configuration file to hook up an ESP32 module or board to a JTAG
  3. # adapter. Please modify this file to your local setup.
  4. #
  5. #
  6. # Include the configuration for the JTAG adapter. We use the Tian TUMPA here.
  7. # If you have a different interface, please edit this to include the
  8. # configuration file of yours.
  9. source [find interface/ftdi/tumpa.cfg]
  10. # The ESP32 only supports JTAG.
  11. transport select jtag
  12. # The speed of the JTAG interface, in KHz. If you get DSR/DIR errors (and they
  13. # do not relate to OpenOCD trying to read from a memory range without physical
  14. # memory being present there), you can try lowering this.
  15. adapter_khz 200
  16. # With no variables set, openocd will configure JTAG for the two cores of the ESP32 and
  17. # will do automatic RTOS detection. This can be be adjusted by uncommenting any of the
  18. # following lines:
  19. # Only configure the PRO CPU
  20. #set ESP32_ONLYCPU 1
  21. # Only configure the APP CPU
  22. #set ESP32_ONLYCPU 2
  23. # Disable RTOS support
  24. #set ESP32_RTOS none
  25. # Force RTOS to be FreeRTOS
  26. #set ESP32_RTOS FreeRTOS
  27. #Source the ESP32 configuration file
  28. source [find target/esp32.cfg]
  29. # The TDI pin of ESP32 is also a bootstrap pin that selects the voltage the SPI flash
  30. # chip runs at. When a hard reset happens (e.g. because someone switches the board off
  31. # and on) the ESP32 will use the current TDI value as the bootstrap value because the
  32. # JTAG adapter overrides the pull-up or pull-down resistor that is supposed to do the
  33. # bootstrapping. These lines basically set the idle value of the TDO line to a
  34. # specified value, therefore reducing the chance of a bad bootup due to a bad flash
  35. # voltage greatly.
  36. # Enable this for 1.8V SPI flash
  37. esp108 flashbootstrap 1.8
  38. # Enable this for 3.3V SPI flash
  39. #esp108 flashbootstrap 3.3