Arduino-CLI script #348
Replies: 1 comment
-
Thanks for sharing that. Compared to a classic AVR the fuses are almost harmless imo. What can you do that breaks anything? You can set the BOD to a voltage higher than the operating voltage, and have soldered down a part that won't tolerate any voltage high enough to take it out of BOR to change it back..... uhhh.... if it's a DD you can turn UPDI into GPIO; similar thing possible on the tinies. If you upload through the IDE I'm able to ensure that bootsize is always 0 unless:
There may not be anything else? On classic AVRs, there were only 3 fuses, but one of them could brick it such that a programmer with modified firmware or an hv programmer, or just soft-brick it where you needed to supply a clock (low fuse), and another could turn off programming via ISP altogether and you needed to use HVSP or HVPP to recover (high fuse). Note however that unlike a classic AVR, the bootloader is before the sketch not after. So the sketch cannot be compiled without knowing whether it will have a bootloader! If it doesn't have a bootloader, it needs to start at 0x00, but if it is using optiboot, it needs to start at 0x200 (512 words 256 instruction words, the minimum bootloader size). |
Beta Was this translation helpful? Give feedback.
-
Just wanted to share a bash script i use to compile, upload, and monitor my board using arduino-cli on a raspberry pi zero-w.
Using ssh over wifi minimizes the time spent in the cold, dank basement lab. Other than the near painful arduino-cli compile time, it makes a pretty slick development platform. Perhaps a zero-2w would make the burn-n-learn cycle more pleasant.
Assuming Arduino-cli is already installed on your pi and a browser tab is opened to the 'command reference' section of the arduino-cli documentation https://arduino.github.io/arduino-cli/0.27/ here are my notes on how i installed DxCore:
arduino-cli config add board_manager.additional_urls http://drazzy.com/package_drazzy.com_index.json
arduino-cli core update-index
arduino-cli core search
arduino-cli core install DxCore:megaavr
arduino-cli core list
Some notes on use:
Beta Was this translation helpful? Give feedback.
All reactions