I've a SparkFun Pro Micro which is an Arduino Leonardo clone. Unfortunately my attempts to upload programs failed. I did some research in the internet and found you have to use SparkFun's configuration. There is a board manager's URL you have to use: https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json
So far so good. After trying to use this I attempted to do an upload and failed. I tried it with different settings but all failed. While earlier there was a serial port named
/dev/ttyACM0 there now is no such port any more. Further research gave me the information that you might get the device running if you a) reset to boot loader mode where you should have an 8 seconds window to upload and b) actually perform the upload.
I can verify: If I pull RESET to ground I can switch into this 8 seconds mode. Then the device
/dev/ttyACM0 appears after about 1 second for about 7 seconds. As instructed I immediately try to do an upload. This is strange: I immediately (!) get the following output:
- Line 1:
Sketch uses 4140 bytes (14%) of program storage space. Maximum is 28672 bytes.
- Line 2:
Global variables use 149 bytes (5%) of dynamic memory, leaving 2411 bytes for local variables. Maximum is 2560 bytes.
- Line 3:
avrdude: ser_open(): can't open device "/dev/ttyACM0": No such file or directory
- Line 4:
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
The TTY should be there as the 7 seconds have not been passed in that case. Furthermore my user account is in
dialout which enables it to use the tty.
If I trust this error message that means the tty is gone as soon as
avrdude tries to access it. Which shouldn't be that way, should it?
Has anyone encountered this situation before? How can I upload a program to the mikrocontroller? Has anyone has any experience with that situation here?
- ArdunoIDE 1.8.5
- Ubuntu (Mate) Linux 16.04