-
Notifications
You must be signed in to change notification settings - Fork 256
Description
I am trying to get Cortex-Debug working with the STM32MP157C-DK2 dev board. This has two cores: an A7 running Linux and an M4 running my firmware. I'm able to debug through a rather tedious chain of operations:
- copy the firmware to the Linux file system
- start/restart the firmware with SysFS
- start openocd on the PC (Linux)
- start gdb on the PC
- (gdb) target remote localhost:3333
- (gdb) monitor soft_reset_halt
I've been trying to set the openocd onwards parts of this up to launch from within VSCode, but it just resets the entire board. Followinghttps://marcelball.ca/projects/cortex-debug/cortex-debug-launch-configurations/, I think I got the incantations right up to the point where gdb connects with the server, but don't see a way to feed in the soft reset. Also, the toolchain prefix is not "arm-none-eabi-", but "arm-something_else-eabi-". Is the dependency hard-coded in Cortex-Debug? I added a soft-link to fix a file-not-found.
I'd be grateful if you could let me know how to do this. Using bare GDB is not so productive as a decent debugger.
Thanks.