I want my firmware to check that the correct fuse bits has been set. I am trying to do this like this:
#define LOWFUSEBITS (*((volatile char *) 0x0000)) #define LOCKFUSEBITS (*((volatile char *) 0x0001)) #define EXTENDEDFUSEBITS (*((volatile char *) 0x0002)) #define HIGHFUSEBITS (*((volatile char *) 0x0003))
And then use it as normal read only variables.
But I cant seem to get the correct data, I just read 0, 64, 0 64.
Is there anything obvious I am doing wrong? Im using the ATmega32C1.