BlackMagic (BMP) ARM JTAG/SWD debugger:

- Flashing and debugging with BMP can be done with -programmer=bmp
- New getBMPPorts() function was added to properly detect BMP USB serial ports.
This commit is contained in:
Olivier Fauchon
2021-06-13 20:55:32 +02:00
committed by Ron Evans
parent 98bd947817
commit 6c6fea5387
2 changed files with 60 additions and 0 deletions
+3
View File
@@ -297,6 +297,9 @@ func (c *Config) Programmer() (method, openocdInterface string) {
case "openocd", "msd", "command":
// The -programmer flag only specifies the flash method.
return c.Options.Programmer, c.Target.OpenOCDInterface
case "bmp":
// The -programmer flag only specifies the flash method.
return c.Options.Programmer, ""
default:
// The -programmer flag specifies something else, assume it specifies
// the OpenOCD interface name.