ilg-archived / openocd

The GNU MCU Eclipse OpenOCD
http://gnuarmeclipse.github.io/openocd/
GNU General Public License v2.0
234 stars 62 forks source link

Upstream SAMD51 support merged to master #37

Closed Timvrakas closed 4 years ago

Timvrakas commented 5 years ago

https://github.com/platformio/platform-atmelsam/issues/43 http://openocd.zylin.com/gitweb?p=openocd.git;a=commit;h=deaf3d264123391d8fe5c4cccbf8fb8852e1be23

not urgent, but because of the adafruit M4 boards, there is some demand.

ilg-ul commented 5 years ago

thank you for the info, the next release will include it.

ilg-ul commented 5 years ago

I just released 0.10.0-12, with the latest upstream master.

Please check if the problem was solved. If not, reopen the ticket.

coolio986 commented 5 years ago

I am running 20190426-0.10.0 trying to use atmel ice with SAMD51J19A and getting an error where it cannot find ID 60060005

Open On-Chip Debugger 0.10.0 (2019-04-26) [https://github.com/sysprogs/openocd] Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : auto-selecting first available session transport "swd". To override use 'transport select '. none separate adapter speed: 400 kHz cortex_m reset_config sysresetreq Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Info : CMSIS-DAP: SWD Supported Info : CMSIS-DAP: JTAG Supported Info : CMSIS-DAP: FW Version = 01.27.0082 Info : CMSIS-DAP: Serial# = J41800093192 Info : CMSIS-DAP: Interface Initialised (SWD) Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1 Info : CMSIS-DAP: Interface ready Info : clock speed 400 kHz Info : SWD DPIDR 0x2ba01477 Info : at91samd51j19a.cpu: hardware has 6 breakpoints, 4 watchpoints Info : Listening on port 3333 for gdb connections Info : accepting 'gdb' connection on tcp/3333 Error: Couldn't find part corresponding to DID 60060005 Error: auto_probe failed Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'. Error: attempted 'gdb' connection rejected

openocd.cfg:

# Atmel-ICE JTAG/SWD in-circuit debugger.
interface cmsis-dap
cmsis_dap_vid_pid 0x03eb 0x2141

# Chip info 
set CHIPNAME at91samd51j19a
source [find target/at91samdXX.cfg]

cmsis_dap_serial J4180009XXXX

Request re-open

coolio986 commented 5 years ago

I got my dates wrong. your merge was 29th, my version is from days before

Do you have a link to the windows binary for the 29th?

ilg-ul commented 5 years ago

I re-opened the ticket, but I have no clue what happens.

do you know of any openocd distribution that behaves as expected? if so, can you compare the configure options, and try to identify what is missing or is different?

ivankravets commented 5 years ago

@coolio986 please use this binary https://github.com/gnu-mcu-eclipse/openocd/releases

coolio986 commented 5 years ago

Ok, I tested 20190422 with this result:

GNU MCU Eclipse OpenOCD, 64-bitOpen On-Chip Debugger 0.10.0+dev-00593-g23ad80df4 (2019-04-22-20:25) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : auto-selecting first available session transport "swd". To override use 'transport select '. none separate adapter speed: 400 kHz cortex_m reset_config sysresetreq Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Info : CMSIS-DAP: SWD Supported Info : CMSIS-DAP: JTAG Supported Info : CMSIS-DAP: FW Version = 01.27.0082 Info : CMSIS-DAP: Serial# = J41800093192 Info : CMSIS-DAP: Interface Initialised (SWD) Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1 Info : CMSIS-DAP: Interface ready Info : clock speed 400 kHz Info : SWD DPIDR 0x2ba01477 Info : at91samd51j19a.cpu: hardware has 6 breakpoints, 4 watchpoints Info : Listening on port 3333 for gdb connections Info : accepting 'gdb' connection on tcp/3333 Error: Couldn't find part corresponding to DID 60060005 Error: auto_probe failed Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'. Error: attempted 'gdb' connection rejected

ilg-ul commented 4 years ago

Please check the latest release, now part of the xPack project.

https://xpack.github.io/blog/2019/07/17/openocd-v0-10-0-13-released/

If you still encounter problems, report them upstream.