Hi everyone! Hope your doing good. I need some help with my custom arduino uno board. When i try to uploade code from usb-c port it wont do it but if use another arduino uno and connect it with the current one over SPI pins it works.
Hi @resul05. Cool board!
When you do an "Upload Using Programmer" operation, it erases the bootloader on the ATmega328P microcontroller. The error you are encountering is expected when no bootloader is present on the target microcontroller.
So connect the "Arduino as ISP" programmer to the target board and then use Arduino IDE's Tools > Burn Bootloader feature to flash the bootloader to the ATmega328P on the target board. Make sure to avoid doing another "Upload Using Programmer" operation after that. Next, try another standard upload via the ATmega16U2. Hopefully this time it will be successful.
Did you program the 16U2?
can you please email me ? resulilmammedov@gmail.com
if you have Instagram (@resul_robotics), can you please please text me over there I really need your help!
I tried what you are telling but it still did not work!
No. We prefer to help people publicly here on the forum because this way the information shared is available to everyone.
There are millions of Arduino users and we don't have time to help each one individually. The hope is that when I help someone in a public forum topic, that information will help many others with the same question in the years to come as they find that forum topic in a Google search. In this way, the effort of one person is magnified many times through the magic of sharing information freely on the Internet.
Please provide a detailed description of what you mean by did not work in a reply on this forum topic, including:
- What did you do?
- What were the results you expected from doing that thing?
- What were the results you observed that did not match your expectations?
Make sure to include the full and exact text of any error or warning messages you might have encountered.
how do I do that sir?
so when i connected the DIY board to my laptop, my laptop could not recognize it then I did some research and I tried to use FLIP program and updated the driver now my laptop recognizes the board as arduino uno. And then when i am uploading code the 16u2 rx led is blinking but no Tx led, and the arduino ide stuck on uploading....
but if i use another arduino uno as a programmer to code the diy atmel328p over spi pins as target. then both arduino works
OK so you programmed the 16U2.
If you did what @ptillisch recommended and it did not work,then you may have a hardware problem.
You need to post you schematics. Please no screenshots.
I am currently a new user and I can not upload any file over here. Do you have any other methods of uploading the schematics?
but just in case here is the schematics screenshot
If you push the reset button does the D4 LED blink 3 times then stay on?
Yes, it stays on
If you push the reset button, does it Blink 3 times?
I would try the loop back test to narrow down the problem.
It might be a bit tricky on your custom board. You can test both M8RXD/M8TXD and IO0/IO1. Which brings me to double checking the soldering for RN4A and RN4B and other pins involved in the path.
no it does not sir
Then the bootloader is not on the 328. Try burning the bootloader again and make sure no errors are given.
The things i tried:
Flashing the ATmega16U2 Firmware with another arduino uno as a programmer over SPI pins of target arduino
(Arduino-usbserial-atmega16u2-Uno-Rev3.hex
Used XLoader to flash)
That succeeded.
After then i then i uploaded the ArdunoIsp code to the programmer arduino uno , then connected SPI pins of programmmer and target 328p and tried to burn but couldn't succeeded. Then i download MiniCore to upload, still failed.
Board ATmega328 (MiniCore)
Variant 328PB
Clock External 16 MHz
Bootloader Yes (UART0)
Programmer Arduino as ISP
And after this setting, it still failed to bootload...
What IC is on your board a 328P or 328PB?
Digikey: ATMEGA328P-MU-ND
Here is the problem:
If at any time burning the bootloader did work, then the external crystal is now selected as the 328P clock. If that clock is not working, you will not be able to download code or burn a new bootloader.
Did you select the correct crystal?
If you have a scope see if the crystal is oscillating.
No I do not have a scope, but I realized there are no 22pf capacitors after the crystal.
that's the crystal I have for the 328p. right now I soldered two 22pF capacitors after the crystal and tried to burn the bootloader and still can not bootload