Closed pierreis closed 5 months ago
Thanks to some help on discord, I have tested using arduino-cli
for flashing, which consistently works just fine:
tinygo build -scheduler=tasks -target=arduino -o /tmp/test.hex ./main.go && arduino-cli upload -b arduino:avr:uno -p $UNO_DEV_PATH -i /tmp/test.hex .
tinygo flash
remains flaky at best though.
Perhaps you have an older version of avr-dude installed? That is what the tinygo flash
command currently uses "under the hood". Did you install avr-dude via homebrew?
I did install via homebrew indeed. Installed version is 6.3, which seems to be the latest.
Which macOS version?
11.1
I am still running Catalina on my dev machine. I wonder if that is related?
I suppose that is a possibility. Anything I could provide to help debug this?
Oops, sorry I never got to this issue!
I suspect this can be solved using -target=arduino-nano-new
.
indeed it does running on Windows 10 - going by tutorial on https://tinygo.org/docs/tutorials/blinky/ and https://tinygo.org/getting-started/install/windows/ steps for scoop. Thank you.
I am using linux (raspi) day to day as a main platform. This is my first intro to tinygo. :-)
this issue can be close ...
On a Mac, I continuously get issues when flashing an Arduino Uno board via tinygo, with the usual error:
Note that the flashing sometimes works fine (but mostly doesn't).
I do not have any issues whatsoever flashing the board using the Arduino IDE ; only with
tinygo
from the command line.