ArduinoOTA icon indicating copy to clipboard operation
ArduinoOTA copied to clipboard

Arduino IDE 2.0 Error with fake progrmmer method

Open AcThPaU opened this issue 2 years ago • 6 comments

Property 'program.tool.' is undefined

tools.arduinoOTA.cmd={runtime.tools.arduinoOTA.path}/bin/arduinoOTA tools.arduinoOTA.program.params.verbose= tools.arduinoOTA.program.params.quiet= tools.arduinoOTA.program.pattern="{cmd}" -address {ip} -port 65280 -username arduino -password password -sketch "{build.path}/{build.project_name}.bin" -upload /sketch -b

arduinoOTA104.name=Arduino OTA arduinoOTA104.program.tool = arduinoOTA arduinoOTA104.ip=192.168.1.236

AcThPaU avatar Jun 28 '22 09:06 AcThPaU

try the GitHub version. there is a fix but I didn't create a release yet

JAndrassy avatar Jun 28 '22 11:06 JAndrassy

tried, still the same error

AcThPaU avatar Jul 01 '22 12:07 AcThPaU

did you copy the new platform.local.txt?

JAndrassy avatar Jul 01 '22 13:07 JAndrassy

you did not update samd for 3 years.

AcThPaU avatar Jul 02 '22 13:07 AcThPaU

sorry but how should I know you use SAMD? AVR is updated. but not the fake programmer I see now. I think programmers didn't work in IDE 2 when I added support for it in avc/platform.local.txt

JAndrassy avatar Jul 02 '22 14:07 JAndrassy

it is a bug in IDE 2. upload with fake programmer works as it is for custom boards definitions in hardware folder (my_boards), but it ends with error "Property 'program.tool.serial' is undefined" for boards from installed packages. program.tool.serial is not used by fake programmer.

JAndrassy avatar Jul 02 '22 15:07 JAndrassy

so the solution is to add

arduinoOTA104.program.default=arduinoOTA

to definition in programmers.txt for IDE 2 and CLI

JAndrassy avatar Sep 26 '22 14:09 JAndrassy