I am having trouble reading fuse values on an XMEGA128A3U and 128D3. When I read the fuses I get 0x00 for fuses 0, 1 and 2. Fuses 4 and 5 give me the correct values.
I have verified with a JTAGICE3 that fuses 0, 1 and 2 are not 0x00. Fuse 2 in particular should read 0xBF.
I tried the older Atmel driver (SP_ReadFuseByte) and the ASF driver (nvm_fuses_read) and both return the same result. As far as I can tell there are no special requirements such as being the bootloader section, it should just work.
Has anyone managed to read the fuse bytes correctly? I see some public bootloader code that claims to but it all seems to be broken (designed for older AVRs with three fuses, not XMEGA).