Device manager-CODE 10 error

I designed a new board and it is just a new eeprom added to an arduino uno r3.

I go to device manager and it says Atmega16u2 DFU (Com3), but when I go inside, there is a (CODE 10) error. That is, the computer does not see the card.

What should I do?

I moved your topic to an appropriate forum category @omerhd16.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

Hi @omerhd16. It wasn't clear to me from your description: did you make the whole board from scratch based on the design of the Uno R3, or is the part you made a module connected to an off the shelf Arduino Uno R3 board?

I believe this error indicates that the USB to serial "bridge" firmware has not been flashed to the ATmega16U2 chip on the board. That would be expected if you are using a factory fresh ATmega16U2, since the chips only come with the DFU firmware by default. It is less expected if you are using an off the shelf Uno, since these should come with the proper USB to serial firmware on the ATmega16U2, but I have even seen some rare reports of Uno boards (I don't know whether they were official boards or clones) shipping without the USB to serial firmware on the ATmega16U2. So either way, it is possible.

There is a tutorial about flashing that firmware here:

I made the board from scratch, changed its shape and added 4 EEPROMs. I'm sure there is no problem with the schematic and PCB design.
Atmega16u2 came pre-installed on the JLCPCB site.

Very cool! So this means the problem is definitely caused by the missing USB to serial firmware. Just use the Atmel FLIP application to flash that firmware as described in the tutorial and you should be set.

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