Working Micro Pro
Working Micro Pro
Working Micro Pro
LEDs:
red: power
green – close to pin 7: serial RCV, can be set on/off via RXLED1 / RXLED0 macros, also via Arduino pin 17
green – close to pin 14: serial SND, can be set on/off via TXLED1 / TXLED0 macros, no Arduino pin #.
Figure 2 normal operation (after bootloader has ended). Figure 3: bootloader active (immediately after connection or after reset)
Note: it is important that the two modes (normal operation versus bootloader active) do not use the same COM port number. If so, the Arduino environment
cannot find the bootloader because it detects the bootloaders COM port by comparing ports before and after the bootloader starts.
As for the device one can use the Leonardo board too, but the “SparkFun Pro Micro” works better. As my board has a 16 MHz oscillator on board and the solder
jumper J1 was open, I selected the 5V 16 MHz variant. With Leonardo I was not able to get Serial() working, probably due to some pin numbering differences,
which I did not dare to explore.
Note that here we select the COM port for normal operation. This port is used for communication with running programs via Serial() only. The communication to
the bootloader uses its own COM port, which is dynamically detected and must be different.
For the dynamic detection I hold the RST pin to GND until the output window shows the first COM port search lines.
PORTS {COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, COM10, COM11, COM12, COM13, COM14, COM15,
COM16, } /
Then I open the connection and the reset forces the bootloader into action which adds the port COM17 to the list of COM ports in the device manager.
Note that the Deek-Robot board seems to use an older bootloader, which does not detect the reset via open/close of COM port. Also no “double-tap” is needed.
Here is the output from the Arduino IDE with abbreviated directory paths for readability