I’ve recently bought a few SparkFun ProMicro 5V 16Mhz clones from Ebay because they are extremely cheap (7 Euro each) and habe native USB.
The only problem i had is that i was not able to program them using inotool.
The upload issue
To get them working with the Arduino IDE you simply have to download the so called “Arduino Addon files” from Sparkfun and place them in the hardware folder of your Arduino installation. The IDE then recognizes them and provides you the new board models for compilation and uploads. Sometimes it works, but somtimes it will not upload the compiled source and give me this error message:
Found programmer: Id = "Hello w"; type = o
Software Version = H.e; Hardware Version = l.l
avrdude: error: buffered memory access not supported. Maybe it isn't
a butterfly/AVR109 but a AVR910 device?
As you can see you can read parts of the Hello World string that is continously sent by the Example 1: Blinkies! sketch that was running at the time i tried to upload source. This indicates that the software reset didn’t worked correctly for some unknown reason.
So I decided to get this working with inotool to avoid using the Arduino IDE and probably fix the upload issue at the same time.
I downloaded the Arduino Addon Files again and checked the contents:
The boards.txt has the definitions for the 4 Sparkfun boards with AtMega32u4 processors (Pro Micro 5V, Pro Micro 3.3V, Fio 3.3V, Makey Makey).
In the bootloaders folder is a modified/extended version of the original caterina bootloader for the Leonardo.
The drivers folder contains the windows drivers for the boards.
variants contains the pin configurations.
If you simply install the Addon files as usually (copy the folder into the hardware folder), inotool recognizes the new boards, but fails to compile/upload.
So i tried to integrate the new files into the original folders:
uno: [DEFAULT] Arduino Uno
atmega328: Arduino Duemilanove w/ ATmega328
diecimila: Arduino Diecimila or Duemilanove w/ ATmega168
nano328: Arduino Nano w/ ATmega328
nano: Arduino Nano w/ ATmega168
mega2560: Arduino Mega 2560 or Mega ADK
mega: Arduino Mega (ATmega1280)
leonardo: Arduino Leonardo
esplora: Arduino Esplora
micro: Arduino Micro
mini328: Arduino Mini w/ ATmega328
mini: Arduino Mini w/ ATmega168
ethernet: Arduino Ethernet
fio: Arduino Fio
bt328: Arduino BT w/ ATmega328
bt: Arduino BT w/ ATmega168
LilyPadUSB: LilyPad Arduino USB
lilypad328: LilyPad Arduino w/ ATmega328
lilypad: LilyPad Arduino w/ ATmega168
pro5v328: Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega328
pro5v: Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega168
pro328: Arduino Pro or Pro Mini (3.3V, 8 MHz) w/ ATmega328
pro: Arduino Pro or Pro Mini (3.3V, 8 MHz) w/ ATmega168
atmega168: Arduino NG or older w/ ATmega168
atmega8: Arduino NG or older w/ ATmega8
robotControl: Arduino Robot Control
robotMotor: Arduino Robot Motor
promicro16: SparkFun Pro Micro 5V/16MHz
promicro8: SparkFun Pro Micro 3.3V/8MHz
fiov3: SparkFun Fio V3 3.3V/8MHz
minibench: SparkFun Makey Makey
As you can see, at the end of the list are the new boards. If they do not appear, do a ino clean first.
Now ino compiles our source but fails to upload it :-(
So we have to do a little modification to ino itself, see the Github diff of the original repo and my fork.
I simply changed the behavior of inotool to do a softwre reset with the 1200 Baud connect/disconnect method to happen whenever the specified bootloader for a certain board model starts with “caterina” instead of is equal to “caterina”.