{"action":"closed","issue":{"url":"https://api.github.com/repos/gnu-mcu-eclipse/openocd/issues/12","repository_url":"https://api.github.com/repos/gnu-mcu-eclipse/openocd","labels_url":"https://api.github.com/repos/gnu-mcu-eclipse/openocd/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/gnu-mcu-eclipse/openocd/issues/12/comments","events_url":"https://api.github.com/repos/gnu-mcu-eclipse/openocd/issues/12/events","html_url":"https://github.com/gnu-mcu-eclipse/openocd/issues/12","id":222222663,"number":12,"title":"CMSIS-DAP device not found using v0.10.0-20170124","user":{"login":"renaudcerrato","id":1930949,"avatar_url":"https://avatars0.githubusercontent.com/u/1930949?v=4","gravatar_id":"","url":"https://api.github.com/users/renaudcerrato","html_url":"https://github.com/renaudcerrato","followers_url":"https://api.github.com/users/renaudcerrato/followers","following_url":"https://api.github.com/users/renaudcerrato/following{/other_user}","gists_url":"https://api.github.com/users/renaudcerrato/gists{/gist_id}","starred_url":"https://api.github.com/users/renaudcerrato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renaudcerrato/subscriptions","organizations_url":"https://api.github.com/users/renaudcerrato/orgs","repos_url":"https://api.github.com/users/renaudcerrato/repos","events_url":"https://api.github.com/users/renaudcerrato/events{/privacy}","received_events_url":"https://api.github.com/users/renaudcerrato/received_events","type":"User","site_admin":false},"labels":[{"id":249273581,"url":"https://api.github.com/repos/gnu-mcu-eclipse/openocd/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"ilg-ul","id":362732,"avatar_url":"https://avatars3.githubusercontent.com/u/362732?v=4","gravatar_id":"","url":"https://api.github.com/users/ilg-ul","html_url":"https://github.com/ilg-ul","followers_url":"https://api.github.com/users/ilg-ul/followers","following_url":"https://api.github.com/users/ilg-ul/following{/other_user}","gists_url":"https://api.github.com/users/ilg-ul/gists{/gist_id}","starred_url":"https://api.github.com/users/ilg-ul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilg-ul/subscriptions","organizations_url":"https://api.github.com/users/ilg-ul/orgs","repos_url":"https://api.github.com/users/ilg-ul/repos","events_url":"https://api.github.com/users/ilg-ul/events{/privacy}","received_events_url":"https://api.github.com/users/ilg-ul/received_events","type":"User","site_admin":false},"assignees":[{"login":"ilg-ul","id":362732,"avatar_url":"https://avatars3.githubusercontent.com/u/362732?v=4","gravatar_id":"","url":"https://api.github.com/users/ilg-ul","html_url":"https://github.com/ilg-ul","followers_url":"https://api.github.com/users/ilg-ul/followers","following_url":"https://api.github.com/users/ilg-ul/following{/other_user}","gists_url":"https://api.github.com/users/ilg-ul/gists{/gist_id}","starred_url":"https://api.github.com/users/ilg-ul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilg-ul/subscriptions","organizations_url":"https://api.github.com/users/ilg-ul/orgs","repos_url":"https://api.github.com/users/ilg-ul/repos","events_url":"https://api.github.com/users/ilg-ul/events{/privacy}","received_events_url":"https://api.github.com/users/ilg-ul/received_events","type":"User","site_admin":false}],"milestone":null,"comments":13,"created_at":"2017-04-17T20:28:39Z","updated_at":"2017-11-10T09:36:17Z","closed_at":"2017-11-10T09:36:17Z","author_association":"NONE","body":"Just received my ATMEL SAMC21 XPLAINED PRO, and I immediately tried to play with it: the first thing I noticed is that the OpenOCD version which came with my distribution (Ubuntu 16.04) didn't included the required [board script](https://github.com/gnuarmeclipse/openocd/blob/gnuarmeclipse-dev/tcl/board/atmel_samc21_xplained_pro.cfg). I lazily ripped it, and tried to flash a blinky demo:\r\n\r\n```shell\r\n$ openocd -f board/atmel_samc21_xplained_pro.cfg -c \"program demo.elf reset exit\"\r\nOpen On-Chip Debugger 0.9.0 (2015-09-02-10:42)\r\n...\r\nInfo : only one transport option; autoselect 'swd'\r\nadapter speed: 500 kHz\r\nadapter_nsrst_delay: 100\r\ncortex_m reset_config sysresetreq\r\nInfo : CMSIS-DAP: SWD  Supported\r\nInfo : CMSIS-DAP: Interface Initialised (SWD)\r\nInfo : CMSIS-DAP: FW Version = 02.09.0169\r\nInfo : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1\r\nInfo : CMSIS-DAP: Interface ready\r\nInfo : clock speed 500 kHz\r\nInfo : SWD IDCODE 0x0bc11477\r\nInfo : at91samc21j18.cpu: hardware has 4 breakpoints, 2 watchpoints\r\ntarget state: halted\r\ntarget halted due to debug-request, current mode: Thread \r\nxPSR: 0x21000000 pc: 0x00000120 msp: 0x20002448\r\n** Programming Started **\r\nauto erase enabled\r\nError: Couldn't find part correspoding to DID 11010100\r\nError: auto_probe failed\r\n** Programming Failed **\r\nshutdown command invoked\r\n```\r\n\r\nOk, fair enough, SAMC21 support [have been added lately](https://github.com/gnuarmeclipse/openocd/commit/33d220d10a069be34095313f51ae22052a079b34#diff-372355c1dac51848c79eb8e20bc326a7): I needed to upgrade OpenOCD to the latest version available.\r\n\r\n```shell\r\n$ /opt/gnuarmeclipse/openocd/0.10.0-201701241841/bin/openocd -f board/atmel_samc21_xplained_pro.cfg -c \"program demo.elf reset exit\"\r\nGNU ARM Eclipse 64-bits Open On-Chip Debugger 0.10.0-00113-g0f83948 (2017-01-24-19:18)\r\n...\r\nInfo : auto-selecting first available session transport \"swd\". To override use 'transport select <transport>'.\r\nnone separate\r\nadapter speed: 400 kHz\r\ncortex_m reset_config sysresetreq\r\nError: unable to find CMSIS-DAP device\r\nError: No Valid JTAG Interface Configured.\r\n```   \r\n\r\nOpenOCD 0.9.0 is able to detect the CMSIS-DAP interface, but not the latest version? Running the above command using `sudo` didn't fixed it and confirmed that this is not a permission issue along with the following commands:\r\n\r\n```shell\r\n$ lsusb\r\n...\r\nBus 003 Device 053: ID 03eb:2111 Atmel Corp. \r\n...\r\n$ ls -l /dev/bus/usb/003/053\r\ncrw-rw----+ 1 root plugdev 189, 308 Apr 17 15:59 /dev/bus/usb/003/053\r\n$ id\r\nuid=1000(renaud) gid=1000(renaud) groups=1000(renaud),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),113(lpadmin),127(sambashare)\r\n```\r\n\r\nI'm stuck. I'm willing to help, but I've no idea how."}}
{"actor":{"display_login":"ilg-ul"}}