ESP32 WROOM-32D, JTAG Failing to flash unless in serial bootloader mode

Sysprogs forums Forums VisualGDB ESP32 WROOM-32D, JTAG Failing to flash unless in serial bootloader mode

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32500
    felixcollins
    Participant

    I have a custom board with an ESP32-WROOM-32D module. It was programming and debugging just fine using the TumpaLite FTDI board. After updating to VGDB 5.6R4 and IDF4.4 I can no longer program via JTAG unless I reset into the bootloader first. Logs follow…

    Log after manually resetting the ESP32 into serial bootloader mode (this works despite the warnings).

    
    
    C:\Users\felix\AppData\Local\VisualGDB\EmbeddedDebugPackages\com.sysprogs.esp32.core\bin\openocd.exe -c "gdb_port 63030" -c "telnet_port 63028" -f interface/ftdi/tumpa-lite.cfg -c "adapter_khz 1000" -f target/esp32.cfg -c "echo VisualGDB_OpenOCD_Ready"
    Open On-Chip Debugger 0.10.0 (2022-01-12)
    Licensed under GNU GPL v2
    libusb1 09e75e98b4d9ea7909e8837b7a3f00dda4589dc3
    For bug reports, read
            http://openocd.org/doc/doxygen/bugs.html
    DEPRECATED! use 'adapter speed' not 'adapter_khz'
    adapter speed: 1000 kHz
    
    
    
    VisualGDB_OpenOCD_Ready
    Info : Listening on port 6666 for tcl connections
    Info : Listening on port 63028 for telnet connections
    Info : clock speed 1000 kHz
    Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Warn : target esp32.cpu1 examination failed
    Info : esp32.cpu0: Debug controller was reset.
    Info : esp32.cpu0: Core was reset.
    Info : starting gdb server for esp32.cpu0 on 63030
    Info : Listening on port 63030 for gdb connections
    Info : accepting 'gdb' connection on tcp/63030
    Info : esp32.cpu0: Target halted, PC=0x400093D2, debug_reason=00000000
    Info : Set GDB target to 'esp32.cpu0'
    Warn : No symbols for FreeRTOS!
    Info : esp32.cpu0: Target halted, PC=0x40092AEE, debug_reason=00000001
    Info : Flash mapping 0: 0x10020 -> 0x3f400020, 152 KB
    Info : Flash mapping 1: 0x40020 -> 0x400d0020, 621 KB
    Info : esp32.cpu0: Target halted, PC=0x40092AEE, debug_reason=00000001
    Info : Auto-detected flash bank 'esp32.cpu0.flash' size 4096 KB
    Info : Using flash bank 'esp32.cpu0.flash' size 4096 KB
    Info : esp32.cpu0: Target halted, PC=0x40092AEE, debug_reason=00000001
    Info : Flash mapping 0: 0x10020 -> 0x3f400020, 152 KB
    Info : Flash mapping 1: 0x40020 -> 0x400d0020, 621 KB
    Info : Using flash bank 'esp32.cpu0.irom' size 624 KB
    Info : esp32.cpu0: Target halted, PC=0x40092AEE, debug_reason=00000001
    Info : Flash mapping 0: 0x10020 -> 0x3f400020, 152 KB
    Info : Flash mapping 1: 0x40020 -> 0x400d0020, 621 KB
    Info : Using flash bank 'esp32.cpu0.drom' size 156 KB
    Info : New GDB Connection: 1, Target esp32.cpu0, state: halted
    Warn : Prefer GDB command "target extended-remote 63030" instead of "target remote 63030"
    Error: Too large number of threads 3201726101!
    force hard breakpoints
    Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : esp32.cpu0: Debug controller was reset.
    Info : esp32.cpu0: Core was reset.
    Info : esp32.cpu0: Target halted, PC=0x500000CF, debug_reason=00000000
    Info : esp32.cpu0: Core was reset.
    Info : esp32.cpu0: Target halted, PC=0x40000400, debug_reason=00000000
    Info : esp32.cpu1: Debug controller was reset.
    Info : esp32.cpu1: Core was reset.
    Info : esp32.cpu1: Target halted, PC=0x40000400, debug_reason=00000000
    Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : esp32.cpu0: Debug controller was reset.
    Info : esp32.cpu0: Core was reset.
    Info : esp32.cpu0: Target halted, PC=0x500000CF, debug_reason=00000000
    Info : esp32.cpu0: Core was reset.
    Info : esp32.cpu0: Target halted, PC=0x40000400, debug_reason=00000000
    Info : esp32.cpu1: Debug controller was reset.
    Info : esp32.cpu1: Core was reset.
    Info : esp32.cpu1: Target halted, PC=0x40000400, debug_reason=00000000
    Info : esp32.cpu0: Target halted, PC=0x40092AEE, debug_reason=00000001
    Info : Flash mapping 0: 0x10020 -> 0x3f400020, 152 KB
    Info : Flash mapping 1: 0x40020 -> 0x400d0020, 621 KB
    Info : esp32.cpu0: Target halted, PC=0x40092AEE, debug_reason=00000001
    Info : Auto-detected flash bank 'esp32.cpu1.flash' size 4096 KB
    Info : Using flash bank 'esp32.cpu1.flash' size 4096 KB
    ** Programming Started **
    Info : esp32.cpu0: Target halted, PC=0x40092AEE, debug_reason=00000001
    Info : esp32.cpu0: Target halted, PC=0x40092AEE, debug_reason=00000001
    Info : PROF: Data transferred in 427.193 ms @ 46.8172 KB/s
    Info : esp32.cpu0: Target halted, PC=0x40092AEE, debug_reason=00000001
    ** Programming Finished **
    Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : esp32.cpu0: Debug controller was reset.
    Info : esp32.cpu0: Core was reset.
    Info : esp32.cpu0: Target halted, PC=0x500000CF, debug_reason=00000000
    Info : esp32.cpu0: Core was reset.
    Info : esp32.cpu0: Target halted, PC=0x40000400, debug_reason=00000000
    Info : esp32.cpu1: Debug controller was reset.
    Info : esp32.cpu1: Core was reset.
    Info : esp32.cpu1: Target halted, PC=0x40000400, debug_reason=00000000
    ** Programming Started **
    Info : esp32.cpu0: Target halted, PC=0x40092AEE, debug_reason=00000001
    Info : esp32.cpu0: Target halted, PC=0x40092AEE, debug_reason=00000001
    Info : PROF: Data transferred in 19879.2 ms @ 46.0782 KB/s
    Info : esp32.cpu0: Target halted, PC=0x40092AEE, debug_reason=00000001
    ** Programming Finished **
    Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : esp32.cpu0: Debug controller was reset.
    Info : esp32.cpu0: Core was reset.
    Info : esp32.cpu0: Target halted, PC=0x500000CF, debug_reason=00000000
    Info : esp32.cpu0: Core was reset.
    Info : esp32.cpu0: Target halted, PC=0x40000400, debug_reason=00000000
    Info : esp32.cpu1: Debug controller was reset.
    Info : esp32.cpu1: Core was reset.
    Info : esp32.cpu1: Target halted, PC=0x40000400, debug_reason=00000000
    ** Programming Started **
    Info : esp32.cpu0: Target halted, PC=0x40092AEE, debug_reason=00000001
    Info : esp32.cpu0: Target halted, PC=0x40092AEE, debug_reason=00000001
    Info : PROF: Data transferred in 113.795 ms @ 35.1509 KB/s
    Info : esp32.cpu0: Target halted, PC=0x40092AEE, debug_reason=00000001
    ** Programming Finished **
    Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : esp32.cpu0: Debug controller was reset.
    Info : esp32.cpu0: Core was reset.
    Info : esp32.cpu0: Target halted, PC=0x500000CF, debug_reason=00000000
    Info : esp32.cpu0: Core was reset.
    Info : esp32.cpu0: Target halted, PC=0x40000400, debug_reason=00000000
    Info : esp32.cpu1: Debug controller was reset.
    Info : esp32.cpu1: Core was reset.
    Info : esp32.cpu1: Target halted, PC=0x40000400, debug_reason=00000000
    ** Programming Started **
    Info : esp32.cpu0: Target halted, PC=0x40092AEE, debug_reason=00000001
    Info : esp32.cpu0: Target halted, PC=0x40092AEE, debug_reason=00000001
    Info : PROF: Data transferred in 175.751 ms @ 45.5189 KB/s
    Info : esp32.cpu0: Target halted, PC=0x40092AEE, debug_reason=00000001
    ** Programming Finished **
    Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : esp32.cpu0: Debug controller was reset.
    Info : esp32.cpu0: Core was reset.
    Info : esp32.cpu0: Target halted, PC=0x500000CF, debug_reason=00000000
    Info : esp32.cpu0: Core was reset.
    Info : esp32.cpu0: Target halted, PC=0x40000400, debug_reason=00000000
    Info : esp32.cpu1: Debug controller was reset.
    Info : esp32.cpu1: Core was reset.
    Info : esp32.cpu1: Target halted, PC=0x40000400, debug_reason=00000000
    
    

    GDB Log if I try to program and run while my application is running. This fails to program flash.

    VisualGDB is licensed to Andrew Dixon at Intranel LTD
    C:\SysGCC\esp32\tools\xtensa-esp32-elf\esp-2021r2-patch1\xtensa-esp32-elf\bin\xtensa-esp32-elf-gdb.exe --interpreter mi "C:/Users/felix/source/Thor/fw-10320-sensor-hub-esp32-firmware/FW-10320-sensor-hub-esp32/build/VisualGDB/Debug/FW-10320-sensor-hub-esp32.elf"
    -gdb-version
    C:\SysGCC\esp32\tools\xtensa-esp32-elf\esp-2021r2-patch1\xtensa-esp32-elf\bin\xtensa-esp32-elf-gdb.exe: warning: Couldn't determine a path for the index cache directory.
    =thread-group-added,id="i1"
    ~"GNU gdb (crosstool-NG esp-2021r2) 9.2.90.20200913-git\n"
    ~"Copyright (C) 2020 Free Software Foundation, Inc.\n"
    ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law."
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    ~"\nType \"show copying\" and \"show warranty\" for details.\n"
    ~"This GDB was configured as \"--host=i686-host_w64-mingw32 --target=xtensa-esp32-elf\".\n"
    ~"Type \"show configuration\" for configuration details.\n"
    ~"For bug reporting instructions, please see:\n"
    ~"<http://www.gnu.org/software/gdb/bugs/>.\n"
    ~"Find the GDB manual and other documentation resources online at:\n <http://www.gnu.org/software/gdb/documentation/>."
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.
    ~"\n\n"
    ~"For help, type \"help\".\n"
    ~"Type \"apropos word\" to search for commands related to \"word\"...\n"
    ~"Reading symbols from C:/Users/felix/source/Thor/fw-10320-sensor-hub-esp32-firmware/FW-10320-sensor-hub-esp32/build/VisualGDB/Debug/FW-10320-sensor-hub-esp32.elf...\n"
    ~"GNU gdb (crosstool-NG esp-2021r2) 9.2.90.20200913-git\n"
    ~"Copyright (C) 2020 Free Software Foundation, Inc.\n"
    ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law."
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    ~"\nType \"show copying\" and \"show warranty\" for details.\n"
    ~"This GDB was configured as \"--host=i686-host_w64-mingw32 --target=xtensa-esp32-elf\".\n"
    ~"Type \"show configuration\" for configuration details.\n"
    ~"For bug reporting instructions, please see:\n"
    ~"<http://www.gnu.org/software/gdb/bugs/>.\n"
    ~"Find the GDB manual and other documentation resources online at:\n <http://www.gnu.org/software/gdb/documentation/>."
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.
    ~"\n\n"
    ~"For help, type \"help\".\n"
    ~"Type \"apropos word\" to search for commands related to \"word\".\n"
    ^done
    -list-features
    ^done,features=["frozen-varobjs","pending-breakpoints","thread-info","data-read-memory-bytes","breakpoint-notifications","ada-task-info","language-option","info-gdb-mi-command","undefined-command-error-code","exec-run-start-option","data-disassemble-a-option"]
    -gdb-set verbose on
    ^done
    -gdb-set disassembly-flavor intel
    ^error,msg="No symbol \"disassembly\" in current context."
    -gdb-set print demangle off
    ^done
    set remotetimeout 60
    &"set remotetimeout 60\n"
    =cmd-param-changed,param="remotetimeout",value="60"
    ^done
    target remote :49410
    &"target remote :49410\n"
    ~"Remote debugging using :49410\n"
    =thread-group-started,id="i1",pid="42000"
    =thread-created,id="1",group-id="i1"
    ~"Reading in symbols for C:/SysGCC/esp32/esp-idf/v4.4/components/esp_pm/pm_impl.c..."
    ~"done.\n"
    ~"0x4014bfef in esp_pm_impl_waiti () at C:/SysGCC/esp32/esp-idf/v4.4/components/hal/esp32/include/hal/cpu_ll.h:183\n"
    ~"183\t asm volatile (\"waiti 0\\n\");\n"
    *stopped,frame={addr="0x4014bfef",func="esp_pm_impl_waiti",args=[],file="C:/SysGCC/esp32/esp-idf/v4.4/components/hal/esp32/include/hal/cpu_ll.h",fullname="C:\\SysGCC\\esp32\\esp-idf\\v4.4\\components\\hal\\esp32\\include\\hal\\cpu_ll.h",line="183",arch="xtensa"},thread-id="1",stopped-threads="all"
    ^done
    info shared
    &"info shared\n"
    ~"No shared libraries loaded at this time.\n"
    ^done
    mon gdb_breakpoint_override hard
    &"mon gdb_breakpoint_override hard\n"
    @"force hard breakpoints\n"
    ^done
    mon reset halt
    &"mon reset halt\n"
    @"JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)\n"
    @"JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)\n"
    @"esp32.cpu0: Debug controller was reset.\n"
    @"esp32.cpu0: Core was reset.\n"
    @"esp32.cpu0: Target halted, PC=0x500000CF, debug_reason=00000000\n"
    @"esp32.cpu0: Core was reset.\n"
    @"esp32.cpu0: Target halted, PC=0x40000400, debug_reason=00000000\n"
    @"esp32.cpu1: Debug controller was reset.\n"
    @"esp32.cpu1: Core was reset.\n"
    @"esp32.cpu1: Target halted, PC=0x40000400, debug_reason=00000000\n"
    ^done
    mon program_esp "C:/Users/felix/source/Thor/fw-10320-sensor-hub-esp32-firmware/FW-10320-sensor-hub-esp32/build/VisualGDB/Debug/bootloader/bootloader.bin" 0x1000
    &"mon program_esp \"C:/Users/felix/source/Thor/fw-10320-sensor-hub-esp32-firmware/FW-10320-sensor-hub-esp32/build/VisualGDB/Debug/bootloader/bootloader.bin\" 0x1000\n"
    @"JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)\n"
    @"JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)\n"
    @"esp32.cpu0: Debug controller was reset.\n"
    @"esp32.cpu0: Core was reset.\n"
    @"esp32.cpu0: Target halted, PC=0x500000CF, debug_reason=00000000\n"
    @"esp32.cpu0: Core was reset.\n"
    @"esp32.cpu0: Target halted, PC=0x40000400, debug_reason=00000000\n"
    @"esp32.cpu1: Debug controller was reset.\n"
    @"esp32.cpu1: Core was reset.\n"
    @"esp32.cpu1: Target halted, PC=0x40000400, debug_reason=00000000\n"
    @"esp32.cpu0: Target halted, PC=0x400003C0, debug_reason=00000001\n"
    @"Empty flash mapping!\n"
    @"Failed to get flash mappings (0)!\n"
    @"esp32.cpu0: Target halted, PC=0x400003C0, debug_reason=00000001\n"
    @"Failed to get flash size!\n"
    @"esp32.cpu0: Target halted, PC=0x400003C0, debug_reason=00000001\n"
    @"Failed to get flash size!\n"
    @"Failed to probe flash, size 0 KB\n"
    @"auto_probe failed\n"
    @"Failed to find bank 'esp32.cpu1.flash'!\n"
    @"\n"
    ^done
    -target-disconnect
    =thread-group-exited,id="i1"
    ^done
    -gdb-exit
    ^exit

    Log from OPENOCD when it fails…

    C:\Users\felix\AppData\Local\VisualGDB\EmbeddedDebugPackages\com.sysprogs.esp32.core\bin\openocd.exe -c "gdb_port 49410" -c "telnet_port 49408" -f interface/ftdi/tumpa-lite.cfg -c "adapter_khz 1000" -f target/esp32.cfg -c "echo VisualGDB_OpenOCD_Ready"
    Open On-Chip Debugger 0.10.0 (2022-01-12)
    Licensed under GNU GPL v2
    libusb1 09e75e98b4d9ea7909e8837b7a3f00dda4589dc3
    For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
    DEPRECATED! use 'adapter speed' not 'adapter_khz'
    adapter speed: 1000 kHz

    VisualGDB_OpenOCD_Ready
    Info : Listening on port 6666 for tcl connections
    Info : Listening on port 49408 for telnet connections
    Info : clock speed 1000 kHz
    Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : esp32.cpu0: Debug controller was reset.
    Info : esp32.cpu0: Core was reset.
    Info : esp32.cpu1: Debug controller was reset.
    Info : esp32.cpu1: Core was reset.
    Info : starting gdb server for esp32.cpu0 on 49410
    Info : Listening on port 49410 for gdb connections
    Info : accepting 'gdb' connection on tcp/49410
    Info : esp32.cpu0: Target halted, PC=0x4014BFEF, debug_reason=00000000
    Info : Set GDB target to 'esp32.cpu0'
    Info : esp32.cpu1: Target halted, PC=0x400832F0, debug_reason=00000000
    Warn : No symbols for FreeRTOS!
    Info : esp32.cpu0: Target halted, PC=0x4009049C, debug_reason=00000001
    Error: Failed to get flash maps (102)!
    Warn : Failed to get flash mappings (-4)!
    Info : esp32.cpu0: Target halted, PC=0x4009049C, debug_reason=00000001
    Info : esp32.cpu0: Target halted, PC=0x4009049C, debug_reason=00000001
    Info : Auto-detected flash bank 'esp32.cpu0.flash' size 0 KB
    Info : Using flash bank 'esp32.cpu0.flash' size 0 KB
    Info : esp32.cpu0: Target halted, PC=0x4009049C, debug_reason=00000001
    Error: Failed to get flash maps (102)!
    Warn : Failed to get flash mappings (-4)!
    Info : esp32.cpu0: Target halted, PC=0x4009049C, debug_reason=00000001
    Info : Using flash bank 'esp32.cpu0.irom' size 0 KB
    Info : esp32.cpu0: Target halted, PC=0x4009049C, debug_reason=00000001
    Error: Failed to get flash maps (102)!
    Warn : Failed to get flash mappings (-4)!
    Info : esp32.cpu0: Target halted, PC=0x4009049C, debug_reason=00000001
    Info : Using flash bank 'esp32.cpu0.drom' size 0 KB
    Info : New GDB Connection: 1, Target esp32.cpu0, state: halted
    Warn : Prefer GDB command "target extended-remote 49410" instead of "target remote 49410"
    force hard breakpoints
    Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : esp32.cpu0: Debug controller was reset.
    Info : esp32.cpu0: Core was reset.
    Info : esp32.cpu0: Target halted, PC=0x500000CF, debug_reason=00000000
    Info : esp32.cpu0: Core was reset.
    Info : esp32.cpu0: Target halted, PC=0x40000400, debug_reason=00000000
    Info : esp32.cpu1: Debug controller was reset.
    Info : esp32.cpu1: Core was reset.
    Info : esp32.cpu1: Target halted, PC=0x40000400, debug_reason=00000000
    Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : esp32.cpu0: Debug controller was reset.
    Info : esp32.cpu0: Core was reset.
    Info : esp32.cpu0: Target halted, PC=0x500000CF, debug_reason=00000000
    Info : esp32.cpu0: Core was reset.
    Info : esp32.cpu0: Target halted, PC=0x40000400, debug_reason=00000000
    Info : esp32.cpu1: Debug controller was reset.
    Info : esp32.cpu1: Core was reset.
    Info : esp32.cpu1: Target halted, PC=0x40000400, debug_reason=00000000
    Info : esp32.cpu0: Target halted, PC=0x400003C0, debug_reason=00000001
    Warn : Empty flash mapping!
    Warn : Failed to get flash mappings (0)!
    Info : esp32.cpu0: Target halted, PC=0x400003C0, debug_reason=00000001
    Error: Failed to get flash size!
    Info : esp32.cpu0: Target halted, PC=0x400003C0, debug_reason=00000001
    Error: Failed to get flash size!
    Error: Failed to probe flash, size 0 KB
    Error: auto_probe failed
    Error: Failed to find bank 'esp32.cpu1.flash'!

     

    #32501
    support
    Keymaster

    Hi,

    This looks like an issue between the module and the Espressif’s port of OpenOCD, and hence is not directly controlled by VisualGDB. Please consider contacting Espressif for further help with this issue.

    You can also try reproducing it by manually running the OpenOCD build from the Espressif github repository. It it works better, we can help you configure VisualGDB to replicate the correct behavior.

    Update: we got another report of a similar issue in this thread, and the workaround suggested on the Espressif forums is to pass the “esp appimage_offset 0x20000” command to OpenOCD. With VisualGDB, this can be done by adding the following text to the end of OpenOCD command line in VisualGDB Project Properties -> Debug Settings -> Advanced:

    -c "esp appimage_offset 0x20000"
    • This reply was modified 1 year, 8 months ago by support.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.