From: Hiago F. <hia...@gm...> - 2022-09-01 16:28:53
|
Hello all! I'm new to OpenOCD, so I'm sorry if I make some mistakes here. I have an iMX8M Mini and it has 4x Cortex A73 and 1x Cortex M4F. I'm trying to debug the auxiliary core, the Cortex M4. The JTAG is connected to channel 1 of FT4232 chip. Below is the code I've been trying to run: *adapter driver ftdiftdi vid_pid 0x0403 0x6011ftdi channel 1ftdi 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 0x0080transport select jtagadapter speed 1000# board has i.MX8MM with 4 Cortex-A53 coresset CHIPNAME imx8mmset CHIPCORES 4# Source SOC Configurationsource [find imx8m.cfg]* I also changed the file *imx8m.cfg*, and changed the *-defer-examine*: *# declare the auxiliary Cortex-M4 core on AP #4#target create ${_CHIPNAME}.m4 cortex_m -dap ${_CHIPNAME}.dap -ap-num 4 \# -defer-examine# AHB-AP for direct access to soc bustarget create ${_CHIPNAME}.ahb mem_ap -dap ${_CHIPNAME}.dap -ap-num 0# default target is A53 core 0targets $_TARGETNAME.0# declare the auxiliary Cortex-M4 core on AP #4target create ${_CHIPNAME}.m4 cortex_m -dap ${_CHIPNAME}.dap -ap-num 4* I tried to set the default target and also to uncomment the* ftdi layout.* I can see openocd detects it: *> targets TargetName Type Endian TapName State -- ------------------ ---------- ------ ------------------ ------------ 0 imx8mm.a53.0 aarch64 little imx8mm.cpu running 1 imx8mm.a53.1 aarch64 little imx8mm.cpu examine deferred 2 imx8mm.a53.2 aarch64 little imx8mm.cpu examine deferred 3 imx8mm.a53.3 aarch64 little imx8mm.cpu examine deferred 4 imx8mm.ahb mem_ap little imx8mm.cpu running 5* imx8mm.m4 cortex_m little imx8mm.cpu reset* I keep getting this error: *Info : accepting 'gdb' connection on tcp/3334Error: timed out while waiting for target haltedError executing event gdb-attach on target imx8mm.m4:Info : New GDB Connection: 1, Target imx8mm.m4, state: resetWarn : GDB connection 1 on target imx8mm.m4 not haltedInfo : Halt timed out, wake up GDB.* And from the arm-none-eabi-gdb side: *Reading symbols from hello_world.elf...(gdb) target extended-remote localhost:3334Remote debugging using localhost:33340x00000000 in ?? ()(gdb)* Does anyone know how to solve it or have any comments that could help me with that? Thanks in advance! |