I was using the temporary fix - but this appears now no longer to work. I get pages of errors when I try to run sudo openocd -f cfg/sam3s_halt.cfg: Here is first few lines:
Open On-Chip Debugger 0.10.0-dev-g6165f43c-dirty (2019-06-27-05:36)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
SysfsGPIO nums: tck = 17, tms = 4, tdi = 22, tdo = 27
SysfsGPIO num: trst = 18
trst_only separate trst_push_pull
adapter speed: 128 kHz
Warn : em357.bs: nonstandard IR value
Warn : Specify TAP ‘sam3n.cpu.cpu’ by name, not number 3
Info : SysfsGPIO JTAG/SWD bitbang driver
Info : JTAG only mode enabled (specify swclk and swdio gpio to add SWD mode)
Warn : gpio 17 is already exported
Warn : gpio 4 is already exported
Warn : gpio 22 is already exported
Warn : gpio 27 is already exported
Warn : gpio 18 is already exported
Info : This adapter doesn’t support configurable speed
Info : JTAG tap: em358.cpu tap/device found: 0xffffffff (mfg: 0x7ff (), part: 0xffff, ver: 0xf)
Warn : JTAG tap: em358.cpu UNEXPECTED: 0xffffffff (mfg: 0x7ff (), part: 0xffff, ver: 0xf)
Error: JTAG tap: em358.cpu expected 1 of 1: 0x3ba00477 (mfg: 0x23b (ARM Ltd.), part: 0xba00, ver: 0x3)
Info : JTAG tap: em357.bs tap/device found: 0x004dffff (mfg: 0x7ff (), part: 0x04df, ver: 0x0)
Warn : JTAG tap: em357.bs UNEXPECTED: 0x004dffff (mfg: 0x7ff (), part: 0x04df, ver: 0x0)
Error: JTAG tap: em357.bs expected 1 of 1: 0x069aa62b (mfg: 0x315 (Ember Corporation), part: 0x69aa, ver: 0x0)
Info : TAP xc6sxl4.fpga.fpga does not have IDCODE
Info : JTAG tap: sam3n.cpu.cpu tap/device found: 0xfff159dd (mfg: 0x4ee (), part: 0xff15, ver: 0xf)
Warn : JTAG tap: sam3n.cpu.cpu UNEXPECTED: 0xfff159dd (mfg: 0x4ee (), part: 0xff15, ver: 0xf)
Error: JTAG tap: sam3n.cpu.cpu expected 1 of 1: 0x4ba00477 (mfg: 0x23b (ARM Ltd.), part: 0xba00, ver: 0x4)
Info : JTAG tap: auto0.tap tap/device found: 0x21f139ff (mfg: 0x4ff (), part: 0x1f13, ver: 0x2)
Info : TAP auto1.tap does not have IDCODE
Info : TAP auto2.tap does not have IDCODE
Info : TAP auto3.tap does not have IDCODE
Info : TAP auto4.tap does not have IDCODE
Info : TAP auto5.tap does not have IDCODE
Info : TAP auto6.tap does not have IDCODE
Info : TAP auto7.tap does not have IDCODE
Info : TAP auto8.tap does not have IDCODE
Info : TAP auto9.tap does not have IDCODE
Info : TAP auto10.tap does not have IDCODE
Info : TAP auto11.tap does not have IDCODE
Info : TAP auto12.tap does not have IDCODE
Info : TAP auto13.tap does not have IDCODE
Info : TAP auto14.tap does not have IDCODE
Info : TAP auto15.tap does not have IDCODE
Info : TAP auto16.tap does not have IDCODE
Warn : Unexpected idcode after end of chain: 145 0xe7ff0000
Warn : Unexpected idcode after end of chain: 177 0xfffffb8c
Warn : Unexpected idcode after end of chain: 209 0x043fffff
Warn : Unexpected idcode after end of chain: 241 0xffff8001
Warn : Unexpected idcode after end of chain: 273 0xfbffffff
Warn : Unexpected idcode after end of chain: 337 0xfff8043f
Warn : Unexpected idcode after end of chain: 401 0xfffe0010
Warn : Unexpected idcode after end of chain: 433 0xefffffff
Warn : Unexpected idcode after end of chain: 497 0x000087ff
Warn : Unexpected idcode after end of chain: 529 0x287c0000
Warn : Unexpected idcode after end of chain: 561 0x9e000000
Warn : Unexpected idcode after end of chain: 593 0x0000010f
Warn : Unexpected idcode after end of chain: 625 0x0030f800
Error: double-check your JTAG setup (interface, speed, …)
Error: Trying to use configured scan chain anyway…
Error: em358.cpu: IR capture error; saw 0x0f not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: Invalid ACK (7) in DAP response
Error: Debug regions are unpowered, an unexpected reset might have happened
Error: Invalid ACK (7) in DAP response
Error: Invalid ACK (7) in DAP response
Error: Invalid ACK (0) in DAP response