{"action":"created","issue":{"url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/245","repository_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5","labels_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/245/labels{/name}","comments_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/245/comments","events_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/245/events","html_url":"https://github.com/sandeepmistry/arduino-nRF5/issues/245","id":297771520,"number":245,"title":"Black Magic Probe (GDB): \\\\.\\/dev/ttyACM0: No such file or directory","user":{"login":"probonopd","id":2480569,"avatar_url":"https://avatars3.githubusercontent.com/u/2480569?v=4","gravatar_id":"","url":"https://api.github.com/users/probonopd","html_url":"https://github.com/probonopd","followers_url":"https://api.github.com/users/probonopd/followers","following_url":"https://api.github.com/users/probonopd/following{/other_user}","gists_url":"https://api.github.com/users/probonopd/gists{/gist_id}","starred_url":"https://api.github.com/users/probonopd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/probonopd/subscriptions","organizations_url":"https://api.github.com/users/probonopd/orgs","repos_url":"https://api.github.com/users/probonopd/repos","events_url":"https://api.github.com/users/probonopd/events{/privacy}","received_events_url":"https://api.github.com/users/probonopd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2018-02-16T12:36:21Z","updated_at":"2018-02-23T16:52:50Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Have flashed Black Magic Probe firmware to a Blue Pill board as described on http://www.stm32duino.com/viewtopic.php?f=37&t=2801#p36730:\r\n\r\n```\r\nstm32flash -w blackmagic.bin -S 0x08000000 -v /dev/ttyUSB0\r\n```\r\n\r\nThe system does see the device:\r\n\r\n```\r\n$ cat /etc/*release\r\nDISTRIB_ID=Ubuntu\r\nDISTRIB_RELEASE=16.04\r\n\r\n$ lsusb\r\nBus 008 Device 012: ID 1d50:6018 OpenMoko, Inc. \r\n\r\n$ dmesg\r\n[16845.933046] usb 8-1: Product: Black Magic Probe (STLINK), (Firmware v1.6.1-101-g5686550-dirty)\r\n[16845.933048] usb 8-1: Manufacturer: Black Sphere Technologies\r\n[16845.933051] usb 8-1: SerialNumber: ...\r\n[16845.939092] cdc_acm 8-1:1.0: ttyACM0: USB ACM device\r\n[16845.942083] cdc_acm 8-1:1.2: ttyACM1: USB ACM device\r\n\r\n$ ls -lh /dev/ttyACM*\r\ncrw-rw-rw- 1 root dialout 166, 0 Feb 16 13:23 /dev/ttyACM0\r\ncrw-rw-rw- 1 root dialout 166, 1 Feb 16 13:23 /dev/ttyACM1\r\n```\r\n\r\nConnections for the programmer on `/dev/ttyACM0`:\r\n\r\n| Blue Pill | nRF51822 module |\r\n| - | - |\r\n| 3.3 | VDD|\r\n| GND | GND|\r\n| PA5 | SWCLK|\r\n| PB14 | SWDIO|\r\n\r\nOptional for serial monitor on `/dev/ttyACM1`:\r\n\r\n| Blue Pill | nRF51822 module |\r\n| - | - |\r\n| PA2 (TX) | P0.00 (RX) |\r\n| PA3 (RX) | P0.01 (TX) |\r\n\r\nHowever, if I try to upload a sketch using the __Black Magic Probe (GDB)__ programmer from the Arduino IDE, I get:\r\n\r\n```\r\nSketch uses 1296 bytes (0%) of program storage space. Maximum is 262144 bytes.\r\n\\\\.\\/dev/ttyACM0: No such file or directory.\r\n\"monitor\" command not supported by this target.\r\nDon't know how to attach.  Try \"help target\".\r\nYou can't do that when your target is `exec'\r\nDon't know how to run.  Try \"help target\".\r\nReading symbols from sketch_feb16a.ino.elf...done.\r\nTemporary breakpoint 1 at 0x322: file /home/me/.arduino15/packages/sandeepmistry/hardware/nRF5/0.5.0/cores/nRF5/main.cpp, line 29.\r\n\r\nProgram complete!\r\n```\r\n\r\nI don't think it has actually done anything since it could not find the device.\r\n\r\nNote the extra `\\\\.\\` in `\\\\.\\/dev/ttyACM0: No such file or directory`. @sandeepmistry also has  the extra `\\\\.\\` in https://github.com/sandeepmistry/arduino-nRF5/pull/196#issuecomment-346187018."},"comment":{"url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/comments/368067876","html_url":"https://github.com/sandeepmistry/arduino-nRF5/issues/245#issuecomment-368067876","issue_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/245","id":368067876,"user":{"login":"dlabun","id":18444350,"avatar_url":"https://avatars0.githubusercontent.com/u/18444350?v=4","gravatar_id":"","url":"https://api.github.com/users/dlabun","html_url":"https://github.com/dlabun","followers_url":"https://api.github.com/users/dlabun/followers","following_url":"https://api.github.com/users/dlabun/following{/other_user}","gists_url":"https://api.github.com/users/dlabun/gists{/gist_id}","starred_url":"https://api.github.com/users/dlabun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlabun/subscriptions","organizations_url":"https://api.github.com/users/dlabun/orgs","repos_url":"https://api.github.com/users/dlabun/repos","events_url":"https://api.github.com/users/dlabun/events{/privacy}","received_events_url":"https://api.github.com/users/dlabun/received_events","type":"User","site_admin":false},"created_at":"2018-02-23T16:52:50Z","updated_at":"2018-02-23T16:52:50Z","author_association":"COLLABORATOR","body":"If no issues are found between now and Sunday I’ll issue a new release around noon Sunday."}}
{"actor":{"display_login":"dlabun"}}