OpenOCD Debug with FT232R and WROOM32

yannick818
Posts: 2
Joined: Thu Jul 16, 2020 8:56 am

OpenOCD Debug with FT232R and WROOM32

Postby yannick818 » Thu Jul 16, 2020 9:09 am

Hi There,
I'm trying to debug with my FT232R an OpenOCD.
The wires seems correct. I followed these Informations: http://openocd.org/doc/html/Debug-Adapt ... ation.html

On OpenOCD the following happens: "openocd -f interface/ft232r.cfg -f board/esp-wroom-32.cfg"

Code: Select all

Open On-Chip Debugger  v0.10.0-esp32-20190313 (2019-03-13-09:57)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
adapter speed: 1000 kHz
Warn : Transport "jtag" was already selected
adapter speed: 20000 kHz
Info : Configured 2 cores
esp32 interrupt mask on
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 3000 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 : Detected debug stubs @ 3ffb29a0 on core0 of target 'esp32'
Info : Listening on port 3333 for gdb connections
---- Invoked GDB here ----
Info : accepting 'gdb' connection on tcp/3333
Error: No symbols for FreeRTOS
Error: Exception reading f64r_lo!

Info : Target halted. PRO_CPU: PC=0x00000000 (active)    APP_CPU: PC=0x00000000
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
Error: timed out while waiting for target halted / 4 - 2
Error: Exception reading f64r_lo!

Info : Target halted. PRO_CPU: PC=0x40091704 (active)    APP_CPU: PC=0x00000000
Info : Detected debug stubs @ 3ffb29a0 on core0 of target 'esp32'
Error: xtensa_wait_algorithm: not halted 0, pc 0x40091704, ps 0x60025
Error: Failed to wait algorithm (-302)!
Error: Algorithm run failed (-302)!
Error: Failed to run flasher stub (-302)!
Warn : Failed to get flash mappings (-302)!
Error: Target is already running an algorithm
Error: Failed to start algorithm (-4)!
Error: Algorithm run failed (-4)!
Error: Failed to run flasher stub (-4)!
Error: Target is already running an algorithm
Error: Failed to start algorithm (-4)!
Error: Algorithm run failed (-4)!
Error: Failed to run flasher stub (-4)!
Error: Failed to probe flash, size 0 KB
Error: auto_probe failed
Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'.
Error: attempted 'gdb' connection rejected
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
shutdown command invoked
Info : Restore debug stubs @ 3ffb29a0 on core0 of target 'esp32'
Warn : Flash driver of esp32.flash does not support free_driver_priv()
Warn : Flash driver of irom does not support free_driver_priv()
Warn : Flash driver of drom does not support free_driver_priv()
In the other terminal I type these: "xtensa-esp32-elf-gdb -x gdbinit build/hello-world.elf"

Code: Select all

GNU gdb (crosstool-NG esp-2019r2) 8.1.0.20180627-git
Copyright (C) 2018 Free Software Foundation, Inc.
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.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-host_w64-mingw32 --target=xtensa-esp32-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from build/hello-world.elf...done.
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
Ignoring packet error, continuing...
gdbinit:1: Error in sourced command file:
Remote replied unexpectedly to 'vMustReplyEmpty': timeout
These errors seam suspicious :
Error: No symbols for FreeRTOS
Error: Exception reading f64r_lo!

Can someone help me solve this?
Thanks!

yannick818
Posts: 2
Joined: Thu Jul 16, 2020 8:56 am

Re: OpenOCD Debug with FT232R and WROOM32

Postby yannick818 » Wed Jul 22, 2020 5:54 am

Used ftdi 2232h and now it works...
RTOS Error is still present, but this seems to have no effect.

Who is online

Users browsing this forum: JessPinkman and 41 guests