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:
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.
Now, I could upload any program from Arduino IDE by selecting either Arduino Leonardo or Pololu A-Star 32U4 as the board type.