Hi, hello. I'm having trouble of burning the bootloader of a new AtMega328p that I bought on amazon, I'm trying to do it with 2 arduino uno, as I saw in some youtube videos. But I'm reciving this error:
I don't know what am I doing wrong, can please somebody help me?
I think I have to burn bootloader the new AtMega328p because I have to re-program it, because if I try to use it on an arduino it doesn't work, meaning it doesn't have the code for making arduino work
What I tried to mean is that I was trying to use 2 arduino uno, one with the chip to program it and the other with a working chip, so I have 1 working arduino and the other not, I apologize if I explained myself poorly earlier
From the Arduino that works: pin 13 to pin 13 of the target. pin 12 to pin 12 of the target. pin 11 to pin 11 of the target. pin 10 to pin named reset of the target. Then 5v and GND to their correct position.
good. black board is "Arduino as ISP"(it have ArduinoISP sketch uploaded), green is the target. you connect black to USB, select option Programmer -> Arduino as ISP, select board: Arduino UNO, click "Burn Boottloader", after success you disconnect green board and connect it to PC with USB cable.
right ?
That is the right port. I checked, and the "other" one that appears doesn't work. sometime this black one gives me some troubles, so I can try to change it. But even changing arduino (with the right sketch on it and everything) it doesn't burn bootloader.
not clear. you took MCU from black and put to green and then connect green to PC, try to upload, it was successful, or what?
ok, if it was success, then do otherwise: take MCU from green and check if it working inserted in black board.
I swapped them. The chip that works (from the black one) works fine on the green one, but the chip that was on the green one doesn't work on the black one
If the "troubles" you mention is either one of the following:
"avrdude: ser_open(): can't set com-state for "\.\COM5"" error while uploading (as shown in your screenshot)
"Port monitor error: command 'open' failed: Invalid serial port. Could not connect to COM5 serial port." error when Serial Monitor is open in Arduino IDE
There is a known workaround for the problem that causes those specific error messages when using certain Arduino derivative boards like your "ELEGOO UNO R3" and we'd be happy to share it with you if you are affected by that problem.