I received a bunch of nanos last week and used them on platformio, no issues.
I then needed to use Arduino IDE 1.8.5 and compiled something but could not upload it. Being a 3rd party nano, I used my USBtinyISP and put the stock bootloader on it. Worked like a charm. Uploaded several times.
Went back to PlatformIO and it would not do an upload to that board any more.
Configuring upload protocol...
AVAILABLE: arduino
CURRENT: upload_protocol = arduino
Looking for upload port...
Use manually specified: com3
Uploading .pioenvs\nano328\firmware.hex
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x54
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x54
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x54
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x54
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x54
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x54
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x54
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x54
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x54
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x54
avrdude done. Thank you.
*** [upload] Error 1
Activate verbose output by executing pio settings set force_verbose Yes and re-upload. You should see the avrdude command and the used config file. Activate verbosity in the Arduino IDE to see what config file it uses. Compare the two.
Hummmm, I wonder if there is another problem not related to the bootloader.
But, as you say it works ok on Arduino IDE that looks to be the problem.
I was told in the Arduino forum that the “new” Nano bootloader was not a good choice, it was much better to write the Uno bootloader to the Nano, and from then on use the board as a Uno.
An alternative was to use the MiniCore bootloader, I installed it in Arduino IDE and burnt the boot loader with an USBASP v2. When I tried that board on platorm io it didn’t work as a Nano, I tried to change the .ini to uno and it worked immediately.
Or you can burn the “old” Nano bootloader. => Tools/Board: Arduino Nano/Processor: ATmega328p/ATmega328p (old bootloader) then write the bootloader.
Same problem. I have some Nanos I can program with Arduino IDE but not Platformio. Is there a fix in the works? Maybe a parameter that needs setting in the platformio.ini file???
:-\
I take it you had the same problem (Nano’s not uploading with PIO) and using nanoatmega328new as board type fixed it for you? Meaning the old workaround of using the uno board type with the new bootloader (mentioned above) is no longer needed?