I am using an ESP8266 and I tried to modify the file ~/.platformio/packages/framework-arduinoespressif/platform.txt to add a new programmer, but it does not work.
Even if I try to modify tools.esptool.cmd=fakeProgram, I have no errors and esptools still used.
I try to check the documentation but did not find, where can I modify the program used to upload ?
Oh, it was in the doc… shame on me !!
By the way there might be a mistake in the documentation : Import('env') gives in a error that env is not found, but this referenced snippet works.