Tool/software:
Hello everyone,
I am using a default image for the J784S4 and want to debug a default application running on mcu2_0 for testing.
I only have the mcu2_0 core running.
I am running OpenOCD and GDB by using the following commands:
openocd -c 'bindto 0.0.0.0' -f /usr/share/openocd/scripts/board/ti_j784s4_swd_native.cfg
gdb /usr/lib/firmware/ti-ipc/j784s4/ipc_echo_test_mcu2_0_release_strip.xer5f > target extended-remote localhost:3338
When I try to connect GDB to the mcu2 core by using "target extended-remote", I get this error:
Info : accepting 'gdb' connection on tcp/3344 [ 204.032521] SError Interrupt on CPU0, code 0x00000000bf000002 -- SError [ 204.032536] CPU: 0 UID: 0 PID: 809 Comm: openocd Tainted: G O 6.12.35-ti-00946-g72f48d59b8f0-dirty #1 [ 204.032543] Tainted: [O]=OOT_MODULE [ 204.032545] Hardware name: Texas Instruments J784S4 EVM (DT) [ 204.032548] pstate: 60000000 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 204.032552] pc : 0000000000456a64 [ 204.032554] lr : 0000000000457c58 [ 204.032555] sp : 0000ffffe12862b0 [ 204.032557] x29: 0000ffffe12862b0 x28: 00000000162438d0 x27: 0000000000000008 [ 204.032564] x26: 0000000016246350 x25: 0000000016243be8 x24: 000000001614f300 [ 204.032568] x23: 00000000007be000 x22: 0000ffffe1286364 x21: 000000009d410d00 [ 204.032573] x20: 00000000a2000002 x19: 00000000161a96a0 x18: 0000000000000007 [ 204.032578] x17: 0000ffff9ca90fe0 x16: 000000000041b270 x15: 0000000000000001 [ 204.032582] x14: 0000000000000000 x13: 0000000000000035 x12: 0000ffff9cba0ad0 [ 204.032587] x11: 0000001177a720f8 x10: 00ffffffffffffff x9 : 003ae3af00000000 [ 204.032592] x8 : 0000000000000018 x7 : 0000000000000001 x6 : 0000000000000000 [ 204.032596] x5 : 0000000000010000 x4 : 0000ffff7f200000 x3 : 00000000007cd8c8 [ 204.032601] x2 : 0000ffffe1286364 x1 : 000000009d410d00 x0 : 00000000161a96a0 [ 204.032608] Kernel panic - not syncing: Asynchronous SError Interrupt [ 204.032610] CPU: 0 UID: 0 PID: 809 Comm: openocd Tainted: G O 6.12.35-ti-00946-g72f48d59b8f0-dirty #1 [ 204.032615] Tainted: [O]=OOT_MODULE [ 204.032617] Hardware name: Texas Instruments J784S4 EVM (DT) [ 204.032619] Call trace: [ 204.032621] dump_backtrace+0x90/0xe8 [ 204.032636] show_stack+0x18/0x24 [ 204.032641] dump_stack_lvl+0x34/0x8c [ 204.032647] dump_stack+0x18/0x24 [ 204.032650] panic+0x390/0x3a4 [ 204.032659] nmi_panic+0x40/0x8c [ 204.032663] arm64_serror_panic+0x64/0x70 [ 204.032669] do_serror+0x74/0x7c [ 204.032673] __el0_error_handler_common+0x3c/0x9c [ 204.032678] el0t_64_error_handler+0x10/0x1c [ 204.032682] el0t_64_error+0x190/0x194 [ 204.032685] SMP: stopping secondary CPUs [ 204.032700] Kernel Offset: disabled [ 204.032702] CPU features: 0x08,00002002,80200000,4200420b [ 204.032706] Memory Limit: none [ 204.235002] ---[ end Kernel panic - not syncing: Asynchronous SError Interrupt ]---
I repeated the same process for the am64x board and was able to connect to the core via gdb without any problems.
However, I need that gdb works on Jacinto as well.
Any insight about this behavior on j784s4?
Thank you.
Best regards,
Joao Lima