Last week I brought original Atmega328P TQFP and solder it on my Arduino Uno and upload the bootloader successfully but it doesn't upload the program using USB port
Do I need to set fuse bit during the upload bootloader but I can't do it because I used Arduino as asp to upload bootloader
CH340G driver is recognized correctly and COM port also visible properly
Following error is displaying
Using Port : COM4
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x95
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x95
avrdude: stk500_recv(): programmer is not responding
OK, the blink proves that the bootloader is present on the ATmega328P microcontroller and that the microcontroller is running.
This error might be caused by having the wrong port selected from the Tools > Port menu in Arduino IDE.
Please perform this experiment to verify that the port you have selected is your Arduino board:
Disconnect the USB cable of the Arduino board from your computer.
Select Tools > Port from the Arduino IDE menus.
Take note of the ports, if any, listed in the menu.
Close the Tools menu. The ports list is only updated when the Tools menu is re-opened, so this step is essential.
Connect the Arduino board to your computer with a USB cable.
Select Tools > Port from the Arduino IDE menus. - If a new port is listed in the menu, that is the port of your Arduino board.
Select that port from the menu and try uploading again.
If the upload still fails, or if no new port appeared after you plugged the Arduino board into your computer, add a reply here to let us know and we'll investigate the problem further.
I'm not sure about that. The 0x1e950f signature is the signature of the ATmega328P. Most likely @PA3040 is using a modified avrdude.conf file that has a lgt8fx328p definition added to it.
It is possible for a short or external circuitry connected to the Arduino board to interfere with the upload process, causing this type of upload error.
Make sure the board is not sitting on anything conductive that could short the contacts on the bottom of the board. Make sure there isn't any conductive debris (e.g., strands of wire or component leads) on the board or on the surface the board is sitting on.
If you have a shield or any external circuitry or components connected to your Arduino board, try this experiment:
Disconnect the USB cable of the Arduino board from your computer.
Disconnect any shields, modules, external circuitry, etc. from your board.
Connect the Arduino board to your computer with a USB cable.
Now try uploading a sketch to the board again. Does the upload succeed?
This experiment will determine whether the upload error was caused by interference from your external circuitry. If so, you can then focus your attention on identifying the specific problem with the circuit and resolving it.
No sir
no anything is connected to the board
I clean the board using ISO PROPYL ALCOHOL also
I change the cable also
I checked the rx to tx and tx to rx path on the board using multimeter and both resistors are working properly
OK. But if his environment has been changed by uploading some sort of support for the LGTxxxx clones, then this may be causing the problems he is currently experiencing. At some stage a test with a clean IDE install may be worth trying.
OK. Then it seems that the serial connection is failing somehow.
Since you are using a Uno on which you replaced the chip, check for visible solder bridges between the TX and RX pins on that chip or bad connections.
One suggestion is to write a small sketch which reads and writes to the serial console. You'd have to load the sketch in the same way that you loaded the bootloader, that is through a programmer connected to the ICSP pins.
You'd should also then use AVRDUDE to unset the BOOTRST fuse.
Then check if the board can write to and read from the serial console.
This procedure will also erase the installed boot loader so you'd have to re-install it afterwards.