MacOS Big Sur & avrdude with mEDBG, nEDBG or ATMEL-ICE

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey, has anyone got avrdude working on MacOS Big Sur with any programmer other than JTAG2UPDI? My mEDBG, nEDBG and ATMEL-ICE programmers all work on MPLAB X in MacOS Big Sur, but when I try them with avrdude, I get errors like these:

 

For the nEDBG:

avrdude: usbhid_open(): No device found
avrdude: usbdev_open(): Found nEDBG CMSIS-DAP, serno: MCHPxxxxxxxxxxxxxxxx
avrdude: usbdev_open(): error claiming interface 0: Permission denied
avrdude: usbdev_open(): error claiming interface 1: Permission denied
avrdude: usbdev_open(): error claiming interface 4: Permission denied
avrdude: usbdev_open(): no usable interface found
avrdude: jtag3_open_common(): Did not find any device matching VID 0x03eb and PID list: 0x2175

For the mEDBG:

avrdude: usbhid_open(): No device found
avrdude: usbdev_open(): Found mEDBG CMSIS-DAP, serno: ATMLxxxxxxxxxxxxxxxx
avrdude: usbdev_open(): error claiming interface 0: Permission denied
avrdude: usbdev_open(): error claiming interface 1: Permission denied
avrdude: usbdev_open(): no usable interface found
avrdude: jtag3_open_common(): Did not find any device matching VID 0x03eb and PID list: 0x2145

And for the ATMEL-ICE:

avrdude: usbhid_open(): No device found
avrdude: usbdev_open(): Found Atmel-ICE CMSIS-DAP, serno: Jxxxxxxxxxxx
avrdude: usbdev_open(): error claiming interface 0: Permission denied
avrdude: usbdev_open(): no usable interface found
avrdude: jtag3_open_common(): Did not find any device matching VID 0x03eb and PID list: 0x2141

I'd love to get any or all of these working under MacOS Big Sur (Intel) - and they all seem to be related to the same problem with usbdev_open(). Has anyone fixed it? Or have a clue as to what direction I should look to try and fix it myself?

Last Edited: Fri. Apr 30, 2021 - 01:56 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Welcome

tombull wrote:
Or have a clue as to what direction I should look to try and fix it myself?
No clue though a WAG :

avrdude — Homebrew Formulae

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Would be interesting to know if you can do hid::open via hidapi in Python (like we do with pymcuprog, for example...)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

gchapman wrote:

 

No clue though a WAG :

avrdude — Homebrew Formulae

 

 

Thanks for the welcome! I've got the homebrew version of avrdude installed from there, but it's based off the latest version released by Joerg Wunsch in 2016 - and hence doesn't support anything with UPDI. The one I'm using to get the error messages is the latest release of the fork made by the Arduino team - which I believe is the latest and greatest avrdude available...?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

mraardvark wrote:
Would be interesting to know if you can do hid::open via hidapi in Python (like we do with pymcuprog, for example...)

 

Thanks for pointing out pymcuprog, I didn't know about it previously. I've installed it and run

pymcuprog -v debug ping

I've tried with an ATMEL-ICE and an nEDBG plugged in, both gave the same response:

Connecting to anything possible
Unable to connect to USB device (open failed)

Is there anything else I can try with pymcuprog? Any way of getting more detailed debugging info?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

tombull wrote:
Is there anything else I can try with pymcuprog? Any way of getting more detailed debugging info?

You can enable more logging with -v debug, but you will have to raise the logging level in pyedbglib in the.yaml file to debug as well to get more out from the lower layer.

Unfortunately its only tested up to and including Catalina.

Wonder if its kext-related? (https://www.avrfreaks.net/commen...)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So were you able to make Big Sur work for OS X for the avrdude?

 

I can compile nicely a hex file and deliver to people using MacOS Big Sur

but I would like to use avrdude to flash using the USB basic Ice.

 

      avrdude -c usbtiny -p m328p -U flash:w:test.hex

 

 

From my readings you have to do something like this but as always the details are left open

 

sudo mkdir -p /System/Library/Extensions/AtmelICE.kext/Contents
curl https://gist.githubusercontent.c... >  /System/Library/Extensions/AtmelICE.kext/Contents/Info.plist
sudo chown -R root:wheel /System/Library/Extensions/AtmelICE.kext
sudo chmod -R 755 /System/Library/Extensions/AtmelICE.kext
sudo kextcache -system-caches

 

 

But I would think there are signatures issues.

So if you have a process that worked let me know since I have OS X Big Sur

 

 

 

 

 

redpath