Bootloader uploaded but USB is not working

Hi Team

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

Please advice

Thanks in advanced

Dare I ask what happened that required you to replace the 238 chip on the Uno ?

Could something else be damaged ?

4 Likes

I need to check that new Atemga328 is working or not since I have another project with the IC. Actually I brought 10 numbers of 328P

You don't trust your supplier, then? :thinking:

1 Like

My another project has more issues so I need to confirm first that IC is working , That is the reason I replace my working Arduino board by the IC

I brought the by www.lcsc.com

IC can be red by using avrdude

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.04s

avrdude: Device signature = 0x1e950f (probably lgt8fx328p)

avrdude: safemode: Fuses OK (E:FD, H:DE, L:FF)

avrdude done.  Thank you.

any updates please

Hi @PA3040. Please try this experiment and then report back with the results:


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


  1. Connect the Arduino board to your computer with a USB cable.
  2. Press and release the button on the Arduino board that is marked "RESET".

Now please reply here on the forum thread with the answers to the following questions:

  • Did you see the LED marked "L" on the board blink immediately after you released the "RESET" button?
  • Did the LED blink only once, or did it blink multiple times?

Did you use Arduino IDE to burn the bootloader? If so, the fuses are configured correctly as part of the "Burn Bootloader" operation.

1 Like

1.Yes LED 'L' is blinking ever reset of the mcu

  1. LED is blinking multiple times when the reset button is pressed

Please advise
Thanks in advanced

Yes I used Arduino IDE to burn the bootloader

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:

  1. Disconnect the USB cable of the Arduino board from your computer.
  2. Select Tools > Port from the Arduino IDE menus.
  3. Take note of the ports, if any, listed in the menu.
  4. Close the Tools menu.
    :exclamation: The ports list is only updated when the Tools menu is re-opened, so this step is essential.
  5. Connect the Arduino board to your computer with a USB cable.
  6. 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.

This looks like a Logic Green near clone of the ATmega328P.
See other peoples experience of these, e.g. LGT8F328P Arduino Clone Chip ATMega328P

1 Like

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.

Hi Thanks for prompt reply and help

When the board cable is removed from the PC then no port is listed in the menu
Once the cable is connected COM4 is showing the IDE

image

However problem is remaining same

Thanks

image

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:

  1. Disconnect the USB cable of the Arduino board from your computer.
  2. Disconnect any shields, modules, external circuitry, etc. from your board.
  3. 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.

1 Like

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

Please advice

  1. Disconnect the USB cable of the Arduino board from your computer.
  2. Disconnect any shields, modules, external circuitry, etc. from your board.
  3. Connect the Arduino board to your computer with a USB cable.

This method is followed several times but no success

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.

1 Like

Yes you are correct I tried LGTxxxx few months ago but I re installed Arduino IDE yesterday

as well as I just checked my another laptop to upload the code unfortunately problem is remaining same with that laptop

This is the IC I am using

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.

1 Like