Hi @sinanakman, thank you for the reply!
It is a custom board, I'm using the FTDI FT4232HL just like the NXP EVK board with iMX8M.
I think the problem is my configuration because now I could start OpenOCD with this file:
adapter driver ftdi
ftdi_vid_pid 0x0403 0x6011
ftdi_channel 1
ftdi_layout_init 0x00f8 0x000b
ftdi_layout_signal RESET_B -data 0x0010 -oe 0x0010
ftdi_layout_signal nSRST -data 0x0020 -oe 0x0020
ftdi_layout_signal IO_nRST -data 0x0040 -oe 0x0040
ftdi_layout_signal ONOFF_B -data 0x0080 -oe 0x0080
transport select jtag
adapter speed 1000
# board has an i.MX8MM with 4 Cortex-A53 cores
set CHIPNAME imx8mm
set CHIPCORES 4
# Source SOC Configuration
source [find target/imx8m.cfg]
init
${CHIPNAME}.m4 arp_examine allow-defer
I think I'm close, now OpenOCD starts and gives me these messages:
Open On-Chip Debugger 0.11.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : clock speed 1000 kHz
Info : JTAG tap: imx8mm.cpu tap/device found: 0x5ba00477 (mfg: 0x23b (ARM Ltd), part: 0xba00, ver: 0x5)
Info : imx8mm.a53.0: hardware has 6 breakpoints, 4 watchpoints
Info : starting gdb server for imx8mm.a53.0 on 3333
Info : Listening on port 3333 for gdb connections
Info : starting gdb server for imx8mm.m4 on 3334
Info : Listening on port 3334 for gdb connections
Info : Deferring arp_examine of imx8mm.m4
Info : Use arp_examine command to examine it manually!
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
I have JTAG from cortex A on port 0 and cortex M on port 1 of the FTDI. I think the problem is with this line:
Info : Use arp_examine command to examine it manually!
Because when I try to connect with the GDB server, I get this error:
GNU gdb (GNU Toolchain for the Arm Architecture 11.2-2022.02 (arm-11.14)) 11.2.90.20220202-git
Copyright (C) 2022 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=x86_64-pc-linux-gnu --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.linaro.org/>.
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 hello_world.elf...
(gdb) target extended-remote localhost:3334
Remote debugging using localhost:3334
Remote connection closed
(gdb)
And on OpenOCD, I get this error:
Open On-Chip Debugger 0.11.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : clock speed 1000 kHz
Info : JTAG tap: imx8mm.cpu tap/device found: 0x5ba00477 (mfg: 0x23b (ARM Ltd), part: 0xba00, ver: 0x5)
Info : imx8mm.a53.0: hardware has 6 breakpoints, 4 watchpoints
Info : starting gdb server for imx8mm.a53.0 on 3333
Info : Listening on port 3333 for gdb connections
Info : starting gdb server for imx8mm.m4 on 3334
Info : Listening on port 3334 for gdb connections
Info : Deferring arp_examine of imx8mm.m4
Info : Use arp_examine command to examine it manually!
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : accepting 'gdb' connection on tcp/3334
Error: Target not examined yet
Error executing event gdb-attach on target imx8mm.m4:
Info : New GDB Connection: 1, Target imx8mm.m4, state: examine deferred
Error: Target imx8mm.m4 not examined yet, refuse gdb connection 1!
Error: attempted 'gdb' connection rejected
Do you know how can I use this arp_examine to solve this issue?
Regards,
Hiago.