Re: avrdude-dev Digest, Vol 78, Issue 12

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: avrdude-dev Digest, Vol 78, Issue 12

by burli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

avrdude-dev-request@... schrieb:

> In Atmel Application Note 1307 there is an Excel file showing the
> XMega baud rate settings:
>
> http://www.atmel.com/dyn/resources/prod_documents/AVR1307.zip
>
> Baudrate_Calaculations.xls
>
This Ecxel file does not work with OOo. I have made a little online
calculator for the Xmega USART

http://avrcalc.elektronik-projekt.de/

Please send me a message if you find any kind of problem.


Meanwhile I made some tests with a patched avrdude 5.6 (usb_libusb.c)
and ATxmega128A1. Chip Erase, reading and writing Flash works fine.

Reading and writing fuses does'nt work. I try it with -U fuse0:r:-:i

Reading fuse bytes using fuse0, fuse1 ... runs without error, but it
always reads 0xFF. Writing Fuses fails.

Reading and writing Eeprom seems to work

I can only test avrdude 5.6 and ATmega128A1, so that's all for now

Regards
Markus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkqRF2QACgkQkLMXWByOeRf93ACfYo0ZWuyznDZ74Ori4SCyZLRy
9hAAn1ZL0hOH82RKaqJDpq3zVO1UBh9t
=EOe5
-----END PGP SIGNATURE-----


_______________________________________________
avrdude-dev mailing list
avrdude-dev@...
http://lists.nongnu.org/mailman/listinfo/avrdude-dev

Re: Re: avrdude-dev Digest, Vol 78, Issue 12

by burli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
I have add two files with the debug output from avrdude 5.6 and 5.8

I guess, the important difference is in line 107 (avrdude 5.6)

avrdude: Sent: P [50] . [07] . [02] . [00]   [20]

The corresponding line in avrdude 5.8 is 116

avrdude: Sent: P [50] . [07] . [02] . [01] . [00]


I hope this information is helpfull to fix avrdude

Regards
Markus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkqVqCYACgkQkLMXWByOeRfLNACglH7+dW351AiDCYFOwxeCCxEm
QIcAnjhjNNJTDcO32eT3Y3rrNuAUQfcg
=oi3x
-----END PGP SIGNATURE-----

burli@werkbank:~$ avrdude -px128a1 -cavrisp2 -Pusb -e -vvvv

avrdude: Version 5.6, compiled on Aug 17 2009 at 22:48:45
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         System wide configuration file is "/usr/local/etc/avrdude.conf"
         User configuration file is "/home/burli/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : usb
         Using Programmer              : avrisp2
avrdude: usbdev_open(): Found AVRISP mkII, serno: 0000B0004318
avrdude: usbdev_open(): using read endpoint 0x82
avrdude: Sent: . [01]
avrdude: Recv: . [01] . [00] . [0a] A [41] V [56] R [52] I [49] S [53] P [50] _ [5f] M [4d] K [4b] 2 [32]
avrdude: stk500v2_getsync(): found AVRISP mkII programmer
         AVR Part                      : ATXMEGA128A1
         Chip Erase delay              : 0 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 0
         StabDelay                     : 0
         CmdexeDelay                   : 0
         SyncLoops                     : 0
         ByteDelay                     : 0
         PollIndex                     : 0
         PollValue                     : 0x00
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom         0     0     0    0 no       2048   32      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash          0     0     0    0 no     131072  512      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           boot           0     0     0    0 no       8192  512      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse0          0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse1          0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse2          0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse4          0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse5          0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lockbits       0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           calibration    0     0     0    0 no        512    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           usersig        0     0     0    0 no        512    0      0     0     0 0x00 0x00

         Programmer Type : STK500V2
         Description     : Atmel AVR ISP mkII
         Programmer Model: AVRISP mkII
avrdude: Sent: . [03] . [90]
avrdude: Recv: . [03] . [00] . [01]
avrdude: Sent: . [03] . [91]
avrdude: Recv: . [03] . [00] . [01]
avrdude: Sent: . [03] . [92]
avrdude: Recv: . [03] . [00] . [0c]
         Hardware Version: 1
         Firmware Version Master : 1.12
avrdude: Sent: . [03] . [94]
avrdude: Recv: . [03] . [00]   [20]
         Vtarget         : 3.2 V
avrdude: Sent: . [03] . [98]
avrdude: Recv: . [03] . [00] . [07]
         SCK period      : 10.37 us

avrdude: Sent: Q [51] . [00]
avrdude: Recv: Q [51] . [00]
avrdude: Sent: P [50] . [01]
avrdude: Recv: P [50] . [01] . [00]
avrdude: Sent: P [50] . [07] . [01] . [01] . [00] . [01] . [c0]
avrdude: Recv: P [50] . [07] . [00]
avrdude: Sent: P [50] . [07] . [02] . [00]   [20]
avrdude: Recv: P [50] . [07] . [00]
avrdude: AVR device initialized and ready to accept instructions

Reading |                                                    | 0% 0.00savrdude: Sent: P [50] . [05] . [01] . [01] . [00] . [00] . [90] . [00] . [01]
avrdude: Recv: P [50] . [05] . [00] . [1e]
avrdude: Sent: P [50] . [05] . [01] . [01] . [00] . [00] . [91] . [00] . [01]
avrdude: Recv: P [50] . [05] . [00] . [97]
Reading | #################                                  | 33% 0.00savrdude: Sent: P [50] . [05] . [01] . [01] . [00] . [00] . [92] . [00] . [01]
avrdude: Recv: P [50] . [05] . [00] L [4c]
Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e974c
avrdude: Sent: P [50] . [05] . [03] . [00] . [8c] . [07] . [fc] . [00] . [01]
avrdude: Recv: P [50] . [05] . [00] . [ff]
avrdude: Sent: P [50] . [05] . [03] . [00] . [8c] . [07] . [fd] . [00] . [01]
avrdude: Recv: P [50] . [05] . [00] . [ff]
avrdude: Sent: P [50] . [05] . [03] . [00] . [8c] . [07] . [fe] . [00] . [01]
avrdude: Recv: P [50] . [05] . [00] . [ff]
avrdude: Sent: P [50] . [05] . [03] . [00] . [8c] . [07] . [ff] . [00] . [01]
avrdude: Recv: P [50] . [05] . [00] . [ff]
avrdude: erasing chip
avrdude: Sent: P [50] . [03] . [01] . [00] . [00] . [00] . [00]
avrdude: Recv: P [50] . [03] . [00]

avrdude: safemode: Fuses OK
avrdude: Sent: P [50] . [02]
avrdude: Recv: P [50] . [02] . [00]

avrdude done.  Thank you.


burli@werkbank:~$ avrdude -px128a1 -cavrisp2 -Pusb -e -vvvv

avrdude: Version 5.8cvs, compiled on Aug 17 2009 at 20:45:56
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/usr/local/etc/avrdude.conf"
         User configuration file is "/home/burli/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : usb
         Using Programmer              : avrisp2
avrdude: usbdev_open(): Found AVRISP mkII, serno: 0000B0004318
avrdude: usbdev_open(): using read endpoint 0x82
avrdude: Sent: . [01]
avrdude: Recv: . [01] . [00] . [0a] A [41] V [56] R [52] I [49] S [53] P [50] _ [5f] M [4d] K [4b] 2 [32]
avrdude: stk500v2_getsync(): found AVRISP mkII programmer
         AVR Part                      : ATXMEGA128A1
         Chip Erase delay              : 0 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 0
         StabDelay                     : 0
         CmdexeDelay                   : 0
         SyncLoops                     : 0
         ByteDelay                     : 0
         PollIndex                     : 0
         PollValue                     : 0x00
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom         0     0     0    0 no       2048  256      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           application    0     0     0    0 no     131072  256      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           apptable       0     0     0    0 no       8192  256      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           boot           0     0     0    0 no       8192  256      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash          0     0     0    0 no     139264  256      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           prodsig        0     0     0    0 no        512  256      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           usersig        0     0     0    0 no        512  256      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse0          0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse1          0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse2          0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse4          0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse5          0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock           0     0     0    0 no          1    0      0     0     0 0x00 0x00

         Programmer Type : STK500V2
         Description     : Atmel AVR ISP mkII
         Programmer Model: AVRISP mkII
avrdude: Sent: . [03] . [90]
avrdude: Recv: . [03] . [00] . [01]
avrdude: Sent: . [03] . [91]
avrdude: Recv: . [03] . [00] . [01]
avrdude: Sent: . [03] . [92]
avrdude: Recv: . [03] . [00] . [0c]
         Hardware Version: 1
         Firmware Version Master : 1.12
avrdude: Sent: . [03] . [94]
avrdude: Recv: . [03] . [00]   [20]
         Vtarget         : 3.2 V
avrdude: Sent: . [03] . [98]
avrdude: Recv: . [03] . [00] . [07]
         SCK period      : 10.37 us

avrdude: Sent: Q [51] . [00]
avrdude: Recv: Q [51] . [00]
avrdude: Sent: P [50] . [01]
avrdude: Recv: P [50] . [01] . [00]
avrdude: Sent: P [50] . [07] . [01] . [01] . [00] . [01] . [c0]
avrdude: Recv: P [50] . [07] . [00]
avrdude: Sent: P [50] . [07] . [02] . [01] . [00]
avrdude: Recv: P [50] . [07] . [00]
avrdude: AVR device initialized and ready to accept instructions

Reading |                                                    | 0% 0.00savrdude: Sent: P [50] . [05] . [01] . [02] . [00] . [00] . [90] . [00] . [01]
avrdude: Recv: P [50] . [05] . [00] . [00]
avrdude: Sent: P [50] . [05] . [01] . [02] . [00] . [00] . [91] . [00] . [01]
avrdude: Recv: P [50] . [05] . [00] . [00]
Reading | #################                                  | 33% 0.00savrdude: Sent: P [50] . [05] . [01] . [02] . [00] . [00] . [92] . [00] . [01]
avrdude: Recv: P [50] . [05] . [00] . [00]
Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.

avrdude: Sent: P [50] . [02]
avrdude: Recv: P [50] . [02] . [00]

avrdude done.  Thank you.


_______________________________________________
avrdude-dev mailing list
avrdude-dev@...
http://lists.nongnu.org/mailman/listinfo/avrdude-dev