Exactly thats what I do. I tried this first. Then I realized the portnane is slight different from the Arduino IDE to the device list in PlatformIO, so I tried that name, no chance. If I omiit port etc. I get all ports listet and should enter the right number, Does not work too.
I asume it has to do something with the protokoll, what ist the right one für the new Arduino bootloader. stk500, stk500v1, stk500v2, avr910, avr911?
As the board etc, is written in paltformio.ini it should works without other setting except the port selection.
Here are my settings.
[env:nanoatmega328new]
platform = atmelavr
board = nanoatmega328new
framework = arduino.
By the way I’m in the IT industry since about 50 years, startet as programmer, worked later as system administrator and as network specialist and now in my older day I’m programming AVR etc. as a hobby.
thanks füor help
Rainer