Talk:Μ

From Noisebridge
Jump to navigation Jump to search

ATtiny85 / buspirate / Arduino IDE[edit source]

Setup[edit source]

This assumes you already have a avrdude and buspirate properly configured and connected, see main page µ for details.

Add ATtiny support to Arduino IDE by appending additional board files, then add attiny from Board Manager. https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json

Select appropriate board and port from Tools menu, select "BusPirate as ISP" from list of programmers, click "Burn bootloader".


Fuses[edit source]

avrdude -c buspirate -P /dev/ttyUSB1 -p t85 -U efuse:w:0xFE:m -U hfuse:w:0xD5:m
avrdude -c buspirate -P /dev/ttyUSB1 -p t85 -U lfuse:w:0xF1:m
avrdude: safemode: Fuses OK (E:FE, H:D5, L:F1)

Burn Bootloader verbose dump[edit source]

avrdude -C/avrdude.conf -v -v -v -v -pattiny85 -cbuspirate -P/dev/ttyUSB1 

avrdude: Version 6.3, compiled on Jan 17 2017 at 11:00:16
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         Using Port                    : /dev/ttyUSB1
         Using Programmer              : buspirate
         AVR Part                      : ATtiny85
         Chip Erase delay              : 400000 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : possible i/o
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    12     4    0 no        512    4      0  4000  4500 0xff 0xff
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash         65     6    32    0 yes      8192   64    128 30000 30000 0xff 0xff
                                  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
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           efuse          0     0     0    0 no          1    0      0  9000  9000 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          1    0      0     0     0 0x00 0x00

         Programmer Type : BusPirate
         Description     : The Bus Pirate

Attempting to initiate BusPirate binary mode...
avrdude: buspirate_send_bin():
	0x0a 0x0a 
avrdude: Send: . [0a] . [0a] 
avrdude: buspirate_send_bin():
	0x00 0x00 0x00 0x00   0x00 0x00 0x00 0x00 
	0x00 0x00 0x00 0x00   0x00 0x00 0x00 0x00 
	0x00 0x00 0x00 0x00   
avrdude: Send: . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: B [42] B [42] I [49] O [4f] 1 [31] 
avrdude: buspirate_recv_bin():
	0x42 0x42 0x49 0x4f   0x31 
BusPirate binmode version: 1
avrdude: buspirate_send_bin():
	0x01 
avrdude: Send: . [01] 
avrdude: Recv: S [53] P [50] I [49] 1 [31] 
avrdude: buspirate_recv_bin():
	0x53 0x50 0x49 0x31   
BusPirate SPI version: 1
avrdude: buspirate_send_bin():
	0x05 0x00 0x00 0x00   0x00 
avrdude: Send: . [05] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [01] 
avrdude: buspirate_recv_bin():
	0x01 
avrdude: Paged flash write enabled.
avrdude: buspirate_send_bin():
	0x49 
avrdude: Send: I [49] 
avrdude: Recv: . [01] 
avrdude: buspirate_recv_bin():
	0x01 
avrdude: buspirate_send_bin():
	0x60 
avrdude: Send: ` [60] 
avrdude: Recv: . [01] 
avrdude: buspirate_recv_bin():
	0x01 
avrdude: buspirate_send_bin():
	0x8a 
avrdude: Send: . [8a] 
avrdude: Recv: . [01] 
avrdude: buspirate_recv_bin():
	0x01 
avrdude: buspirate_send_bin():
	0x06 
avrdude: Send: . [06] 
avrdude: Recv: . [00] 
avrdude: buspirate_recv_bin():
	0x00 
AVR Extended Commands not found.
avrdude: buspirate_send_bin():
	0x48 
avrdude: Send: H [48] 
avrdude: Recv: . [01] 
avrdude: buspirate_recv_bin():
	0x01 
avrdude: buspirate_send_bin():
	0x13 
avrdude: Send: . [13] 
avrdude: Recv: . [01] 
avrdude: buspirate_recv_bin():
	0x01 
avrdude: buspirate_send_bin():
	0xac 0x53 0x00 0x00   
avrdude: Send: . [ac] S [53] . [00] . [00] 
avrdude: Recv: . [00] . [00] S [53] . [00] 
avrdude: buspirate_recv_bin():
	0x00 0x00 0x53 0x00   
avrdude: AVR device initialized and ready to accept instructions

Reading | avrdude: buspirate_send_bin():
	0x13 
avrdude: Send: . [13] 
avrdude: Recv: . [01] 
avrdude: buspirate_recv_bin():
	0x01 
avrdude: buspirate_send_bin():
	0x30 0x00 0x00 0x00   
avrdude: Send: 0 [30] . [00] . [00] . [00] 
avrdude: Recv: . [00] 0 [30] . [00] . [1e] 
avrdude: buspirate_recv_bin():
	0x00 0x30 0x00 0x1e   
avrdude: buspirate_send_bin():
	0x13 
avrdude: Send: . [13] 
avrdude: Recv: . [01] 
avrdude: buspirate_recv_bin():
	0x01 
avrdude: buspirate_send_bin():
	0x30 0x00 0x01 0x00   
avrdude: Send: 0 [30] . [00] . [01] . [00] 
avrdude: Recv: . [00] 0 [30] . [00] . [93] 
avrdude: buspirate_recv_bin():
	0x00 0x30 0x00 0x93   
################avrdude: buspirate_send_bin():
	0x13 
avrdude: Send: . [13] 
avrdude: Recv: . [01] 
avrdude: buspirate_recv_bin():
	0x01 
avrdude: buspirate_send_bin():
	0x30 0x00 0x02 0x00   
avrdude: Send: 0 [30] . [00] . [02] . [00] 
avrdude: Recv: . [00] 0 [30] . [00] . [0b] 
avrdude: buspirate_recv_bin():
	0x00 0x30 0x00 0x0b   
################################## | 100% 0.09s

avrdude: Device signature = 0x1e930b (probably t85)
avrdude: buspirate_send_bin():
	0x00 
avrdude: Send: . [00] 
avrdude: Recv: B [42] B [42] I [49] O [4f] 1 [31] 
avrdude: buspirate_recv_bin():
	0x42 0x42 0x49 0x4f   0x31 
avrdude: buspirate_send_bin():
	0x40 
avrdude: Send: @ [40] 
avrdude: Recv: @ [40] 
avrdude: buspirate_recv_bin():
	0x40 
avrdude: buspirate_send_bin():
	0x0f 
avrdude: Send: . [0f] 
avrdude: Recv: . [01] . [0d] . [0a] B [42] u [75] s [73]   [20] P [50] i [69] 
avrdude: buspirate_recv_bin():
	0x01 0x0d 0x0a 0x42   0x75 0x73 0x20 0x50 
	0x69 
avrdude: Recv: r [72] a [61] t [74] e [65]   [20] v [76] 3 [33] b [62] . [0d] 
avrdude: buspirate_recv_bin():
	0x72 0x61 0x74 0x65   0x20 0x76 0x33 0x62 
	0x0d 
avrdude: Recv: . [0a] F [46] i [69] r [72] m [6d] w [77] a [61] r [72] e [65] 
avrdude: buspirate_recv_bin():
	0x0a 0x46 0x69 0x72   0x6d 0x77 0x61 0x72 
	0x65 
avrdude: Recv:   [20] v [76] 5 [35] . [2e] 1 [31] 0 [30]   [20] ( [28] r [72] 
avrdude: buspirate_recv_bin():
	0x20 0x76 0x35 0x2e   0x31 0x30 0x20 0x28 
	0x72 
avrdude: Recv: 5 [35] 5 [35] 9 [39] ) [29]   [20]   [20] B [42] o [6f] o [6f] 
avrdude: buspirate_recv_bin():
	0x35 0x35 0x39 0x29   0x20 0x20 0x42 0x6f 
	0x6f 
avrdude: Recv: t [74] l [6c] o [6f] a [61] d [64] e [65] r [72]   [20] v [76] 
avrdude: buspirate_recv_bin():
	0x74 0x6c 0x6f 0x61   0x64 0x65 0x72 0x20 
	0x76 
avrdude: Recv: 4 [34] . [2e] 4 [34] . [0d] . [0a] D [44] E [45] V [56] I [49] 
avrdude: buspirate_recv_bin():
	0x34 0x2e 0x34 0x0d   0x0a 0x44 0x45 0x56 
	0x49 
avrdude: Recv: D [44] : [3a] 0 [30] x [78] 0 [30] 4 [34] 4 [34] 7 [37]   [20] 
avrdude: buspirate_recv_bin():
	0x44 0x3a 0x30 0x78   0x30 0x34 0x34 0x37 
	0x20 
avrdude: Recv: R [52] E [45] V [56] I [49] D [44] : [3a] 0 [30] x [78] 3 [33] 
avrdude: buspirate_recv_bin():
	0x52 0x45 0x56 0x49   0x44 0x3a 0x30 0x78 
	0x33 
avrdude: Recv: 0 [30] 4 [34] 6 [36]   [20] ( [28] 2 [32] 4 [34] F [46] J [4a] 
avrdude: buspirate_recv_bin():
	0x30 0x34 0x36 0x20   0x28 0x32 0x34 0x46 
	0x4a 
avrdude: Recv: 6 [36] 4 [34] G [47] A [41] 0 [30] 0 [30] 2 [32]   [20] B [42] 
avrdude: buspirate_recv_bin():
	0x36 0x34 0x47 0x41   0x30 0x30 0x32 0x20 
	0x42 
avrdude: Recv: 8 [38] ) [29] . [0d] . [0a] h [68] t [74] t [74] p [70] : [3a] 
avrdude: buspirate_recv_bin():
	0x38 0x29 0x0d 0x0a   0x68 0x74 0x74 0x70 
	0x3a 
avrdude: Recv: / [2f] / [2f] d [64] a [61] n [6e] g [67] e [65] r [72] o [6f] 
avrdude: buspirate_recv_bin():
	0x2f 0x2f 0x64 0x61   0x6e 0x67 0x65 0x72 
	0x6f 
avrdude: Recv: u [75] s [73] p [70] r [72] o [6f] t [74] o [6f] t [74] y [79] 
avrdude: buspirate_recv_bin():
	0x75 0x73 0x70 0x72   0x6f 0x74 0x6f 0x74 
	0x79 
avrdude: Recv: p [70] e [65] s [73] . [2e] c [63] o [6f] m [6d] . [0d] . [0a] 
avrdude: buspirate_recv_bin():
	0x70 0x65 0x73 0x2e   0x63 0x6f 0x6d 0x0d 
	0x0a 
avrdude: ser_recv(): programmer is not responding
BusPirate is back in the text mode

avrdude done.  Thank you.