Arduino Zero as HID or CDC USB device

Has anybody tried any SAMD21-based Arduinos (Zero or MKR Zero) with HID USB communication instead of Serial? I tried the NicoHood's RawHID library but it's broken and nobody seems to be willing to fix it

The problem might be in the code on the PC side but nobody knows where it is at this point.

Are there any other HID libraries for SAMD21 and Arduino IDE?

Another option would be CDC USB. When I glanced into the Serial library it looks like it is based on lower-level CDC comm link so the Arduino is actually configured as a CDC device but acts like a serial port on the higher layer. So it should be possible to run it as is just as a CDC device. Has anyone tried? Are there any libraries?

I need to transfer about 64kB of data from Arduino to PC within approx 1 sec so HID or CDC (with 64 bit buffer size) would work for me but Serial is too slow

So it should be possible to run it as is just as a CDC device

What does that mean?

I need to transfer about 64kB of data from Arduino to PC within approx 1 sec so ... Serial is too slow

Have you tried it? I get over 6Mbps sending data through a SAMD21 USBSerial port using

SerialUSB.write(datap, 45);

When you use the CDC Serial port, the speed is not throttled to the baud rate you use in the
begin() method - It just goes "as fast as possible." Which is quite fast indeed...

There's a test sketch in This Thread