On Thu, 21 Jul 2016 21:37:03 +0200
Thomas Kopp <20.k...@gmail.com> wrote:
> They actually do - All(or at least most) of the latest xmls (atdfs
> now) for mega and tiny devices contain the defaultvalue for Fuse
> bytes. The attribute is initval. I can't quite remember when they
> were added but it'
On 2016-07-21 20:15, Paul "LeoNerd" Evans wrote:
of "please get me values out of system .h files":
You can go quite some ways with grep
- egrep "define [A-Z]FUSE" /usr/avr/include/avr/*.h | grep can
informs, for instance, about the values for EFUSE, HFUSE and
LFUSE used for can parts
On Jul 16, 2016 3:34 PM, "Paul "LeoNerd" Evans"
wrote:
>
> The reason this is so, is because I'm using the "devices" XML files
> that are supplied with Atmel Studio to get the fuse values from. Those
> give the name, value and mapping location of every fuse, but don't
> supply the default values.
This would be so mucj easier if as with microschip it was in the source
files. Aftee all everything else about the configuration of the mci is
jandled tjere so why not fuses.
Jim
On Jul 21, 2016 11:46 AM, "Paul "LeoNerd" Evans"
wrote:
> On Thu, 21 Jul 2016 22:01:40 +1000
> Erik Christiansen wro
On Thu, 21 Jul 2016 22:01:40 +1000
Erik Christiansen wrote:
> I wouldn't go to the trouble of a C program, but do it with a lot less
> lines of awk, but that's just taste.
That's not going to help.
E.g. on the tiny841,
#define LFUSE_DEFAULT(FUSE_SUT_CKSEL0 & FUSE_SUT_CKSEL2 & \
FUSE_SUT_
On 16.07.16 14:33, Paul "LeoNerd" Evans wrote:
> I notice that the AVR libc per-part .h files do know these values, in a
> way.
>
> $ grep FUSE_DEFAULT /usr/lib/avr/include/avr/iotn84a.h
> #define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & \
>FUSE_SUT0 & FUSE_CKDIV8)
> #define
I'm looking for some sort of machine-readable database (in whatever
format - XML, CSV, some custom text thing; I really don't care)
containing all the default fuse values for AVR chips (or, at least,
ATmega and ATtiny).
The reason being I've written myself a nice program for helping set
fuse valu