Recently I received a A-Star 32U4 mini board from Pololu, which I’d bought during the Black Friday for just $6.
Since this mico-controller board shares many similarities with Arduino Leonardo, I thought I could just upload the program using Arduino IDE by selecting Arduino Leonardo as the board type.
Unfortunately, that did not work even after I tried resetting the board as suggested in the following the error message logged by Arduino IDE in the console:
Binary sketch size: 4,826 bytes (of a 28,672 byte maximum)
processing.app.debug.RunnerException: Couldn’t find a Leonardo on the selected port. Check that you have the correct port selected. If it is correct, try pressing the board's reset button after initiating the upload.
...
Next, I followed the instruction on this page to add the Pololu hardware add-on to the Arduino IDE. The guide only showed how to accomplish this on a Windows machine. On a Ubuntu system, possibly also on other distros, I need to drop a udev rule in /etc/udev/rules.d otherwise I won’t be able to upload any program to the board.
Fortunately, this file is provided in A-Star Software and Driver zip file (available on this page.).
I named that file /etc/udev/rules.d/99-a-star.rules.
SUBSYSTEM=="usb", ATTRS{idVendor}=="1ffb", ATTRS{idProduct}=="0101", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1ffb", ATTRS{idProduct}=="2300", ENV{ID_MM_DEVICE_IGNORE}="1"
Now, I could upload any program from Arduino IDE by selecting either Arduino Leonardo or Pololu A-Star 32U4 as the board type.
Ref: