Replies: 1 comment 1 reply
-
I have no idea how fuses are set on pio - I've never used it; @MCUdude wrote the platformio doc and was instrumental in making that available. AFAIK fuses are never part of the hex file, at least not for non-microchip tooling (I think Microchip official tools have some way that they embed the fuses in a hex file, we don't do that).. Fuses are set with -Ufusen (where n is a 0 through 8) when uploading or bootloading (again, I don't know how much of this is carried over to platform IO) You can read out the fuses with something like:
Will generate something like:
First 4 bytes are length, address start h, adddress start l, record type, then the next 9 bytes are fuse values, in order, followed by the checksum byte, so that comes out to:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for this wonderful project! I'm working with an ATTiny816 and I can successfully flash with avrdude. I tried to read the current fuse settings and I guess there isn't a configuration in order to do so? This is the message I get after running the command below:
"lfuse" memory type not defined for part "ATtiny816"
Command:
avrdude -c jtag2updi -P com15 -p t816 -U lfuse:r:-:i -v
Output:
I'm also using PlatformIO for development and I want to confirm that using the fuse settings in the .ini file will be part of the my final hex file that I can flash using avrdude. I'm wondering if I can flash the chip one with a single .hex file that would include the fuse settings AND app code. Am I understanding correctly?
platform.ini
Beta Was this translation helpful? Give feedback.
All reactions