Arduino-CLI script #348
Replies: 2 comments
|
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). |
|
I recently had to install the core manually, which is a bit of a chore. Thought maybe i'd document it here. This is from a linux point of view, so arduino's file structure might be different on other systems. manual chip platform installManually install the platform if the very latest libraries are desired, you might want to develop on it, or other methods of installation have failed. The toolset is still needed, either via the arduino-cli core install described at the top of this chain, or the manual tools install below.
manual azduino tools installIf possible, the arduino-cli method of core installation is highly recommended, otherwise:
So im my case:
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.jsonarduino-cli core update-indexarduino-cli core searcharduino-cli core install DxCore:megaavrarduino-cli core listSome notes on use:
All reactions