Hi folks, I often use GDB’s “run” command because it’s convenient, but as far as I can tell, the OpenOCD documentation doesn’t ever actually explain what it does. On a single-target chain it seems to be roughly equivalent to OpenOCD’s “reset run” command, basically starting the code over from the top, but I’m not sure if that’s true under the hood. Moreover, what does it do on a multi-target chain (i.e. when you have two or more microcontrollers in a single JTAG chain with a common SRST line)? In a multi-target chain, one would typically have an instance of GDB connected to each target. Does “run” pulse SRST and thereby reset the other target as well? Does it do anything to convince the other target to run or halt or otherwise when it comes out of reset? Are any of the answers to these questions unintentional, or are they all intended behaviour I can rely on?
Thanks, -- Christopher Head
pgp8mBJf6uUgs.pgp
Description: OpenPGP digital signature