Flashing ESP32 DevKitC without jtag debugger?

Sysprogs forums Forums VisualGDB Flashing ESP32 DevKitC without jtag debugger?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #11425
    parsec67
    Participant

    I don’t have a jtag debugger for this device and not sure if I really need one atm.  Is it at all possible to flash the .bin file built with MSBuild using the ESP Flash download tool?

    #11429
    support
    Keymaster

    Hi,

    The .bin file produced by MSBuild won’t be helpful, however you can use the esptool.py tool to program the ELF file (usually same name as the .bin file and no extension). To get the exact esptool.py arguments for programming the file, please try programming any project built with the command-line ESP-IDF tools and check the build/programming log.

    #11432
    parsec67
    Participant

    Thanks, yes with esptool.py it looks straightforward, first convert elf to bin, then flash

    python esptool.py --chip esp32 elf2image myapp_esp32
    
    python esptool.py --chip esp32 --port COM7 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x10000 myapp_esp32.bin

    This works directly under Windows Python 2.7 after installing pyserial so no dependence on the Espressif’s msys2 distribution.

    I would have preferred a built-in automated way of flashing via USB directly after build, is this something that could be added in future releases?

    #11439
    support
    Keymaster

    Hi,

    Yes, we will support this out-of-the-box once the ESP32 gdb stub supports full debugging (so VisualGDB will be able to provide complete debugging experience without JTAG).

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.