Replies: 3 comments
-
Ok. So im seeing the problem now. the majority of the switches, and specifically resetupdipins, need to be burned by a bootloader. |
Beta Was this translation helpful? Give feedback.
-
Well actually not. |
Beta Was this translation helpful? Give feedback.
-
The library does not follow a standard. We tried making one a while back; The format is ugly because If I were to parse into python (I'd love to do this but no time - I'm better i avr asm than python). I'd probably use nested dictionaries as the structure, and have a "special" property to hold the "name", so the above (located under boards["boardname"]["menus"] Preserving the whole structure is key if you want to reconstitute the recipes for a given set of options, which I assume is the point. I would be very interested in this. Regarding which fuses are and are not set by burning bootloader only, two fuses can "brick" a DB or tiny, and 1 can brick a DA/DB or Mega 0, these are the BOD fuse, which could be set to something higher than other parts on the board you soldered it to can handle, and SYSCFG0, which is where innocuous things like EEPROM retain sit right next to the bits that disable reset. Obviously for optiboot, everything that changes fuses requires burning bootloader because fuses cannot be self-programmed. |
Beta Was this translation helpful? Give feedback.
-
Hi
I use arduino-cli, and have not been able to find the output containing the selected fuses after compilation, nor are the switches set after upload. Currently i hand compile them and upload with
prog.py --fuses
.Here is a stripped version of the command i am using in an attempt to set the resetupdi pin fuses:
arduino-cli compile --fqbn DxCore:megaavr:avrdd:chip=avr64dd32,resetupdipins=resetupdi ./blink.ino
If i change the switches, recompile, then do a diff of blink.hex and blink.eep, no difference is found. Perhaps
arduino-cli compile
isnt the app that compiles the switches?Loosely related, anyone have any python code for parsing boards.txt that they would be willing to share? Or recognize the format enough to name it? Im sure that i can find a parsing library if it follows a standard.
Regards,
coburn
Beta Was this translation helpful? Give feedback.
All reactions