Build up new Leonardo board

Hello, i built up my new leonardo board. I Placed a Atmega32U4 and it's usb connector. Then i flashed in the bootloader for arduino leonardo with AVRISP mkII programmer and found out when connecting to the pc through it's usb connector windows does not reconice it. How can i do to solve this issue?
I would also like to connect it to arduino ide in future. Is it possible?

Part of the code that you usually upload to a Leonardo contains functionality for the board detection and reaction on the software reset that the IDE issues when you start an upload. Because you only burned the boot loader and did not upload a sketch yet that functionality is not available.

Tap the reset button; the board should go into bootloader mode and your operating system (which you forgot to mention) should now recognise it (for a short while)

If it does, the first attempt to upload will be to upload an innocent sketch like blink.

  1. Tap the reset button and in the IDE select the port that is now shown.
  2. Perform the upload and when the IDE reports the memory usage tap the reset button.

Hello, thank you for your response. I'm using windows 11 pro 64 bit. I connected my electronics with usb cable to my pc, windows says "device not recognised" after programming bootloader using AVRISP MkII. i tried to reset electronics like you said during an upload with ide 2.3.4 of a simple sketch like blink before it starts the upload on com3 it does not go in time out but stays stuck there.
Any ideas?

OK

So did Windows recognise your board after you tapped the reset button?

Did you have a LED connected to PC7 of the microcontroller?
If yes, does it fade in and out after tapping the reset?

No does not come out normaly but if i ask to see hidden ports it shows it but it's not accessible, i shall send you some screen shot of what it says. it's in italian but i do think you can understand what is saying any way. I shall all add some schematics how it's connected on my board and with what i programmed the boot.


Is COM6 your board? What are COM5 and COM7?
Can you post a proper screenshot of the Ports section in Windows device manager so we can see it all? E.g. the IDE shows COM4 and COM3 but I do not see them in the Ports section in windows device manager so I do not know what they are.

You can try the following steps:

  1. In the IDE, close the tools menu.
  2. Tap the reset button on the board.
  3. Open the tools menu, section ports.
  4. Select COM6 (which I assume is your board in bootloader mode).
  5. Perform an upload; when the IDE reports the memory usage, tap the reset.

If that does not work and one of the (currently) unknown COM ports is an Uno / Nano / Mega or a serial-to-usb adapter, you can use that in the above step 4.

I have five electtronics which are built in the same way and two of them after programming boot if connected to the pc they are not reconised from windows. the other three it can't be loaded boot inside it they switch on but there is no way of burning boot. Now i wonder if the problem is regarding the MKII programmer. I think i choose the worst microcontroller at the moment on the market.

I never designed a board around a AVR processor but I doubt that.

Did you check all the solderings? Did you check all the components on the boards that they have the correct values?

I shall do so next weeks, It's my first time also. I tried it before using an arduino board as isp and it worked well but i used ATmega328 but with this specific ATmega32U4 i never used it. I would love to use it if it works because there is a direct connection to usb. For now thank you.

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