macborbon / avr-xboot

Automatically exported from code.google.com/p/avr-xboot
0 stars 0 forks source link

Unable to read fuse-bytes #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the product are you using? On what operating system?
MCU: ATxmega128a1
XBoot Rev. (SVN): 32
AVRdude Version: 5.11.1
OS: Windows 7 Enterprise 64bit

Hi, 
i started to use your bootloader. Writing and verifying the flash and eeprom 
are working pretty well (thanks).
But i'm not able to read any fuse-byte. 
Bootloader features like (ENABLE_FUSE_BITS) are still uncommented.

What steps will reproduce the problem?
1. I tried to read the low fuse byte with AVRdude. (I saw, that this command is 
implemented in xboot).
avrdude -p atxmega128a1 -P com4 -c avr109 -b 115200 -U lfuse:r:-:i

2. But AVRdude says: 
"lfuse" memory type not defined for part "ATXMEGA128A1"

3. OK - the ATxmega128a1 has 5 fuse-bytes. So i tried to use AVRdude-command 
"fuseN":
avrdude -p atxmega128a1 -P com4 -c avr109 -b 115200 -U fuse1:r:-:i

4. No success. The output of AVRdude is:
avrdude: reading fuse1 memory:
Reading|  ... | 0% 0.00savr_read(): error reading address 0x0000
    read operation not supported for memory "fuse1"
avrdude: faild to read all of fuse1 memory, rc=-2

What is the expected output? What do you see instead?
It seems to me, that the "fuseN"-command is atm not implemented in xboot and 
AVRdude don't allow the "fuse/lfuse/hfuse/efuse"-commands for the ATxmega128a1.

Do i do anything wrong or isn't it correctly implemented? Can i change anything 
to make it possible reading the fuse bytes?

Original issue reported on code.google.com by David.He...@googlemail.com on 14 Jun 2012 at 1:54

Attachments: