Go Down

Topic: can't upload sketch to pro micro (Read 205 times) previous topic - next topic

sel

First off my R3 UNO works fine  but when I try and upload a sketch (blink) to a pro micro it either reports an Error, Freezes or Switches the Port depending on what device I try and set it to.

I have two Pro Micros same result with both, I did have them working on previous PC.

I also have CH341SER drivers installed there are no issues showing in system manager.

 I really don't know what to try next.

Any ideas cheers Sel.

pert

Please do this:
  • File > Preferences > Show verbose output during: > compilation (uncheck) > upload (check) > OK
  • Sketch > Upload
  • After the upload fails you'll see a button on the right side of the orange bar "Copy error messages". Click that button.
  • Paste the error messages in a reply here USING CODE TAGS (</> button on the toolbar).


I also have CH341SER drivers installed there are no issues showing in system manager.
Pro Micros don't use CH340.

sel

#2
Jun 23, 2018, 03:36 am Last Edit: Jun 23, 2018, 03:38 am by sel
Yes anything using CH341SER work.


If I set pro micro to Arduino/Genuino Micro and upload there are no errors and it says done but I can hear drivers being messed with and sometimes the port changes.
The Leds don't blink.

If I use  Arduino pro/pro mini it just locks up, there is some text though in the box

Code: [Select]
Build options changed, rebuilding all
Archiving built core (caching) in: C:\Users\xxxxxx\AppData\Local\Temp\arduino_cache_236867\core\core_arduino_avr_pro_cpu_16MHzatmega328_c3bfe3f79ffbeab93536a1a484b588d9.a
Sketch uses 928 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
An error occurred while uploading the sketch


There is no actual entry in the list for   Pro Micro.
I have used them before and don't remember having any issues.

pert

sometimes the port changes.
That happens sometimes with the Pro Micro.

The Leds don't blink.
Please post your full sketch. If possible you should always post code directly in the forum thread as text using code tags (</> button on the toolbar).

If I use  Arduino pro/pro mini it just locks up
That's to be expected since you're not using a Pro or Pro Mini.

There is no actual entry in the list for   Pro Micro.
That's because the Pro Micro is not an official Arduino board. You can install a hardware package for it but the Arduino/Genuino Micro selection should work fine.

sel

Thanks for the replies, the sketch is just the standard blink test from the 0.1 bascis

When I do upload I see the bootloader popup in system manager on a different port before switching back  again.

pert

Thanks for the replies, the sketch is just the standard blink test from the 0.1 bascis
And there's your problem. The Blink sketch uses LED_BUILTIN as the LED pin, which is defined as 13 but on the Pro Micro there is no LED on pin 13. So pin 13 is going HIGH and LOW but if you have nothing connected to it you'll never know. It is possible to control the RX LED on the Pro Micro from your code. That's pin 17, or LED_BUILTIN_RX.

When I do upload I see the bootloader popup in system manager on a different port before switching back  again.
That's completely normal.

sel

Thanks for that I feel really stupid especially as it's written in the header.

Thanks again.

Go Up