1605965c61c549c44b33c7f439346a8dd1f56bd3
Board-dat/Board-DAT.md
| ... | ... | @@ -51,7 +51,7 @@ AVR |
| 51 | 51 | |
| 52 | 52 | ### DOD |
| 53 | 53 | |
| 54 | -[[AVR-dat]] |
|
| 54 | +[[avr-sdk-dat]] |
|
| 55 | 55 | - [[DOD1046-dat]] - [[DOD1071-DAT]] - [[DOD1074-DAT]] - [[DOD1060-dat]] |
| 56 | 56 | |
| 57 | 57 | [[RISC-V-dat]] |
Board-dat/DAR/DAR1047-dat/DAR1047-dat.md
| ... | ... | @@ -33,7 +33,7 @@ Steps: |
| 33 | 33 | |
| 34 | 34 | ## debug |
| 35 | 35 | |
| 36 | -* During upload sketch in you encounter any error, update the board driver to lisusb-win32 by [[AVR-dat]] |
|
| 36 | +* During upload sketch in you encounter any error, update the board driver to lisusb-win32 by [[avr-sdk-dat]] |
|
| 37 | 37 | |
| 38 | 38 | * Blink - On board test LED is D1, please try pinMode(1, OUTPUT); |
| 39 | 39 |
Board-dat/DPR/DPR1023-dat/DPR1023-dat.md
| ... | ... | @@ -7,4 +7,4 @@ from avr ISP-10 to ICSP-6 |
| 7 | 7 | |
| 8 | 8 | ## ref |
| 9 | 9 | |
| 10 | -- [[avr-dat]] |
|
| ... | ... | \ No newline at end of file |
| 0 | +- [[avr-sdk-dat]] |
|
| ... | ... | \ No newline at end of file |
Board-dat/DVA/DVA1002-dat/DVA1002-dat.md
| ... | ... | @@ -47,4 +47,4 @@ relevant library |
| 47 | 47 | |
| 48 | 48 | - [[dva1002]] |
| 49 | 49 | |
| 50 | -- [[AVR-dat]] |
|
| ... | ... | \ No newline at end of file |
| 0 | +- [[avr-sdk-dat]] |
|
| ... | ... | \ No newline at end of file |
Chip-dat/AVR-dat/AVR-dat.md
| ... | ... | @@ -0,0 +1,4 @@ |
| 1 | + |
|
| 2 | +# AVR-dat |
|
| 3 | + |
|
| 4 | +- [[tinyAVR-dat]] - [[avr128-dat]] - [[attiny-dat]] - [[atmega328-DAT]] - [[atmega32u4-dat]] |
|
| ... | ... | \ No newline at end of file |
Chip-dat/ST-dat/STM32-dat/STM32F030-dat/STM32F030-dat.md
| ... | ... | @@ -0,0 +1,3 @@ |
| 1 | + |
|
| 2 | +# STM32F030-dat |
|
| 3 | + |
Chip-dat/ST-dat/STM32-dat/STM32G030-dat/2025-01-13-18-20-22.png
| ... | ... | Binary files /dev/null and b/Chip-dat/ST-dat/STM32-dat/STM32G030-dat/2025-01-13-18-20-22.png differ |
Chip-dat/ST-dat/STM32-dat/STM32G030-dat/2025-01-13-18-23-46.png
| ... | ... | Binary files /dev/null and b/Chip-dat/ST-dat/STM32-dat/STM32G030-dat/2025-01-13-18-23-46.png differ |
Chip-dat/ST-dat/STM32-dat/STM32G030-dat/STM32G030-DAT.md
| ... | ... | @@ -5,6 +5,41 @@ |
| 5 | 5 | - 2x USART |
| 6 | 6 | - 2x SPI |
| 7 | 7 | |
| 8 | +Communication interfaces |
|
| 9 | + |
|
| 10 | +- Two I2C-bus interfaces supporting Fast-mode Plus (1 Mbit/s) with extra current sink, one supporting SMBus/PMBus and wakeup from Stop mode |
|
| 11 | +- Two USARTs with master/slave synchronous SPI; one supporting ISO7816 interface, LIN, IrDA capability, auto baud rate detection and wakeup feature |
|
| 12 | +- Two SPIs (32 Mbit/s) with 4- to 16-bit programmable bitframe, one multiplexed with I2S interface |
|
| 8 | 13 | |
| 9 | 14 | LED: PC15 |
| 10 | 15 | |
| 16 | + |
|
| 17 | +## compare |
|
| 18 | + |
|
| 19 | +| Feature | STM32F030 | STM32G030 | |
|
| 20 | +|--------------------------|-------------------------------------|-------------------------------------| |
|
| 21 | +| **Core** | ARM Cortex-M0 | ARM Cortex-M0+ | |
|
| 22 | +| **Clock Speed** | Up to 48 MHz | Up to 64 MHz | |
|
| 23 | +| **Flash Memory** | 16 KB to 64 KB | 16 KB to 64 KB | |
|
| 24 | +| **RAM** | 4 KB to 8 KB | 8 KB to 16 KB | |
|
| 25 | +| **Peripherals** | Basic peripherals (GPIO, UART, SPI, I2C, 12-bit ADC) | Enhanced peripherals (GPIO, UART, SPI, I2C, 12-bit or higher ADC) | |
|
| 26 | +| **Power Consumption** | Low-power modes, basic optimization | Better power efficiency, enhanced low-power features | |
|
| 27 | +| **GPIO Pins** | Up to 37 pins | Up to 24 pins | |
|
| 28 | +| **Target Applications** | Low-cost, simple embedded systems, basic sensors | More complex systems, industrial automation, IoT, motor control | |
|
| 29 | +| **Development Ecosystem**| STM32Cube support | STM32Cube support, more advanced features | |
|
| 30 | +| **Cost** | Lower cost, budget-friendly | Slightly higher cost, more features | |
|
| 31 | + |
|
| 32 | + |
|
| 33 | +## SCH |
|
| 34 | + |
|
| 35 | + |
|
| 36 | + |
|
| 37 | + |
|
| 38 | +## Chip map |
|
| 39 | + |
|
| 40 | + |
|
| 41 | + |
|
| 42 | + |
|
| 43 | +## datasheet |
|
| 44 | + |
|
| 45 | +- [[stm32g030-ds.pdf]] |
|
| ... | ... | \ No newline at end of file |
Chip-dat/ST-dat/STM32-dat/STM32G030-dat/STM32G030C8-SCH-2021.pdf
| ... | ... | Binary files a/Chip-dat/ST-dat/STM32-dat/STM32G030-dat/STM32G030C8-SCH-2021.pdf and /dev/null differ |
Chip-dat/ST-dat/STM32-dat/STM32G030-dat/STM32G030C8T6-\346\225\260\346\215\256\346\211\213\345\206\214.PDF
| ... | ... | Binary files "a/Chip-dat/ST-dat/STM32-dat/STM32G030-dat/STM32G030C8T6-\346\225\260\346\215\256\346\211\213\345\206\214.PDF" and /dev/null differ |
Chip-dat/ST-dat/STM32-dat/STM32G030-dat/stm32g030-ds.pdf
| ... | ... | Binary files /dev/null and b/Chip-dat/ST-dat/STM32-dat/STM32G030-dat/stm32g030-ds.pdf differ |
Chip-dat/ST-dat/STM32-dat/STM32G030-dat/\350\212\257\347\211\207\346\211\213\345\206\214,\345\255\246\344\271\240\350\265\204\346\226\231/stm32g030.pdf
| ... | ... | Binary files "a/Chip-dat/ST-dat/STM32-dat/STM32G030-dat/\350\212\257\347\211\207\346\211\213\345\206\214,\345\255\246\344\271\240\350\265\204\346\226\231/stm32g030.pdf" and /dev/null differ |
Chip-dat/chip-dat.md
| ... | ... | @@ -8,7 +8,7 @@ |
| 8 | 8 | |
| 9 | 9 | - [[74xx-dat]] |
| 10 | 10 | |
| 11 | -- [[microchip-dat]] - [[avr-dat]] |
|
| 11 | +- [[microchip-dat]] - [[avr-sdk-dat]] |
|
| 12 | 12 | |
| 13 | 13 | [[MCU-dat]] - [[STC-dat]] - [[nuvoton-dat]] |
| 14 | 14 |
SDK-dat/AVR-dat/2024-06-18-19-03-39.png
| ... | ... | Binary files a/SDK-dat/AVR-dat/2024-06-18-19-03-39.png and /dev/null differ |
SDK-dat/AVR-dat/UPDI-dat/2022-10-15-18-38-28.png
| ... | ... | Binary files a/SDK-dat/AVR-dat/UPDI-dat/2022-10-15-18-38-28.png and /dev/null differ |
SDK-dat/AVR-dat/UPDI-dat/2023-11-15-19-00-50.png
| ... | ... | Binary files a/SDK-dat/AVR-dat/UPDI-dat/2023-11-15-19-00-50.png and /dev/null differ |
SDK-dat/AVR-dat/UPDI-dat/2024-05-31-18-25-27.png
| ... | ... | Binary files a/SDK-dat/AVR-dat/UPDI-dat/2024-05-31-18-25-27.png and /dev/null differ |
SDK-dat/AVR-dat/UPDI-dat/2024-05-31-18-27-07.png
| ... | ... | Binary files a/SDK-dat/AVR-dat/UPDI-dat/2024-05-31-18-27-07.png and /dev/null differ |
SDK-dat/AVR-dat/UPDI-dat/UPDI-dat.md
| ... | ... | @@ -1,88 +0,0 @@ |
| 1 | - |
|
| 2 | - |
|
| 3 | -# UPDI-dat |
|
| 4 | - |
|
| 5 | -Wiring: 3.3V or 5V, GND, UPDI |
|
| 6 | - |
|
| 7 | - |
|
| 8 | -## programmers |
|
| 9 | - |
|
| 10 | -## atmel ICE |
|
| 11 | -- official |
|
| 12 | - |
|
| 13 | -### DIY ATtiny HV UPDI Programmer |
|
| 14 | -https://github.com/Dlloydev/jtag2updi/wiki/DIY-ATtiny-HV-UPDI-Programmer |
|
| 15 | - |
|
| 16 | -### Arduino Nano as a programmer |
|
| 17 | - |
|
| 18 | -- [[arduino-nano-dat]] |
|
| 19 | - |
|
| 20 | - |
|
| 21 | -The 4.7 kOhm resistor connects D6 pin with 6pin header’s top middle pin. |
|
| 22 | - |
|
| 23 | -The 10 uF capacitor connects RST and GND pins. |
|
| 24 | - |
|
| 25 | -- https://create.arduino.cc/projecthub/john-bradnam/create-your-own-updi-programmer-1e55f1 |
|
| 26 | -- https://www.hackster.io/john-bradnam/create-your-own-updi-programmer-1e55f1 |
|
| 27 | - |
|
| 28 | -The Programmer needs to be set to jtag2updi (megaTinyCore). |
|
| 29 | - |
|
| 30 | - |
|
| 31 | - |
|
| 32 | -#### firmware |
|
| 33 | - |
|
| 34 | -https://github.com/SpenceKonde/jtag2updi/ |
|
| 35 | - |
|
| 36 | -original - https://github.com/ElTangas/jtag2updi |
|
| 37 | - |
|
| 38 | - |
|
| 39 | - |
|
| 40 | - |
|
| 41 | -Common Errors |
|
| 42 | - |
|
| 43 | - avrdude: jtagmkII_program_disable(): timeout/error communicating with programmer (status -1) |
|
| 44 | - ***failed; |
|
| 45 | - avrdude: jtagmkII_program_disable(): timeout/error communicating with programmer (status -1) |
|
| 46 | - ***failed; |
|
| 47 | - avrdude: jtagmkII_program_disable(): timeout/error communicating with programmer (status -1) |
|
| 48 | - ***failed; |
|
| 49 | - avrdude: jtagmkII_program_disable(): timeout/error communicating with programmer (status -1) |
|
| 50 | - ***failed; |
|
| 51 | - |
|
| 52 | - |
|
| 53 | -#### Upload firmware to arduino NANO |
|
| 54 | - |
|
| 55 | - |
|
| 56 | - |
|
| 57 | - |
|
| 58 | -## Common Programmer in Arduino |
|
| 59 | - |
|
| 60 | - |
|
| 61 | - |
|
| 62 | -## Support |
|
| 63 | - |
|
| 64 | -- [[megaCoreX-dat]] |
|
| 65 | - |
|
| 66 | -## avrdude command mode |
|
| 67 | - |
|
| 68 | -avrdude -C D:\avrdude.conf -c jtag2updi -P com285 -p avr128db64 -v -v -v -v |
|
| 69 | - |
|
| 70 | -avrdude -C D:\avrdude.conf -c jtag2updi -P com285 -p avr128db64 -t -F |
|
| 71 | - |
|
| 72 | - |
|
| 73 | - |
|
| 74 | -## Demo |
|
| 75 | - |
|
| 76 | -- https://t.me/electrodragon3/45 |
|
| 77 | - |
|
| 78 | - |
|
| 79 | -## Boards |
|
| 80 | - |
|
| 81 | -- [[DAR1060-dat]] - [[DAR1064-dat]] |
|
| 82 | - |
|
| 83 | -## ref |
|
| 84 | - |
|
| 85 | -- [[atmel-ice-dat]] |
|
| 86 | - |
|
| 87 | -- [[UPDI]] |
|
| 88 | - |
SDK-dat/AVR-dat/USBASP-dat/2024-06-18-19-14-22.png
| ... | ... | Binary files a/SDK-dat/AVR-dat/USBASP-dat/2024-06-18-19-14-22.png and /dev/null differ |
SDK-dat/AVR-dat/USBASP-dat/2024-06-18-19-15-17.png
| ... | ... | Binary files a/SDK-dat/AVR-dat/USBASP-dat/2024-06-18-19-15-17.png and /dev/null differ |
SDK-dat/AVR-dat/USBASP-dat/2024-06-18-19-15-57.png
| ... | ... | Binary files a/SDK-dat/AVR-dat/USBASP-dat/2024-06-18-19-15-57.png and /dev/null differ |
SDK-dat/AVR-dat/USBASP-dat/USBASP-dat.md
| ... | ... | @@ -1,29 +0,0 @@ |
| 1 | - |
|
| 2 | -# USBASP-dat |
|
| 3 | - |
|
| 4 | -- usbasp driver - libusb - [[USBASP.zip]] |
|
| 5 | - |
|
| 6 | -- [[usbasp-driver-note.pdf]] |
|
| 7 | - |
|
| 8 | -https://www.electrodragon.com/w/Usbasp |
|
| 9 | - |
|
| 10 | -- [[DPR1088-dat]] |
|
| 11 | - |
|
| 12 | -## Wiring With our ED Nano Board |
|
| 13 | - |
|
| 14 | -- [[DAR1053-dat]] |
|
| 15 | - |
|
| 16 | - |
|
| 17 | - |
|
| 18 | - |
|
| 19 | - |
|
| 20 | - |
|
| 21 | - |
|
| 22 | -## ref |
|
| 23 | - |
|
| 24 | -- [[driver-dat]] - [[avr-dat]] |
|
| 25 | - |
|
| 26 | -- [[avrdude-dat]] |
|
| 27 | - |
|
| 28 | -- [[arduino-dat]] |
|
| 29 | - |
SDK-dat/AVR-dat/USBASP-dat/USBasp.zip
| ... | ... | Binary files a/SDK-dat/AVR-dat/USBASP-dat/USBasp.zip and /dev/null differ |
SDK-dat/AVR-dat/USBASP-dat/usbasp-driver-note.pdf
| ... | ... | Binary files a/SDK-dat/AVR-dat/USBASP-dat/usbasp-driver-note.pdf and /dev/null differ |
SDK-dat/AVR-dat/atmel-ice-dat/2024-05-31-17-43-15.png
| ... | ... | Binary files a/SDK-dat/AVR-dat/atmel-ice-dat/2024-05-31-17-43-15.png and /dev/null differ |
SDK-dat/AVR-dat/atmel-ice-dat/atmel-ice-dat.md
| ... | ... | @@ -1,15 +0,0 @@ |
| 1 | - |
|
| 2 | -# atmel-ice-dat |
|
| 3 | - |
|
| 4 | - |
|
| 5 | -## UPDI programming |
|
| 6 | - |
|
| 7 | - |
|
| 8 | - |
|
| 9 | -- blue = UPDI |
|
| 10 | -- white = VCC |
|
| 11 | -- black = GND |
|
| 12 | - |
|
| 13 | -extra power supply from USB |
|
| 14 | - |
|
| 15 | - |
SDK-dat/AVR-dat/avr-dat.md
| ... | ... | @@ -1,73 +0,0 @@ |
| 1 | - |
|
| 2 | - |
|
| 3 | -# avr-dat |
|
| 4 | - |
|
| 5 | - |
|
| 6 | - |
|
| 7 | - |
|
| 8 | -- [[UPDI-dat]] - [[avrdude-dat]] |
|
| 9 | - |
|
| 10 | -- [[arduino-dat]] |
|
| 11 | - |
|
| 12 | -## chip |
|
| 13 | - |
|
| 14 | -- [[atmega328-dat]] |
|
| 15 | - |
|
| 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 | - |
|
| 55 | -## PROG |
|
| 56 | - |
|
| 57 | -- [[DPR1009-dat]] - [[DPR1088-dat]] |
|
| 58 | - |
|
| 59 | - |
|
| 60 | -converter tools |
|
| 61 | - |
|
| 62 | -- [[DPR1023-dat]] - [[DPR1048-dat]] |
|
| 63 | - |
|
| 64 | -legacy wiki page - https://w.electrodragon.com/w/Category:Arduino#Burning_bootloader |
|
| 65 | - |
|
| 66 | - |
|
| 67 | - |
|
| 68 | - |
|
| 69 | -## ISP pins |
|
| 70 | - |
|
| 71 | -ICSP 6pins |
|
| 72 | - |
|
| 73 | - |
|
| ... | ... | \ No newline at end of file |
SDK-dat/AVR-dat/avrdude-dat/2023-09-12-17-52-25.png
| ... | ... | Binary files a/SDK-dat/AVR-dat/avrdude-dat/2023-09-12-17-52-25.png and /dev/null differ |
SDK-dat/AVR-dat/avrdude-dat/avrdude-dat.md
| ... | ... | @@ -1,141 +0,0 @@ |
| 1 | - |
|
| 2 | - |
|
| 3 | -# avrdude-dat |
|
| 4 | - |
|
| 5 | -AVR firmware - https://github.com/Edragon/AVR_firmware/tree/master/avrdude |
|
| 6 | - |
|
| 7 | -## Version |
|
| 8 | - |
|
| 9 | -- avrdudess |
|
| 10 | - |
|
| 11 | -## examples |
|
| 12 | - |
|
| 13 | - |
|
| 14 | -* Arduino as ISP (UNO) = programmer |
|
| 15 | -* target customized board atmega328p |
|
| 16 | -* ersult efuse FD, high fuse DA, low fuse FF |
|
| 17 | - |
|
| 18 | -test: |
|
| 19 | - |
|
| 20 | - D:\avr-gcc\bin>avrdude -c avrisp -p m328p -P com4 -b 19200 |
|
| 21 | - avrdude: AVR device initialized and ready to accept instructions |
|
| 22 | - Reading | ################################################## | 100% 0.04s |
|
| 23 | - avrdude: Device signature = 0x1e950f (probably m328p) |
|
| 24 | - avrdude: safemode: Fuses OK (E:FD, H:DA, L:FF) |
|
| 25 | - avrdude done. Thank you. |
|
| 26 | - |
|
| 27 | - |
|
| 28 | - |
|
| 29 | - |
|
| 30 | -## AVRDUDE + Arduino-ISP |
|
| 31 | - |
|
| 32 | -find version |
|
| 33 | - |
|
| 34 | - D:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr\bin>avrdude -v -CD:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr\etc\avrdude.conf |
|
| 35 | - avrdude -v -CD:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr\etc\avrdude.conf |
|
| 36 | - |
|
| 37 | -PROG |
|
| 38 | - |
|
| 39 | - D:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr\bin>avrdude -CD:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr\etc\avrdude.conf -c avrisp -p m328p -P com4 -b 19200 |
|
| 40 | - avrdude -CD:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr\etc\avrdude.conf -c avrisp -p m328p -P com4 -b 19200 |
|
| 41 | - |
|
| 42 | -CMD1 |
|
| 43 | - |
|
| 44 | - avrdude -CD:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr\etc\avrdude.conf -c avrisp -p m328p -P com4 -b 19200 |
|
| 45 | - |
|
| 46 | -CMD2 |
|
| 47 | - |
|
| 48 | - avrdude -CD:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr\etc\avrdude.conf -c arduino -p atmega328p -P com4 -b 19200 |
|
| 49 | - |
|
| 50 | -CMD3 |
|
| 51 | - |
|
| 52 | - avrdude -CD:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr\etc\avrdude.conf -c arduino -p m328p -P com4 -b 19200 |
|
| 53 | - |
|
| 54 | - avrdude: AVR device initialized and ready to accept instructions |
|
| 55 | - Reading | ################################################## | 100% 0.04s |
|
| 56 | - avrdude: Device signature = 0x1e950f (probably m328p) |
|
| 57 | - avrdude: safemode: Fuses OK (E:FD, H:DA, L:FF) |
|
| 58 | - avrdude done. Thank you. |
|
| 59 | - |
|
| 60 | - |
|
| 61 | -## AVRDUDE + USBASP, get start within arduino IDE |
|
| 62 | - |
|
| 63 | -- [[avrdude-dat]] |
|
| 64 | - |
|
| 65 | -avrdude locate |
|
| 66 | -* D:\arduino-1.8.19-windows\arduino-1.8.19\hardware\tools\avr\bin |
|
| 67 | -* cd D:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr\bin |
|
| 68 | - |
|
| 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 |
|
| 84 | - |
|
| 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 |
|
| 86 | - |
|
| 87 | - avrdude: warning: cannot set sck period. please check for usbasp firmware update. |
|
| 88 | - avrdude: AVR device initialized and ready to accept instructions |
|
| 89 | - |
|
| 90 | - Reading | ################################################## | 100% 0.02s |
|
| 91 | - |
|
| 92 | - avrdude: Device signature = 0x1e9489 (probably m16u2) |
|
| 93 | - avrdude: Expected signature for ATmega328P is 1E 95 0F |
|
| 94 | - Double check chip, or use -F to override this check. |
|
| 95 | - |
|
| 96 | - avrdude done. Thank you. |
|
| 97 | - |
|
| 98 | -Correctly Read ATMEGA328P |
|
| 99 | - |
|
| 100 | - Reading | ################################################## | 100% 0.02s |
|
| 101 | - |
|
| 102 | - avrdude: Device signature = 0x1e950f (probably m328p) |
|
| 103 | - |
|
| 104 | - avrdude: safemode: Fuses OK (E:FD, H:DE, L:FF) |
|
| 105 | - |
|
| 106 | - avrdude done. Thank you. |
|
| 107 | - |
|
| 108 | - |
|
| 109 | - |
|
| 110 | -### Flash bootloader for Arduino UNO |
|
| 111 | - |
|
| 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 |
|
| 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 |
|
| 121 | - |
|
| 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 |
|
| 123 | - |
|
| 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 |
|
| 125 | - |
|
| 126 | -- [[avrdude-log-dat]] |
|
| 127 | - |
|
| 128 | -## Supported List |
|
| 129 | - |
|
| 130 | -- Commands: avrdude -p ? |
|
| 131 | - |
|
| 132 | - |
|
| 133 | - |
|
| 134 | - |
|
| 135 | - |
|
| 136 | -## ref |
|
| 137 | - |
|
| 138 | -- [[avr-dat]] |
|
| 139 | - |
|
| 140 | - |
|
| 141 | -- [[avrdude]] |
|
| ... | ... | \ No newline at end of file |
SDK-dat/AVR-dat/avrdude-dat/avrdude-log-dat.md
| ... | ... | @@ -1,99 +0,0 @@ |
| 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/megaCoreX-dat.md
| ... | ... | @@ -26,4 +26,4 @@ https://mcudude.github.io/MegaCoreX/package_MCUdude_MegaCoreX_index.json |
| 26 | 26 | |
| 27 | 27 | ## ref |
| 28 | 28 | |
| 29 | -- [[avr-dat]] |
|
| ... | ... | \ No newline at end of file |
| 0 | +- [[avr-sdk-dat]] |
|
| ... | ... | \ No newline at end of file |
SDK-dat/arduino-dat/arduino-dat.md
| ... | ... | @@ -18,7 +18,7 @@ |
| 18 | 18 | |
| 19 | 19 | - [[arduino-code-v1-dat]] |
| 20 | 20 | |
| 21 | -- [[usbasp-dat]] - [[avr-dat]] |
|
| 21 | +- [[usbasp-dat]] - [[avr-sdk-dat]] |
|
| 22 | 22 | |
| 23 | 23 | |
| 24 | 24 | ## Boards |
SDK-dat/avr-sdk-dat/2024-06-18-19-03-39.png
| ... | ... | Binary files /dev/null and b/SDK-dat/avr-sdk-dat/2024-06-18-19-03-39.png differ |
SDK-dat/avr-sdk-dat/UPDI-dat/2022-10-15-18-38-28.png
| ... | ... | Binary files /dev/null and b/SDK-dat/avr-sdk-dat/UPDI-dat/2022-10-15-18-38-28.png differ |
SDK-dat/avr-sdk-dat/UPDI-dat/2023-11-15-19-00-50.png
| ... | ... | Binary files /dev/null and b/SDK-dat/avr-sdk-dat/UPDI-dat/2023-11-15-19-00-50.png differ |
SDK-dat/avr-sdk-dat/UPDI-dat/2024-05-31-18-25-27.png
| ... | ... | Binary files /dev/null and b/SDK-dat/avr-sdk-dat/UPDI-dat/2024-05-31-18-25-27.png differ |
SDK-dat/avr-sdk-dat/UPDI-dat/2024-05-31-18-27-07.png
| ... | ... | Binary files /dev/null and b/SDK-dat/avr-sdk-dat/UPDI-dat/2024-05-31-18-27-07.png differ |
SDK-dat/avr-sdk-dat/UPDI-dat/UPDI-dat.md
| ... | ... | @@ -0,0 +1,88 @@ |
| 1 | + |
|
| 2 | + |
|
| 3 | +# UPDI-dat |
|
| 4 | + |
|
| 5 | +Wiring: 3.3V or 5V, GND, UPDI |
|
| 6 | + |
|
| 7 | + |
|
| 8 | +## programmers |
|
| 9 | + |
|
| 10 | +## atmel ICE |
|
| 11 | +- official |
|
| 12 | + |
|
| 13 | +### DIY ATtiny HV UPDI Programmer |
|
| 14 | +https://github.com/Dlloydev/jtag2updi/wiki/DIY-ATtiny-HV-UPDI-Programmer |
|
| 15 | + |
|
| 16 | +### Arduino Nano as a programmer |
|
| 17 | + |
|
| 18 | +- [[arduino-nano-dat]] |
|
| 19 | + |
|
| 20 | + |
|
| 21 | +The 4.7 kOhm resistor connects D6 pin with 6pin header’s top middle pin. |
|
| 22 | + |
|
| 23 | +The 10 uF capacitor connects RST and GND pins. |
|
| 24 | + |
|
| 25 | +- https://create.arduino.cc/projecthub/john-bradnam/create-your-own-updi-programmer-1e55f1 |
|
| 26 | +- https://www.hackster.io/john-bradnam/create-your-own-updi-programmer-1e55f1 |
|
| 27 | + |
|
| 28 | +The Programmer needs to be set to jtag2updi (megaTinyCore). |
|
| 29 | + |
|
| 30 | + |
|
| 31 | + |
|
| 32 | +#### firmware |
|
| 33 | + |
|
| 34 | +https://github.com/SpenceKonde/jtag2updi/ |
|
| 35 | + |
|
| 36 | +original - https://github.com/ElTangas/jtag2updi |
|
| 37 | + |
|
| 38 | + |
|
| 39 | + |
|
| 40 | + |
|
| 41 | +Common Errors |
|
| 42 | + |
|
| 43 | + avrdude: jtagmkII_program_disable(): timeout/error communicating with programmer (status -1) |
|
| 44 | + ***failed; |
|
| 45 | + avrdude: jtagmkII_program_disable(): timeout/error communicating with programmer (status -1) |
|
| 46 | + ***failed; |
|
| 47 | + avrdude: jtagmkII_program_disable(): timeout/error communicating with programmer (status -1) |
|
| 48 | + ***failed; |
|
| 49 | + avrdude: jtagmkII_program_disable(): timeout/error communicating with programmer (status -1) |
|
| 50 | + ***failed; |
|
| 51 | + |
|
| 52 | + |
|
| 53 | +#### Upload firmware to arduino NANO |
|
| 54 | + |
|
| 55 | + |
|
| 56 | + |
|
| 57 | + |
|
| 58 | +## Common Programmer in Arduino |
|
| 59 | + |
|
| 60 | + |
|
| 61 | + |
|
| 62 | +## Support |
|
| 63 | + |
|
| 64 | +- [[megaCoreX-dat]] |
|
| 65 | + |
|
| 66 | +## avrdude command mode |
|
| 67 | + |
|
| 68 | +avrdude -C D:\avrdude.conf -c jtag2updi -P com285 -p avr128db64 -v -v -v -v |
|
| 69 | + |
|
| 70 | +avrdude -C D:\avrdude.conf -c jtag2updi -P com285 -p avr128db64 -t -F |
|
| 71 | + |
|
| 72 | + |
|
| 73 | + |
|
| 74 | +## Demo |
|
| 75 | + |
|
| 76 | +- https://t.me/electrodragon3/45 |
|
| 77 | + |
|
| 78 | + |
|
| 79 | +## Boards |
|
| 80 | + |
|
| 81 | +- [[DAR1060-dat]] - [[DAR1064-dat]] |
|
| 82 | + |
|
| 83 | +## ref |
|
| 84 | + |
|
| 85 | +- [[atmel-ice-dat]] |
|
| 86 | + |
|
| 87 | +- [[UPDI]] |
|
| 88 | + |
SDK-dat/avr-sdk-dat/USBASP-dat/2024-06-18-19-14-22.png
| ... | ... | Binary files /dev/null and b/SDK-dat/avr-sdk-dat/USBASP-dat/2024-06-18-19-14-22.png differ |
SDK-dat/avr-sdk-dat/USBASP-dat/2024-06-18-19-15-17.png
| ... | ... | Binary files /dev/null and b/SDK-dat/avr-sdk-dat/USBASP-dat/2024-06-18-19-15-17.png differ |
SDK-dat/avr-sdk-dat/USBASP-dat/2024-06-18-19-15-57.png
| ... | ... | Binary files /dev/null and b/SDK-dat/avr-sdk-dat/USBASP-dat/2024-06-18-19-15-57.png differ |
SDK-dat/avr-sdk-dat/USBASP-dat/USBASP-dat.md
| ... | ... | @@ -0,0 +1,29 @@ |
| 1 | + |
|
| 2 | +# USBASP-dat |
|
| 3 | + |
|
| 4 | +- usbasp driver - libusb - [[USBASP.zip]] |
|
| 5 | + |
|
| 6 | +- [[usbasp-driver-note.pdf]] |
|
| 7 | + |
|
| 8 | +https://www.electrodragon.com/w/Usbasp |
|
| 9 | + |
|
| 10 | +- [[DPR1088-dat]] |
|
| 11 | + |
|
| 12 | +## Wiring With our ED Nano Board |
|
| 13 | + |
|
| 14 | +- [[DAR1053-dat]] |
|
| 15 | + |
|
| 16 | + |
|
| 17 | + |
|
| 18 | + |
|
| 19 | + |
|
| 20 | + |
|
| 21 | + |
|
| 22 | +## ref |
|
| 23 | + |
|
| 24 | +- [[driver-dat]] - [[avr-dat]] |
|
| 25 | + |
|
| 26 | +- [[avrdude-dat]] |
|
| 27 | + |
|
| 28 | +- [[arduino-dat]] |
|
| 29 | + |
SDK-dat/avr-sdk-dat/USBASP-dat/USBasp.zip
| ... | ... | Binary files /dev/null and b/SDK-dat/avr-sdk-dat/USBASP-dat/USBasp.zip differ |
SDK-dat/avr-sdk-dat/USBASP-dat/usbasp-driver-note.pdf
| ... | ... | Binary files /dev/null and b/SDK-dat/avr-sdk-dat/USBASP-dat/usbasp-driver-note.pdf differ |
SDK-dat/avr-sdk-dat/atmel-ice-dat/2024-05-31-17-43-15.png
| ... | ... | Binary files /dev/null and b/SDK-dat/avr-sdk-dat/atmel-ice-dat/2024-05-31-17-43-15.png differ |
SDK-dat/avr-sdk-dat/atmel-ice-dat/atmel-ice-dat.md
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | + |
|
| 2 | +# atmel-ice-dat |
|
| 3 | + |
|
| 4 | + |
|
| 5 | +## UPDI programming |
|
| 6 | + |
|
| 7 | + |
|
| 8 | + |
|
| 9 | +- blue = UPDI |
|
| 10 | +- white = VCC |
|
| 11 | +- black = GND |
|
| 12 | + |
|
| 13 | +extra power supply from USB |
|
| 14 | + |
|
| 15 | + |
SDK-dat/avr-sdk-dat/avr-sdk-dat.md
| ... | ... | @@ -0,0 +1,73 @@ |
| 1 | + |
|
| 2 | + |
|
| 3 | +# avr-dat |
|
| 4 | + |
|
| 5 | + |
|
| 6 | + |
|
| 7 | + |
|
| 8 | +- [[UPDI-dat]] - [[avrdude-dat]] |
|
| 9 | + |
|
| 10 | +- [[arduino-dat]] |
|
| 11 | + |
|
| 12 | +## chip |
|
| 13 | + |
|
| 14 | +- [[atmega328-dat]] |
|
| 15 | + |
|
| 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 | + |
|
| 55 | +## PROG |
|
| 56 | + |
|
| 57 | +- [[DPR1009-dat]] - [[DPR1088-dat]] |
|
| 58 | + |
|
| 59 | + |
|
| 60 | +converter tools |
|
| 61 | + |
|
| 62 | +- [[DPR1023-dat]] - [[DPR1048-dat]] |
|
| 63 | + |
|
| 64 | +legacy wiki page - https://w.electrodragon.com/w/Category:Arduino#Burning_bootloader |
|
| 65 | + |
|
| 66 | + |
|
| 67 | + |
|
| 68 | + |
|
| 69 | +## ISP pins |
|
| 70 | + |
|
| 71 | +ICSP 6pins |
|
| 72 | + |
|
| 73 | + |
|
| ... | ... | \ No newline at end of file |
SDK-dat/avr-sdk-dat/avrdude-dat/2023-09-12-17-52-25.png
| ... | ... | Binary files /dev/null and b/SDK-dat/avr-sdk-dat/avrdude-dat/2023-09-12-17-52-25.png differ |
SDK-dat/avr-sdk-dat/avrdude-dat/avrdude-dat.md
| ... | ... | @@ -0,0 +1,141 @@ |
| 1 | + |
|
| 2 | + |
|
| 3 | +# avrdude-dat |
|
| 4 | + |
|
| 5 | +AVR firmware - https://github.com/Edragon/AVR_firmware/tree/master/avrdude |
|
| 6 | + |
|
| 7 | +## Version |
|
| 8 | + |
|
| 9 | +- avrdudess |
|
| 10 | + |
|
| 11 | +## examples |
|
| 12 | + |
|
| 13 | + |
|
| 14 | +* Arduino as ISP (UNO) = programmer |
|
| 15 | +* target customized board atmega328p |
|
| 16 | +* ersult efuse FD, high fuse DA, low fuse FF |
|
| 17 | + |
|
| 18 | +test: |
|
| 19 | + |
|
| 20 | + D:\avr-gcc\bin>avrdude -c avrisp -p m328p -P com4 -b 19200 |
|
| 21 | + avrdude: AVR device initialized and ready to accept instructions |
|
| 22 | + Reading | ################################################## | 100% 0.04s |
|
| 23 | + avrdude: Device signature = 0x1e950f (probably m328p) |
|
| 24 | + avrdude: safemode: Fuses OK (E:FD, H:DA, L:FF) |
|
| 25 | + avrdude done. Thank you. |
|
| 26 | + |
|
| 27 | + |
|
| 28 | + |
|
| 29 | + |
|
| 30 | +## AVRDUDE + Arduino-ISP |
|
| 31 | + |
|
| 32 | +find version |
|
| 33 | + |
|
| 34 | + D:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr\bin>avrdude -v -CD:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr\etc\avrdude.conf |
|
| 35 | + avrdude -v -CD:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr\etc\avrdude.conf |
|
| 36 | + |
|
| 37 | +PROG |
|
| 38 | + |
|
| 39 | + D:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr\bin>avrdude -CD:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr\etc\avrdude.conf -c avrisp -p m328p -P com4 -b 19200 |
|
| 40 | + avrdude -CD:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr\etc\avrdude.conf -c avrisp -p m328p -P com4 -b 19200 |
|
| 41 | + |
|
| 42 | +CMD1 |
|
| 43 | + |
|
| 44 | + avrdude -CD:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr\etc\avrdude.conf -c avrisp -p m328p -P com4 -b 19200 |
|
| 45 | + |
|
| 46 | +CMD2 |
|
| 47 | + |
|
| 48 | + avrdude -CD:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr\etc\avrdude.conf -c arduino -p atmega328p -P com4 -b 19200 |
|
| 49 | + |
|
| 50 | +CMD3 |
|
| 51 | + |
|
| 52 | + avrdude -CD:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr\etc\avrdude.conf -c arduino -p m328p -P com4 -b 19200 |
|
| 53 | + |
|
| 54 | + avrdude: AVR device initialized and ready to accept instructions |
|
| 55 | + Reading | ################################################## | 100% 0.04s |
|
| 56 | + avrdude: Device signature = 0x1e950f (probably m328p) |
|
| 57 | + avrdude: safemode: Fuses OK (E:FD, H:DA, L:FF) |
|
| 58 | + avrdude done. Thank you. |
|
| 59 | + |
|
| 60 | + |
|
| 61 | +## AVRDUDE + USBASP, get start within arduino IDE |
|
| 62 | + |
|
| 63 | +- [[avrdude-dat]] |
|
| 64 | + |
|
| 65 | +avrdude locate |
|
| 66 | +* D:\arduino-1.8.19-windows\arduino-1.8.19\hardware\tools\avr\bin |
|
| 67 | +* cd D:\Git-code\arduino\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr\bin |
|
| 68 | + |
|
| 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 |
|
| 84 | + |
|
| 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 |
|
| 86 | + |
|
| 87 | + avrdude: warning: cannot set sck period. please check for usbasp firmware update. |
|
| 88 | + avrdude: AVR device initialized and ready to accept instructions |
|
| 89 | + |
|
| 90 | + Reading | ################################################## | 100% 0.02s |
|
| 91 | + |
|
| 92 | + avrdude: Device signature = 0x1e9489 (probably m16u2) |
|
| 93 | + avrdude: Expected signature for ATmega328P is 1E 95 0F |
|
| 94 | + Double check chip, or use -F to override this check. |
|
| 95 | + |
|
| 96 | + avrdude done. Thank you. |
|
| 97 | + |
|
| 98 | +Correctly Read ATMEGA328P |
|
| 99 | + |
|
| 100 | + Reading | ################################################## | 100% 0.02s |
|
| 101 | + |
|
| 102 | + avrdude: Device signature = 0x1e950f (probably m328p) |
|
| 103 | + |
|
| 104 | + avrdude: safemode: Fuses OK (E:FD, H:DE, L:FF) |
|
| 105 | + |
|
| 106 | + avrdude done. Thank you. |
|
| 107 | + |
|
| 108 | + |
|
| 109 | + |
|
| 110 | +### Flash bootloader for Arduino UNO |
|
| 111 | + |
|
| 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 |
|
| 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 |
|
| 121 | + |
|
| 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 |
|
| 123 | + |
|
| 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 |
|
| 125 | + |
|
| 126 | +- [[avrdude-log-dat]] |
|
| 127 | + |
|
| 128 | +## Supported List |
|
| 129 | + |
|
| 130 | +- Commands: avrdude -p ? |
|
| 131 | + |
|
| 132 | + |
|
| 133 | + |
|
| 134 | + |
|
| 135 | + |
|
| 136 | +## ref |
|
| 137 | + |
|
| 138 | +- [[avr-dat]] |
|
| 139 | + |
|
| 140 | + |
|
| 141 | +- [[avrdude]] |
|
| ... | ... | \ No newline at end of file |
SDK-dat/avr-sdk-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 |
Tech-dat/MCU-dat/mcu-dat.md
| ... | ... | @@ -7,7 +7,7 @@ |
| 7 | 7 | |
| 8 | 8 | - [[STM32-dat]] |
| 9 | 9 | |
| 10 | -- [[AVR-dat]] |
|
| 10 | +- [[AVR-dat]] - [[tinyAVR-dat]] |
|
| 11 | 11 | |
| 12 | 12 | - [[STC-dat]] |
| 13 | 13 |
app-dat/home-plant-dat/home-plant-dat.md
| ... | ... | @@ -3,36 +3,51 @@ |
| 3 | 3 | |
| 4 | 4 | - [[humidifier]] |
| 5 | 5 | |
| 6 | -## Mushroom |
|
| 6 | +## type |
|
| 7 | + |
|
| 8 | +### Mushroom |
|
| 7 | 9 | |
| 8 | 10 | - Mushrooms generally thrive in high humidity, often between 80% and 95%, depending on the species. |
| 9 | 11 | |
| 10 | 12 | - The temperature range for growing mushrooms is typically between 15°C to 24°C |
| 11 | 13 | |
| 12 | -## Temperature and Humidity |
|
| 14 | +## system |
|
| 15 | + |
|
| 16 | +### Temperature and Humidity |
|
| 13 | 17 | |
| 14 | 18 | Humidity Tray: Place a shallow tray of water with some pebbles or stones in the growing area. |
| 15 | 19 | |
| 16 | 20 | The water will slowly evaporate, increasing the humidity. You can add a small fan to circulate the air around the tray, which helps maintain airflow while boosting humidity. |
| 17 | 21 | |
| 22 | + |
|
| 23 | +### sensing |
|
| 24 | + |
|
| 18 | 25 | sening by [[sensor-dat]] - [[temperature-sensor-dat]] and [[humidity-sensor-dat]] |
| 19 | 26 | |
| 20 | 27 | [[actuator-dat]] to generate [[humidity-dat]] |
| 21 | 28 | |
| 22 | -## Air Flow |
|
| 29 | +#### cooling and warming |
|
| 30 | + |
|
| 31 | +- [[Peltier-dat]] - [[fan-dat]] |
|
| 32 | + |
|
| 33 | + |
|
| 34 | +### Air Flow |
|
| 23 | 35 | |
| 24 | 36 | The term "fresh air" for plants, in a technical sense, generally refers to an optimal supply of oxygen (O₂) and carbon dioxide (CO₂), along with proper air circulation, which are essential for the healthy growth and metabolism of plants. |
| 25 | 37 | |
| 26 | 38 | [[actuator-dat]] to control [[fan-dat]] |
| 27 | 39 | |
| 28 | -## timing system |
|
| 40 | +### controlling |
|
| 29 | 41 | |
| 30 | -- timing relay - [[intermittent-dat]] |
|
| 42 | +- [[MCU-dat]] |
|
| 43 | + |
|
| 44 | +#### timing system |
|
| 31 | 45 | |
| 46 | +- timing relay - [[intermittent-dat]] |
|
| 32 | 47 | |
| 33 | 48 | |
| 34 | 49 | |
| 35 | -## structure |
|
| 50 | +## mechnical structure |
|
| 36 | 51 | |
| 37 | 52 | ### aluminum profile |
| 38 | 53 | |
| ... | ... | @@ -46,3 +61,5 @@ The term "fresh air" for plants, in a technical sense, generally refers to an op |
| 46 | 61 | ### turnover box |
| 47 | 62 | |
| 48 | 63 | |
| 64 | + |
|
| 65 | + |
board-series-dat/arduino-avr-dat/arduino-uno-dat/arduino-uno-dat.md
| ... | ... | @@ -22,6 +22,6 @@ https://docs.arduino.cc/hardware/uno-rev3 |
| 22 | 22 | |
| 23 | 23 | ## ref |
| 24 | 24 | |
| 25 | -- [[avr-dat]] |
|
| 25 | +- [[avr-sdk-dat]] |
|
| 26 | 26 | |
| 27 | 27 | - [[arduino-dat]] |
| ... | ... | \ No newline at end of file |
board-series-dat/arduino-avr-dat/attiny-dev-dat/attiny-dev-dat.md
| ... | ... | @@ -9,7 +9,7 @@ legacy wiki page - https://www.electrodragon.com/w/ATtiny_Mini_Dev_board_Series |
| 9 | 9 | |
| 10 | 10 | https://www.electrodragon.com/product/usbasp-programmer-r2-53-3v-supported-avr-arduino/ |
| 11 | 11 | |
| 12 | -- [[DPR1088-dat]] - [[usbasp-dat]] - [[avr-dat]] - [[avrdude-dat]] |
|
| 12 | +- [[DPR1088-dat]] - [[usbasp-dat]] - [[avr-sdk-dat]] - [[avrdude-dat]] |
|
| 13 | 13 | |
| 14 | 14 | - [[arduino-dat]] |
| 15 | 15 |