Dear people,
I used to program with arduino ade SAMD21 boards (as a ArduinoZero) with Atmel SAM-ICE. Suddenly the Arduino IDE does no see the Atmel SAM-ICE programmer on a USB port.
typing openocd in terminal finds the programmer and connected board.
What can I do to find the programmer in the Arduino IDE?
kind regards, Andries
Normally inability to detect/use the programmer except in root/su mode indicates a problem with the udev rules. Are you sure that the relevant udev files/rules are still installed on your machine? Is there a /etc/udev/rules.d/xx-openocd.rules installed on your machine and does it describe the Atmel SAM-ICE?
Last edit: Tommy Murphy 2019-11-20
Dear Tommy
ls /etc/udev/rules.d gives:
49-micronucleus.rules 70-snap.core.rules z65-anyma-udmx.rules z65-fx5-hid.rules z65-spi.rules
49-teensy.rules 70-snap.libreoffice.rules z65-dmxusb.rules z65-peperoni.rules
so I guess not. Strange while it was working for month on different computers here
ls /dev/usb gives:
hiddev0
ldd $(which openocd) gives:
linux-vdso.so.1 (0x00007ffc013f7000)
libusb-0.1.so.4 => /lib/x86_64-linux-gnu/libusb-0.1.so.4 (0x00007f19a46cc000)
libftdi1.so.2 => /usr/lib/x86_64-linux-gnu/libftdi1.so.2 (0x00007f19a44be000)
libusb-1.0.so.0 => /lib/x86_64-linux-gnu/libusb-1.0.so.0 (0x00007f19a42a6000)
libhidapi-hidraw.so.0 => /usr/lib/x86_64-linux-gnu/libhidapi-hidraw.so.0 (0x00007f19a40a2000)
libjaylink.so.0 => /usr/lib/x86_64-linux-gnu/libjaylink.so.0 (0x00007f19a3e96000)
libjim.so.0.77 => /usr/lib/x86_64-linux-gnu/libjim.so.0.77 (0x00007f19a3c52000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f19a3861000)
libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007f19a3643000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f19a3424000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f19a3220000)
/lib64/ld-linux-x86-64.so.2 (0x00007f19a4db0000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f19a3018000)
and openocd gives:
Open On-Chip Debugger 0.10.0
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 <transport>'.
none separate
adapter speed: 400 kHz
cortex_m reset_config sysresetreq
Info : CMSIS-DAP: SWD Supported
Info : CMSIS-DAP: JTAG Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : CMSIS-DAP: FW Version = 01.00.0021
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 0x0bc11477
Info : at91samd21g18.cpu: hardware has 4 breakpoints, 2 watchpoints</transport>
thank you if you can help me
From: Tommy Murphy tm1234@users.sourceforge.net
Sent: Wednesday, November 20, 2019 14:41
To: [openocd:tickets] 258@tickets.openocd.p.re.sourceforge.net
Subject: [openocd:tickets] #258 sudo apt install openocd
Normally inability to detect/use the programmer except in root/su mode indicates a problem with the udev files. Are you sure that the relevant udev files/rules are still installed on your machine? Is there a /etc/udev/rules.d/xx-openocd.rules installed on your machine and does it describe the Atmel SAM-ICE?
[tickets:#258]https://sourceforge.net/p/openocd/tickets/258/ sudo apt install openocd
Status: new
Milestone: 0.9.0
Labels: openOCD arduino no port
Created: Wed Nov 20, 2019 12:22 PM UTC by Andries Oyens
Last Updated: Wed Nov 20, 2019 12:22 PM UTC
Owner: Paul Fertser
Dear people,
I used to program with arduino ade SAMD21 boards (as a ArduinoZero) with Atmel SAM-ICE. Suddenly the Arduino IDE does no see the Atmel SAM-ICE programmer on a USB port.
typing openocd in terminal finds the programmer and connected board.
What can I do to find the programmer in the Arduino IDE?
kind regards, Andries
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/openocd/tickets/258/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Tickets: #258
Dear Tommy
ls /etc/udev/rules.d gives:
49-micronucleus.rules 70-snap.core.rules z65-anyma-udmx.rules z65-fx5-hid.rules z65-spi.rules
49-teensy.rules 70-snap.libreoffice.rules z65-dmxusb.rules z65-peperoni.rules
so I guess not. Strange while it was working for month on different computers here
ls /dev/usb gives:
hiddev0
ldd $(which openocd) gives:
linux-vdso.so.1 (0x00007ffc013f7000)
libusb-0.1.so.4 => /lib/x86_64-linux-gnu/libusb-0.1.so.4 (0x00007f19a46cc000)
libftdi1.so.2 => /usr/lib/x86_64-linux-gnu/libftdi1.so.2 (0x00007f19a44be000)
libusb-1.0.so.0 => /lib/x86_64-linux-gnu/libusb-1.0.so.0 (0x00007f19a42a6000)
libhidapi-hidraw.so.0 => /usr/lib/x86_64-linux-gnu/libhidapi-hidraw.so.0 (0x00007f19a40a2000)
libjaylink.so.0 => /usr/lib/x86_64-linux-gnu/libjaylink.so.0 (0x00007f19a3e96000)
libjim.so.0.77 => /usr/lib/x86_64-linux-gnu/libjim.so.0.77 (0x00007f19a3c52000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f19a3861000)
libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007f19a3643000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f19a3424000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f19a3220000)
/lib64/ld-linux-x86-64.so.2 (0x00007f19a4db0000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f19a3018000)
and openocd gives:
Open On-Chip Debugger 0.10.0
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 <transport>'.
none separate
adapter speed: 400 kHz
cortex_m reset_config sysresetreq
Info : CMSIS-DAP: SWD Supported
Info : CMSIS-DAP: JTAG Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : CMSIS-DAP: FW Version = 01.00.0021
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 0x0bc11477
Info : at91samd21g18.cpu: hardware has 4 breakpoints, 2 watchpoints</transport>
thank you if you can help me
Doesn't look like there's any openocd udev rules file installed so?
You need a udev rule for your programmer to allow openocd non root/su access to your programmer.
If this was working for you before but is no longer working on the same machine then something obviously must've changed.
http://openocd.org/doc/html/Running.html
Dear Tommy,
i found a file on internet named 99-openocd.rules
and added
Atmel-ICE JTAG/SWD in-circuit debugger
ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2141", MODE="664", GROUP="plugdev"
to it and placed it in /etc/udev/rules.d
still no succes. How can I check if a non superuser can use this device?
kind regards, Andries
From: Tommy Murphy tm1234@users.sourceforge.net
Sent: Wednesday, November 20, 2019 15:25
To: [openocd:tickets] 258@tickets.openocd.p.re.sourceforge.net
Subject: [openocd:tickets] Re: #258 sudo apt install openocd
Doesn't look like there's any openocd udev rules file installed so?
You need a udev rule for your programmer to allow openocd non root/su access to your programmer.
If this was working for you before but is no longer working on the same machine then something obviously must've changed.
http://openocd.org/doc/html/Running.html
[tickets:#258]https://sourceforge.net/p/openocd/tickets/258/ sudo apt install openocd
Status: new
Milestone: 0.9.0
Labels: openOCD arduino no port
Created: Wed Nov 20, 2019 12:22 PM UTC by Andries Oyens
Last Updated: Wed Nov 20, 2019 01:57 PM UTC
Owner: Paul Fertser
Dear people,
I used to program with arduino ade SAMD21 boards (as a ArduinoZero) with Atmel SAM-ICE. Suddenly the Arduino IDE does no see the Atmel SAM-ICE programmer on a USB port.
typing openocd in terminal finds the programmer and connected board.
What can I do to find the programmer in the Arduino IDE?
kind regards, Andries
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/openocd/tickets/258/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Tickets: #258
Did you reboot or manually trigger a reload of the udev rules files (udevadmin trigger I think)?
I normally just reboot if I change the udev files.
If the rules are in force and the one that you cite is the correct one for your programmer then openocd should be able to use it when run in non root/su mode.
(first attempt to send bounced so trying again)
Did you reboot or manually trigger a reload of the udev rules files (udevadmin trigger I think)?
I normally just reboot if I change the udev files.
If the rules are in force and the one that you cite is the correct one for your programmer then openocd should be able to use it when run in non root/su mode.
Did you reboot or manually trigger a reload of the udev rules files (udevadmin trigger I think)?
I normally just reboot if I change the udev files.
If the rules are in force and the one that you cite is the correct one for your programmer then openocd should be able to use it when run in non root/su mode.
Yes I did a reboot, no succes....
Did you reboot or manually trigger a reload of the udev rules files (udevadmin trigger I think)?
I normally just reboot if I change the udev files.
If the rules are in force and the one that you cite is the correct one for your programmer then openocd should be able to use it when run in non root/su mode.
[tickets:#258]https://sourceforge.net/p/openocd/tickets/258/ sudo apt install openocd
Status: new
Milestone: 0.9.0
Labels: openOCD arduino no port
Created: Wed Nov 20, 2019 12:22 PM UTC by Andries Oyens
Last Updated: Wed Nov 20, 2019 02:55 PM UTC
Owner: Paul Fertser
Dear people,
I used to program with arduino ade SAMD21 boards (as a ArduinoZero) with Atmel SAM-ICE. Suddenly the Arduino IDE does no see the Atmel SAM-ICE programmer on a USB port.
typing openocd in terminal finds the programmer and connected board.
What can I do to find the programmer in the Arduino IDE?
kind regards, Andries
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/openocd/tickets/258/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Tickets: #258
FWIW the Debian package installs the udev rules to lib/udev/rules.d/60-openocd.rules, as they are part of the package. However they do not have the 2141 PID in them, just 03eb/204f, so if it was working before there must have been something extra installed/configured.
Is Andries on Debian?
I didn't see that mentioned anywhere...
On Wed, Nov 20, 2019 at 04:25:56PM -0000, Jonathan McDowell wrote:
It should get covered by generic CMSIS-DAP line:
ATTRS{product}=="CMSIS-DAP", MODE="660", GROUP="plugdev", TAG+="uaccess"
Or does the new CMSIS-DAP firmwares no long match since they're
called DAPLink for whatever reason now?
--
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercerpav@gmail.com
Dear Jonathan,
I added ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2141", MODE="664", GROUP="plugdev", TAG+="uaccess" to 60-openocd.rules
rebooted and no succes
I also tried ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2141", MODE="660", GROUP="plugdev", TAG+="uaccess"
reboot and no succes
how can I check if Arduino has permission to find the usb Atmel Ice?
kind regards, Andries
[1467287908084_PastedImage]
Yens & Yens
Joris van den Berghweg 111 hal G
1067HP Amsterdam
www.yens-yens.nlhttp://www.yens-yens.nl
KVK: 33.207.096
BTW: 00 86 50 068 B01
Bank: NL68INGB0003487789
Chris Heijens 06 55753191
Andries Oyens 06 24697446
Floris Leenders 06 12630811
From: Jonathan McDowell jonmcd@users.sourceforge.net
Sent: Wednesday, November 20, 2019 17:25
To: [openocd:tickets] 258@tickets.openocd.p.re.sourceforge.net
Subject: [openocd:tickets] Re: #258 sudo apt install openocd
FWIW the Debian package installs the udev rules to lib/udev/rules.d/60-openocd.rules, as they are part of the package. However they do not have the 2141 PID in them, just 03eb/204f, so if it was working before there must have been something extra installed/configured.
[tickets:#258]https://sourceforge.net/p/openocd/tickets/258/ sudo apt install openocd
Status: new
Milestone: 0.9.0
Labels: openOCD arduino no port
Created: Wed Nov 20, 2019 12:22 PM UTC by Andries Oyens
Last Updated: Wed Nov 20, 2019 03:30 PM UTC
Owner: Paul Fertser
Dear people,
I used to program with arduino ade SAMD21 boards (as a ArduinoZero) with Atmel SAM-ICE. Suddenly the Arduino IDE does no see the Atmel SAM-ICE programmer on a USB port.
typing openocd in terminal finds the programmer and connected board.
What can I do to find the programmer in the Arduino IDE?
kind regards, Andries
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/openocd/tickets/258/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Tickets: #258
For some reason repeated attempts to email a reply failed.
Anyway here is what I was trying to send...
Did you reboot or manually trigger a reload of the udev rules files (udevadmin trigger I think)?
I normally just reboot if I change the udev files.
If the rules are in force and the one that you cite is the correct one for your programmer then openocd should be able to use it when run in non root/su mode.
Apologies for the repeated replies above but I was getting bounces from the mailing list address even though those replies obviously got through anyway....
Are you sure that your user is a member of the plugdev group in order to have non root/su access to the device? That's what the rule that you quoted earlier sets up.
Dear Tommy, Jonathan and Paul,
thank you all for helping me. I have to program 700 SAMD21 chips and suddenly it is not working. You can imagion I am quite stressed. The strange thing is that LSUSB shows the programmer
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 06cb:00a2 Synaptics, Inc.
Bus 001 Device 004: ID 5986:2113 Acer, Inc
Bus 001 Device 006: ID 8087:0a2a Intel Corp.
Bus 001 Device 002: ID 046d:c526 Logitech, Inc. Nano Receiver
Bus 001 Device 007: ID 03eb:2141 Atmel Corp. ICE debugger
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Arduino IDE 'saw' the usb port always. Since today on no computer it shows. I did not update the Arduino software. I would be very greatful if you could help me.
openocd command gives:
Open On-Chip Debugger 0.10.0
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 <transport>'.
none separate
adapter speed: 400 kHz
cortex_m reset_config sysresetreq
Info : CMSIS-DAP: SWD Supported
Info : CMSIS-DAP: JTAG Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : CMSIS-DAP: FW Version = 01.00.0021
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 0x0bc11477
Info : at91samd21e18.cpu: hardware has 4 breakpoints, 2 watchpoints</transport>
kind regards, Andries
On Wed, Nov 20, 2019 at 06:23:43PM -0000, Andries Oyens wrote:
So the adapter is working just fine, what's the problem? And why do
you need any IDE to flash the target?..
--
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercerpav@gmail.com
Dear Paul,
I used to flash the programmer by Arduino IDE because I am used to work in Arduino IDE (all my software uses Arduino libraries and they worked fine) normaly the Atmel ICE appeared as a port.
Suddenly on all my computers the Atmel ICE is not there as a programming port??
On Wed, Nov 20, 2019 at 06:23:43PM -0000, Andries Oyens wrote:
openocd command gives:
...
Info : at91samd21e18.cpu: hardware has 4 breakpoints, 2 watchpoints
So the adapter is working just fine, what's the problem? And why do
you need any IDE to flash the target?..
--
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercerpav@gmail.com
[tickets:#258]https://sourceforge.net/p/openocd/tickets/258/ sudo apt install openocd
Status: new
Milestone: 0.9.0
Labels: openOCD arduino no port
Created: Wed Nov 20, 2019 12:22 PM UTC by Andries Oyens
Last Updated: Wed Nov 20, 2019 06:23 PM UTC
Owner: Paul Fertser
Dear people,
I used to program with arduino ade SAMD21 boards (as a ArduinoZero) with Atmel SAM-ICE. Suddenly the Arduino IDE does no see the Atmel SAM-ICE programmer on a USB port.
typing openocd in terminal finds the programmer and connected board.
What can I do to find the programmer in the Arduino IDE?
kind regards, Andries
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/openocd/tickets/258/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Tickets: #258
Dear all
openocd -f openocd.cfg -c "program test.bin exit 0x00000000"
works, that's a start :-) but can you still help me with the programmer getting accessible in the IDE?
I appreiciate all your time enormously.
thanx, Andries
Then that is an IDE issue and not an OpenOCD issue.
You really need to ask about the IDE issue on the appropriate forum.
Dear all,
thanx again for your help. But still I have the feeling something changed in the Ubuntu/openocd settings.
In the Arduino IDE all my other program possibilities show as a port. Also the Teensy, which uses a udev entry in the rules.d.
Only the Atmel ICE using openocd doesn't show.
I did not update the IDE, but Ubuntu updates I alway do.
Anyyway, I can continue with programming.
kind regards, Andries
openocd -f openocd.cfg -c "program test.bin exit 0x00000000"
works, that's a start :-)
but can you still help me with the programmer getting accessible in the IDE?
Then that is an IDE issue and not an OpenOCD issue.
You really need to ask about the IDE issue on the appropriate forum.
[tickets:#258]https://sourceforge.net/p/openocd/tickets/258/ sudo apt install openocd
Status: new
Milestone: 0.9.0
Labels: openOCD arduino no port
Created: Wed Nov 20, 2019 12:22 PM UTC by Andries Oyens
Last Updated: Wed Nov 20, 2019 07:50 PM UTC
Owner: Paul Fertser
Dear people,
I used to program with arduino ade SAMD21 boards (as a ArduinoZero) with Atmel SAM-ICE. Suddenly the Arduino IDE does no see the Atmel SAM-ICE programmer on a USB port.
typing openocd in terminal finds the programmer and connected board.
What can I do to find the programmer in the Arduino IDE?
kind regards, Andries
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/openocd/tickets/258/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Tickets: #258