I am uploading a test sketch(Blink) to my new Zero(with Wifi101 shield) and when I press Upload in the IDE, the Console says the following:
Arduino: 1.6.10 (Linux), Board: "Arduino/Genuino Zero (Programming Port)"
Open On-Chip Debugger 0.9.0-gd4b7679 (2014年10月03日-00:26)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 0
adapter speed: 500 kHz
adapter_nsrst_delay: 100
cortex_m reset_config sysresetreq
Error: unable to find CMSIS-DAP device
Error: No Valid JTAG Interface Configured.
Error: No Valid JTAG Interface Configured.
I am using the Zero programming port.
1 Answer 1
I had exactly the same error with the same board. Running the IDE as root solved the problem. So, Chris was right pointing out a permission issue.
I found more information here : http://bitofahack.com/post/1437909576
Then I added the file /etc/udev/rules.d/98-openocd.rules
:
ACTION!="add|change", GOTO="openocd_rules_end"
SUBSYSTEM!="usb|tty|hidraw", GOTO="openocd_rules_end"
ATTRS{product}=="*CMSIS-DAP*", MODE="664", GROUP="plugdev"
LABEL="openocd_rules_end"
I then ensured that I was member of group plugdev
.
udev
looks for changes in his rules directory so you don't have
to restart it.
I plugged the board again and it worked.
Note that you can force udev to read the rule files again by entering :
sudo udevadm control --reload
I had to do this because I first made a mistake in the rule file.
Hope this helps.
-
98-opencd.rules >>> 98-openocd.rulesTakao Shimizu– Takao Shimizu2017年09月22日 01:44:28 +00:00Commented Sep 22, 2017 at 1:44
-
missing closing double quote ? LABEL="openocd_rules_end >>> LABEL="openocd_rules_end"robotoaster– robotoaster2021年01月18日 21:12:43 +00:00Commented Jan 18, 2021 at 21:12
-
Yes. Fixed. Very old message...Snark Turne– Snark Turne2021年01月20日 12:59:06 +00:00Commented Jan 20, 2021 at 12:59
lsusb
into your question. Also look for messages indmesg
after re-plugging the board, and consider trying another cable. There could also be permission issues, but I'd expect a different error message then.lsusb
shows what??? Anddmesg
???