HI MY NAME IS KAVYA
I BOUGHT ARDUINO UNO CH340 2 MONTHS AGO WITH A SOLDRED MICROCONTROLLER
I MADE MANY PROJECTS AND IT WORKED FINE
I WAS WORKING ON A CAR AND I TESTED IT AND IT WORKED
I WANTED TO MAKE SOME CHANGES TO CODE,AFTER CHANGING THE CODE WHEN I UPLOAD THE CODE IT COMPILES BUT
SHOWS UPLOADING THEN A MESSAGE COMES SAYING
avrdude: stk500_recv(): programmer is not
ATEMPT 10
I DID EVERY THING THE BOOTLOADER IS FINE AS THE L LIGHT BLINKS FAST WHEN CLICKING THE RESET BUTTON
THE MICROCONTROLLER IS GOOD BECAUSE THE OLD CODE ON ARDUINO IS WORKING
I DONT KNOW WHATS CAUSING THIS ERROR
AND AFTER SOME TIME NOW IT SHOWS
"an error occured while uploading the code"
Hi @krush91. 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 SELECTED THE RIGHT PORT AS ALWAYS
BUT STILL SHOWING UPLOADING,STUCK UPLOADING
MY ARDUINO HAS A CH340 AND I HAVE ALSO DOWNLOADED ITS DRIVER
what to do now
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.