Board-dat/DPR/DPR1088-dat/DPR1088-dat.md
... ...
@@ -1,7 +1,9 @@
1 1
2 2
# DPR1088-dat
3 3
4
+https://www.electrodragon.com/product/usbasp-programmer-r2-53-3v-supported-avr-arduino/
4 5
6
+- [[USBASP-dat]]
5 7
6 8
## SCH
7 9
... ...
@@ -21,6 +23,9 @@
21 23
22 24
AVR系列: ATTiny12(L)、ATTiny13(V)、ATTiny15(L)、ATTiny24(V)、ATTiny25(V)、ATTiny26(L)、ATTiny2313(V)、ATTiny44(V)、ATTiny45(V)、ATTiny84(V)、ATTiny85(V)、AT90S2313(L)、AT90S2323(L)、AT90S2343(L)、AT90S1200(L)、AT90S8515(L)、AT90S8535(L)、ATMEGA48(V)、ATMEGA8(L)、ATMEGA88(V)、ATMEGA8515(L)、ATMEGA8535(L)、ATMEGA16(L)、ATMEGA162(V)、ATMEGA163(L)、ATMEGA164(V)、ATMEGA165(V)、ATMEGA168(V)、ATMEGA169(V)、ATMEGA169P(V)、ATMEGA32(L)、ATMEGA324(V)、ATMEGA325(V)、ATMEGA3250(V)、ATMEGA329(V)、ATMEGA3290(V)、ATMEGA64(L)、ATMEGA640(V)、ATMEGA644(V)、ATMEGA645(V)、ATMEGA6450(V)、ATMEGA649(V)、ATMEGA6490(V)、ATMEGA128(L)、ATMEGA1280(V)、ATMEGA1281(V)、ATMEGA2560(V)、ATMEGA2561(V)、AT90CAN32、AT90CAN64、AT90CAN128、AT90PWM2(B)、AT90PWM3(B)等
23 25
26
+## compatible software
27
+
28
+- [[avrdude-dat]]
24 29
25 30
## ref
26 31
SDK-dat/AVR-dat/avr-dat.md
... ...
@@ -14,6 +14,44 @@
14 14
- [[atmega328-dat]]
15 15
16 16
17
+
18
+### Fuse bit
19
+
20
+Atmega328p UNO
21
+
22
+| fuse set | UNO-1 | UNO-1 note | UNO-2 | | empty | |
23
+| -------- | ----- | ------------------------------ | ----- | --- | ----- | --- |
24
+| e | 05 | | FD | | FF | |
25
+| h | DE | | DE | | D9 | |
26
+| l | FF | | FF | | 62 | |
27
+| LB | 0F | bootloader area NOT visit-able | ? | | | |
28
+
29
+
30
+Lock bit
31
+
32
+- BLB12 BLB11 - app to bootloader
33
+- BLB02 BLB01 - bootloader to app
34
+- LB2 LB1 - visit control to Flash, EEPROM, Fuse (hfuse, lfuse, efuse) and Boot Lock Bit
35
+
36
+low fuse
37
+
38
+* bootloader area NOT visit-able - lfuse set to 0x0F
39
+* bootloader area visit-able - lfuse set to 0x3F
40
+
41
+
42
+
43
+
44
+## board
45
+
46
+- [[arduino-uno-dat]]
47
+
48
+## bootloarder
49
+
50
+
51
+
52
+- [[avrdude-dat]]
53
+
54
+
17 55
## PROG
18 56
19 57
- [[DPR1009-dat]] - [[DPR1088-dat]]
SDK-dat/AVR-dat/avrdude-dat/avrdude-dat.md
... ...
@@ -58,11 +58,29 @@ CMD3
58 58
avrdude done. Thank you.
59 59
60 60
61
-## AVRDUDE + USBASP
61
+## AVRDUDE + USBASP, get start within arduino IDE
62 62
63
+- [[avrdude-dat]]
64
+
65
+avrdude locate
66
+* D:\arduino-1.8.19-windows\arduino-1.8.19\hardware\tools\avr\bin
63 67
* cd D:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr\bin
64 68
65
-Flash using conf file
69
+conf file locate
70
+* D:\arduino-1.8.19-windows\arduino-1.8.19\hardware\tools\avr\etc
71
+
72
+bootloader file locate
73
+* D:\arduino-1.8.19-windows\arduino-1.8.19\hardware\arduino\avr\bootloaders\optiboot\optiboot_atmega328.hex
74
+
75
+running with conf file
76
+
77
+ avrdude -C D:\avrdude.conf -c jtag2updi -P com285 -p avr128db64
78
+
79
+based on [[cmd-dat]] varilables
80
+
81
+ %ad% -C %conf% -c USBASP -P USB -p atmega328p
82
+
83
+### Read Chip using conf file
66 84
67 85
avrdude -CD:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr\etc\avrdude.conf -c usbasp -p m328p -b 19200
68 86
... ...
@@ -77,7 +95,7 @@ Flash using conf file
77 95
78 96
avrdude done. Thank you.
79 97
80
-Read ATMEGA328P
98
+Correctly Read ATMEGA328P
81 99
82 100
Reading | ################################################## | 100% 0.02s
83 101
... ...
@@ -87,15 +105,25 @@ Read ATMEGA328P
87 105
88 106
avrdude done. Thank you.
89 107
90
-Flash bootloader for Arduino UNO
108
+
109
+
110
+### Flash bootloader for Arduino UNO
91 111
92 112
avrdude -CD:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr\etc\avrdude.conf -c usbasp -p m328p -b 19200 -U flash:w:"D:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\arduino\avr\bootloaders\optiboot\optiboot_atmega328.hex":a
93 113
114
+ set "bl=D:\arduino-1.8.19-windows\arduino-1.8.19\hardware\arduino\avr\bootloaders\optiboot\optiboot_atmega328.hex"
115
+
116
+ %ad% -C %conf% -c USBASP -p m328p -b 19200 -U flash:w:"%bl%":a
117
+
118
+ %ad% -C %conf% -c USBASP -p m328p -b 19200 -U flash:w:"%bl%":i -U efuse:w:0xFD:m -U hfuse:w:0xDE:m -U lfuse:w:0xFF:m
119
+
120
+full commands by arduino IDE, this will be failed if use alone
94 121
95
-## with conf file
122
+ C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -cusbasp -Pusb -Uflash:w:D:\arduino-1.8.19-windows\arduino-1.8.19\hardware\arduino\avr/bootloaders/optiboot/optiboot_atmega328.hex:i -Ulock:w:0x0F:m
96 123
97
-avrdude -C D:\avrdude.conf -c jtag2updi -P com285 -p avr128db64
124
+ C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -cusbasp -Pusb -Uflash:w:D:\arduino-1.8.19-windows\arduino-1.8.19\hardware\arduino\avr/bootloaders/optiboot/optiboot_atmega328.hex:i -Ulock:w:0x0F:m
98 125
126
+- [[avrdude-log-dat]]
99 127
100 128
## Supported List
101 129
SDK-dat/AVR-dat/avrdude-dat/avrdude-log-dat.md
... ...
@@ -0,0 +1,99 @@
1
+
2
+# avrdude-log-dat.md
3
+
4
+arduino command
5
+
6
+ D:\arduino-1.8.19-windows\arduino-1.8.19\hardware\tools\avr\bin>C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -cusbasp -Pusb -Uflash:w:D:\arduino-1.8.19-windows\arduino-1.8.19\hardware\arduino\avr/bootloaders/optiboot/optiboot_atmega328.hex:i -Ulock:w:0x0F:m
7
+
8
+ avrdude: Version 6.3-20190619
9
+ Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
10
+ Copyright (c) 2007-2014 Joerg Wunsch
11
+
12
+ System wide configuration file is "C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
13
+
14
+ Using Port : usb
15
+ Using Programmer : usbasp
16
+ AVR Part : ATmega328P
17
+ Chip Erase delay : 9000 us
18
+ PAGEL : PD7
19
+ BS2 : PC2
20
+ RESET disposition : dedicated
21
+ RETRY pulse : SCK
22
+ serial program mode : yes
23
+ parallel program mode : yes
24
+ Timeout : 200
25
+ StabDelay : 100
26
+ CmdexeDelay : 25
27
+ SyncLoops : 32
28
+ ByteDelay : 0
29
+ PollIndex : 3
30
+ PollValue : 0x53
31
+ Memory Detail :
32
+
33
+ Block Poll Page Polled
34
+ Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
35
+ ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
36
+ eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
37
+ flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
38
+ lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
39
+ hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
40
+ efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
41
+ lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
42
+ calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
43
+ signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
44
+
45
+ Programmer Type : usbasp
46
+ Description : USBasp, http://www.fischl.de/usbasp/
47
+
48
+ avrdude: auto set sck period (because given equals null)
49
+ avrdude: warning: cannot set sck period. please check for usbasp firmware update.
50
+ avrdude: AVR device initialized and ready to accept instructions
51
+
52
+ Reading | ################################################## | 100% 0.03s
53
+
54
+ avrdude: Device signature = 0x1e950f (probably m328p)
55
+ avrdude: safemode: lfuse reads as 62
56
+ avrdude: safemode: hfuse reads as D9
57
+ avrdude: safemode: efuse reads as FF
58
+ avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
59
+ To disable this feature, specify the -D option.
60
+ avrdude: erasing chip
61
+ avrdude: auto set sck period (because given equals null)
62
+ avrdude: warning: cannot set sck period. please check for usbasp firmware update.
63
+ avrdude: reading input file "D:\arduino-1.8.19-windows\arduino-1.8.19\hardware\arduino\avr/bootloaders/optiboot/optiboot_atmega328.hex"
64
+ avrdude: writing flash (32768 bytes):
65
+
66
+ Writing | ################################################## | 100% 0.03s
67
+
68
+ avrdude: 32768 bytes of flash written
69
+ avrdude: verifying flash memory against D:\arduino-1.8.19-windows\arduino-1.8.19\hardware\arduino\avr/bootloaders/optiboot/optiboot_atmega328.hex:
70
+ avrdude: load data flash data from input file D:\arduino-1.8.19-windows\arduino-1.8.19\hardware\arduino\avr/bootloaders/optiboot/optiboot_atmega328.hex:
71
+ avrdude: input file D:\arduino-1.8.19-windows\arduino-1.8.19\hardware\arduino\avr/bootloaders/optiboot/optiboot_atmega328.hex contains 32768 bytes
72
+ avrdude: reading on-chip flash data:
73
+
74
+ Reading | ################################################## | 100% 0.02s
75
+
76
+ avrdude: verifying ...
77
+ avrdude: 32768 bytes of flash verified
78
+ avrdude: reading input file "0x0F"
79
+ avrdude: writing lock (1 bytes):
80
+
81
+ Writing | ################################################## | 100% 0.01s
82
+
83
+ avrdude: 1 bytes of lock written
84
+ avrdude: verifying lock memory against 0x0F:
85
+ avrdude: load data lock data from input file 0x0F:
86
+ avrdude: input file 0x0F contains 1 bytes
87
+ avrdude: reading on-chip lock data:
88
+
89
+ Reading | ################################################## | 100% 0.01s
90
+
91
+ avrdude: verifying ...
92
+ avrdude: 1 bytes of lock verified
93
+
94
+ avrdude: safemode: lfuse reads as 62
95
+ avrdude: safemode: hfuse reads as D9
96
+ avrdude: safemode: efuse reads as FF
97
+ avrdude: safemode: Fuses OK (E:FF, H:D9, L:62)
98
+
99
+ avrdude done. Thank you.
... ...
\ No newline at end of file
SDK-dat/arduino-dat/Arduino-IDE-DAT/arduino-lib-dat/arduino-lib-dat.md
... ...
@@ -21,4 +21,6 @@ https://github.com/esp8266/Arduino
21 21
- [[NWL1093-dat]]
22 22
- https://www.arduino.cc/reference/en/libraries/psxnewlib/
23 23
- https://github.com/madsci1016/Arduino-PS2X
24
-- https://www.arduino.cc/reference/en/libraries/ps2keyadvanced/
... ...
\ No newline at end of file
0
+- https://www.arduino.cc/reference/en/libraries/ps2keyadvanced/
1
+
2
+
SDK-dat/arduino-dat/arduino-boards-bootloarder-dat/arduino-boards-bootloarder-dat.md
... ...
@@ -0,0 +1,13 @@
1
+
2
+# arduino-boards-bootloarder-dat
3
+
4
+
5
+
6
+
7
+## Other type bootloader
8
+
9
+* [http://drazzy.com/package_drazzy.com_index.json https://github.com/SpenceKonde/ATTinyCore]
10
+* [https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json https://github.com/damellis/attiny]
11
+* [https://raw.githubusercontent.com/mikaelpatel/Cosa/master/package_cosa_index.json https://github.com/mikaelpatel/Cosa]
12
+* [http://www.leonardomiliani.com/repository/package_leonardomiliani.com_index.json https://github.com/leomil72/megax8]
13
+* [https://mcudude.github.io/MicroCore/package_MCUdude_MicroCore_index.json https://github.com/MCUdude/MicroCore]
SDK-dat/arduino-dat/arduino-dat.md
... ...
@@ -4,7 +4,7 @@
4 4
- legacy wiki page - https://w.electrodragon.com/w/Category:Arduino
5 5
6 6
7
-
7
+## boards
8 8
9 9
- [[arduino-uno-dat]] - [[arduino-pro-mini-dat]] - [[arduino-nano-dat]] - [[arduino-leonardo-dat]]
10 10
... ...
@@ -25,6 +25,10 @@
25 25
26 26
- [[DAR1053-dat]]
27 27
28
+## LIB
29
+
30
+- [[arduino-lib-dat]]
31
+
28 32
29 33
## Programmer
30 34
SDK-dat/cmd-dat/cmd-dat.md
... ...
@@ -0,0 +1,16 @@
1
+
2
+# cmd-dat
3
+
4
+test
5
+
6
+ set "aaa=bbb"
7
+ echo %aaa%
8
+ bbb
9
+
10
+ set "conf=D:\arduino-1.8.19-windows\arduino-1.8.19\hardware\tools\avr\etc\avrdude.conf"
11
+
12
+ set "ad=D:\arduino-1.8.19-windows\arduino-1.8.19\hardware\tools\avr\bin\avrdude.exe"
13
+ %ad%
14
+
15
+ %ad% -C %conf%
16
+
board-series-dat/arduino-avr-dat/arduino-uno-dat/arduino-uno-dat.md
... ...
@@ -9,6 +9,10 @@ https://docs.arduino.cc/hardware/uno-rev3
9 9
![](2024-03-26-16-17-03.png)
10 10
11 11
12
+
13
+
14
+
15
+
12 16
## ref
13 17
14 18
- datasheet - https://docs.arduino.cc/resources/datasheets/A000066-datasheet.pdf
... ...
@@ -18,4 +22,6 @@ https://docs.arduino.cc/hardware/uno-rev3
18 22
19 23
## ref
20 24
25
+- [[avr-dat]]
26
+
21 27
- [[arduino-dat]]
... ...
\ No newline at end of file