Hidapi does not recognize a device on a Mac M2 under Sonoma 14.7.2, but on Linux and Windows in Parallels #715
Labels
No labels
3rdparty
Android
API
Author does not respond
bsd
bug
build system/CI
ci-virtual-device
CMake
Contributions Welcome
Core
dependencies
device-specific
documentation
don't_merge
duplicate
enhancement
Example
Haiku
hidraw
hotplug
info required
invalid
libusb
macOS
Misc
Not an issue
question
Release
Test
Test GUI
Windows
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libusb/hidapi#715
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
I try to work with an Atmel-ICE device (hardware debugger), and it is not recognized on my M2 Mac under Sonoma 14.7.2. Running hidapitester and hidapi_enum.py gives very fishy results:
So, no ATMEL-ICE, but a lot of devices with a VIDPID of 0:0. BTW, the correct entry (recorded under Ubuntu 24.04 (ARM64) run in the Paralleles Emulator) looks like that:
Also under Windows11(ARM), and on my Intel-Mac, everything works. So, I am at loss here.
Cheers,
Bernhard
The manufacturer is Apple, and the bus is probably not USB, so that's expected on macOS.
Is it run on that mac machine?
Maybe you've passed the USB device into you VM env and the host USB/HID driver gets disabled?
What is the output of
ioreg -p IOUSBorioreg -p IOUSB -w0 -lon your mac?Hi,
Yes. Same machine.
Oops. Nah, I disabled the USB access before, of course. What is more, a lot of programs can access the Atmel-ICE, e.g., avrdude and MPLABX.
Here we go (and the Atmel-ICE is enumerated):
I guess, this is a Mac problem and not a problem of the library. The Mac tool
hidutilgives the same buggy output ashidapitestand misses to list Atmel-ICE. Looking at what librarieshidutiluses, libhidapi is not among them.Hmm, this is very strange. Do you have other Macs to check whether this is specific to macOS 14 or Apple Silicon CPU.
Atmel ICE is supported by avrdude under Linux/Windows/macOS/FreeBSD/etc, using hidapi. There is a bug with TPI parts but I have not heard issues like what you have mentioned here.
Unfortunately I do not have Atmel ICE myself to check on my Mac Mini M1 (running macOS 15.2 now).
Reference:
BTW, is it possible for you to upgrade your macOS version to the latest 15.2 verion and try again?
Apple is not really that good in terms of legacy USB device support compared to Windows and Linux and often there are breaking changes from time to time. But often the bug got fixed in later release.
I upgraded on my Intel Mac from Ventura to Sonoma, and the Atmel-ICE is still listed when using hidapitester or hidutil. So, it does not seem to be an OS problem.
I'll try upgrading to 15.2. on my ARM Mac hoping that the problem vanishes.
Hi,
The upgrade to 15.2 on my ARM Mac did not help.
It is a mystery to me, why the enumeration of hid devices leaves out the Atmel-ICE only on ARM Macs. However, I guess, I found a way around it (using what avrdude apparently does). If the hidapi enumeration fails, it goes through all USB devices and looks for the right VID:PID pair.
Turned out that it was just an issue of an old extension that grabbed the device.
Sounds about right. Thank's for letting us know.