PlatformIO Community

Elegoo Nano V3 flashing problem

Hi,

I am trying to flash an Elegoo Nano V3 a Chinese clone of the Arduino nano based on a CH340 and an ATmega328P.
I am using Archlinux and with both the Arduino IDE and PlatformIO using the Arduino framework I do not succeed to flash the firmware.

The output is the following:

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding

And my platformio.ini configuration is the following:

[env:nanoatmega328]
platform = atmelavr
board = nanoatmega328
framework = arduino
upload_speed = 57600

I tried as well without specifying the upload_speed but nothing changed.
Any idea?

Thank you in advance!
Martino

IIRC, you can get that error when trying to flash a 328p that has the new optiboot bootloader but you’re telling the upload tool (avrdude) that it has the older bootloader. Try changing your board to …

nanoatmega328new

… and remove the upload speed parameter (as it isn’t needed, and is wrong for the new bootloader anyway), and see if that cures it. This would be the same as using the ‘Tools -> Processor’ option on the Arduino IDE to change between Atmega328P and Atmega328P (Old Bootloader).

image

Hi @pfeerick,

I tried using the nanoatmega328new as well as using the arduino ide with the ATmega328P processor, however I did not improve the situation.
The avrdude output of the using the nanoatmega328new option is one of the following (seems to alternate):

avrdude: stk500_getsync(): can't communicate with device: resp=0x90


avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0xfc

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0xfc
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_initialize(): failed
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude: stk500_recv(): programmer is not responding

I don’t know if it can help to find the problem!

Thank you in advance,
Martino

Are you sure you have removed the upload_speed parameter?

Are you able to flash using the Arduino IDE? Can you show the settings there?