Re: flash zephyr build onto atmel board through VM


Marc Herbert
 

On 25 Jun 2019, at 09:42, Bolivar, Marti <marti.bolivar@nordicsemi.no> wrote:

" via Lists.Zephyrproject.Org"
<kayli0109=gmail.com@lists.zephyrproject.org> writes:

Hi Carles,

I have installed the extension pack, and choose the usb, but i still get
the error of "unable to open CMSIS-DAP device" when i do ninja flash.
Do u know what have i missed out?
Do you have the appropriate udev rules for your device installed so your
user has permissions to access it?
On Ubuntu/Debian try: sudo apt-get install flashrom. Even if you don't
care about flashrom, it comes with a
/usr/lib/udev/rules.d/z60_flashrom.rules file that is interesting.

Fedora ships with the same .rules file, however it looks like it wasn't
tested on Fedora, I had to hack it like this:

-ATTRS{idVendor}=="1234", ATTRS{idProduct}=="5678", TAG+="uaccess"
+ATTRS{idVendor}=="1234", ATTRS{idProduct}=="5678", GROUP="dialout"

I searched for a way to trace udev rules but there doesn't seem to be
any way to print which scripts run and when. If anyone knows please share.

Marc

Join users@lists.zephyrproject.org to automatically receive all group messages.