Compare commits

..

2 commits

Author SHA1 Message Date
jakeg00dwin
080ad56beb updated readme to show current steps 2024-01-03 17:35:36 -08:00
jakeg00dwin
f2bd505fe6 removed no longer needed powershell script 2024-01-03 17:35:28 -08:00
2 changed files with 17 additions and 15 deletions

View file

@ -57,10 +57,24 @@ make flash
## Flashing the Project ## Flashing the Project
**On Windows** **On Windows(usbtinyisp)**
1. Install the usbtiny driver:
1. plug in usbtiny device
2. Intall the drivers from: [adafruit](https://learn.adafruit.com/usbtinyisp/drivers)
2. open powershell
3. navigate to the repo directory *cd Downloads\gf_002*
4. enter the command below.
```ps1
./avrdude.exe -p t13 -c usbtiny -B 125kHz -U flash:w:.\pre_built\attiny13_4-8Mhz.hex -U lfuse:w:0x79:m -U hfuse:w:0xFF:m -U lock:w:0xFF:m
```
**On Windows(usbASP)**
1. Install the usbasp driver: 1. Install the usbasp driver:
1. plug in usbasp device. 1. plug in usbasp device
2. run the 'zadig-2.8.exe' program 2. run the 'zadig-2.8.exe' program
3. select the libusb 32 on the right by clicking the down arrow to select. 3. select the libusb 32 on the right by clicking the down arrow to select.
2. open powershell 2. open powershell
@ -68,11 +82,6 @@ make flash
4. enter the command below. 4. enter the command below.
```ps1 ```ps1
./avrdude.exe -p t13 -c usbasp -B 125kHz -U flash:w:.\pre_built\atiny13_4-8Mhz.hex ./avrdude.exe -p t13 -c usbasp -B 125kHz -U flash:w:.\pre_built\attiny13_4-8Mhz.hex -U lfuse:w:0x79:m -U hfuse:w:0xFF:m -U lock:w:0xFF:m
``` ```
* If you have the powershell execution policy set to allow scripts:
* run *flash_atiny13.ps1*

View file

@ -1,7 +0,0 @@
# PowerShell script to flash a precompiled HEX file via avrdude.exe with a USBasp programmer
$Mcu = "t13"
$HexFile ="\pre_built\attiny13_4-8Mhz.hex"
$Programmer="usbasp"
.\avrdude.exe -p $Mxu -B 10 -c $Programmer -U flash:w:$HexFile