Go Down

Topic: Tchotchke (Pro Trinket clone) (Read 60 times) previous topic - next topic

mrburnette

Inevitable: Adafruit created the Trinket,
I created Chachka.
Adafruit created the Pro Trinker,
I created Tchotchke.

Circle of Hacking



Here is the Windows script that creates the bootloader and sets the fuses.  Edit for the Arduino GUI version and location installed as well as the driver and home directory for the Arduino folder.


Code: [Select]
REM
prompt $G
path=%path%;C:\Program Files (x86)\Arduino_106\hardware\tools\avr\bin
D:
CD D:\Documents\Arduino\hardware\ProTrinket
ECHO OFF
CLS
ECHO.
ECHO BATCH COPY ATMEGA328P-PU VIA ARDUINO-ISP ON com9
ECHO INSERT THE NEW CHIP now!
ECHO PRESS Any key to write new chip...
pause >nul
REM Note that the path cannot contain the drive letter "C:" so you cannot use %temp% as previously
REM Reference:http://savannah.nongnu.org/bugs/index.php Bug report #39230
REM.
>>stdout.log 2>&1 (
avrdude -c arduino -P com9 -p ATMEGA328P -b 19200 -U flash:w:protrinket_16mhz.hex
ECHO protrinket_16mhz.hex WRITTEN
avrdude -c arduino -P com9 -p ATMEGA328P -b 19200 -U hfuse:w:hfuse.hex
ECHO hfuse WRITTEN
avrdude -c arduino -P com9 -p ATMEGA328P -b 19200 -U lfuse:w:lfuse.hex
ECHO lfuse WRITTEN
avrdude -c arduino -P com9 -p ATMEGA328P -b 19200 -U efuse:w:efuse.hex
ECHO efuse WRITTEN ... Process complete!
)
ECHO.
ECHO Chip flashing is complete.
ECHO Starting Notepad editor to display log file.
start notepad stdout.log
ECHO.
ECHO Press Any key to close this window...
pause >nul


Script creates a stdout.log file in the Arduino\hardware\ProTrinket\ directory.

Other than flashing the bootloader and fuses, you will need the latest and signed Windows drivers:
Adafruit's signed drivers for USBtinyISP


Ray

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy