Leonardo set up- no port

I've read everything on the forum I could find and still have a problem. I have a Leonardo and was able to upload a sketch a few weeks ago. I wrote a new sketch and when I try to upload it I get no port found. If I open tools, no ports are listed. If I go to device manager, view, hidden, I see port 3 active. How do I get the arduino to recognize the port?
Thanks

have you tried pressing the RESET button = if I press RESET
image

COM20 disappears and reappears when I let it go
similarly IDE boards manager
image

I tried that

it may be picking up the wrong driver
sometimes I have to uninstall the COM port drivers to make a device work

  1. open Device manager and expand Ports COM & LPT)

  2. click View > Show Hidden Devices – you get list such as
    image

  3. right click on each COM port - click Uninstal Device – click Uninstall

  4. when complete plug in your device and hopefully the COM port should appear
    image

When I open the device manager, view and hidden, no port option comes up??

strange - hidden should show under Ports (COM & LPT) the COM ports which have been installed by USB devices in the past but are no longer plugged in

That probably indicates that you had a bug in the previous sketch that you uploaded :wink: If you need the details, ask.

When you double tap the reset on the Leonardo, do you see a different port in Windows Device Manager?

If yes, the bootloader is OK.

a) Does your Windows system have a COM1 in device manager? If so, select it as the target port.
b) If not, do you have an Uno, Mega, Nano or a TTL-to-USB adapter? If yes, connect it and select its port as the target port. Keep it connected.
c) If not, which version of the IDE are you using? Life will be a lot easier with the legacy IDE (before IDE 2.0). Double tap the reset button of the Leonardo and select the port that shows.

Connect the Leonardo as well.

The steps when using options (a) or (b) above.

  1. In the IDE, open e.g. blink().
  2. Select the Leonardo as the target board (not the port).
  3. Select the port as above.
  4. Start an upload
  5. Double tap the reset button when the IDE reports the memory usage.
  6. Upload should succeed.

When using option (c), enable verbose output during compilation. Step (5) above changes to "Double tap the reset button when the IDE reports the linking". Below the last part of the compiler output so you can see where that double tap should (more or less) be done.

...
...
Using precompiled core: C:\Users\sterretje\AppData\Local\Temp\arduino-core-cache\core_arduino_avr_leonardo_532122c45ee71fa3f92d689a8d73764d.a
Linking everything together... <<<<< HERE
"C:\\Users\\sterretje\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -Wall -Wextra -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega32u4 -o "C:\\Users\\sterretje\\AppData\\Local\\Temp\\arduino-sketch-6B4D5018531DBDBFE81ADCB413DD376E/P1sender.0.3.generator.ino.elf" "C:\\Users\\sterretje\\AppData\\Local\\Temp\\arduino-sketch-6B4D5018531DBDBFE81ADCB413DD376E\\sketch\\P1sender.0.3.generator.ino.cpp.o" "C:\\Users\\sterretje\\AppData\\Local\\Temp\\arduino-sketch-6B4D5018531DBDBFE81ADCB413DD376E\\sketch\\crc16.cpp.o" "C:\\Users\\sterretje\\AppData\\Local\\Temp\\arduino-sketch-6B4D5018531DBDBFE81ADCB413DD376E\\libraries\\Time-master\\DateStrings.cpp.o" "C:\\Users\\sterretje\\AppData\\Local\\Temp\\arduino-sketch-6B4D5018531DBDBFE81ADCB413DD376E\\libraries\\Time-master\\Time.cpp.o" "C:\\Users\\sterretje\\AppData\\Local\\Temp\\arduino-sketch-6B4D5018531DBDBFE81ADCB413DD376E/..\\arduino-core-cache\\core_arduino_avr_leonardo_532122c45ee71fa3f92d689a8d73764d.a" "-LC:\\Users\\sterretje\\AppData\\Local\\Temp\\arduino-sketch-6B4D5018531DBDBFE81ADCB413DD376E" -lm
"C:\\Users\\sterretje\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\sterretje\\AppData\\Local\\Temp\\arduino-sketch-6B4D5018531DBDBFE81ADCB413DD376E/P1sender.0.3.generator.ino.elf" "C:\\Users\\sterretje\\AppData\\Local\\Temp\\arduino-sketch-6B4D5018531DBDBFE81ADCB413DD376E/P1sender.0.3.generator.ino.eep"
"C:\\Users\\sterretje\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\sterretje\\AppData\\Local\\Temp\\arduino-sketch-6B4D5018531DBDBFE81ADCB413DD376E/P1sender.0.3.generator.ino.elf" "C:\\Users\\sterretje\\AppData\\Local\\Temp\\arduino-sketch-6B4D5018531DBDBFE81ADCB413DD376E/P1sender.0.3.generator.ino.hex"

Using library Time at version 1.5 in folder: C:\Users\sterretje\Documents\Arduino\libraries\Time-master 
"C:\\Users\\sterretje\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\sterretje\\AppData\\Local\\Temp\\arduino-sketch-6B4D5018531DBDBFE81ADCB413DD376E/P1sender.0.3.generator.ino.elf"
Sketch uses 15484 bytes (54%) of program storage space. Maximum is 28672 bytes.
Global variables use 1777 bytes (69%) of dynamic memory, leaving 783 bytes for local variables. Maximum is 2560 bytes.

You must get the timing right for this one; it might be a bit tricky, you will get there

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.