Upload_port is ignored using programmer


I noticed, that the parameter upload_port (in platform.ini or environment variable) is completely ignored, when I try to upload the firmware to an arduino 2560.
Platform IO is searching for ports and cannot find any suitable programmer and fails.

I found out, that using instead the upload_flags are working, when setting the port like -PCOM2.

Is this a bug or is there any mistake?

That is ok. Please use “upload” instead of “program”.

thanks for your answer @ivankravets.
I’ll give it a try. I am burning the hex directly to the Arduino without a bootloader by using an external programmer.
Is upload still the right method?

See Atmel AVR — PlatformIO latest documentation

Thanks for clarification :slight_smile: