Ray Burnette
Published © LGPL

Tchotchke (Pro Trinket clone) USB Programming Stick: updated

Inevitable: Adafruit created the Trinket, I created Chachka. Adafruit created the Pro Trinket, I created Tchotchke. Circle of Hacking.

Full instructions provided2,205
Tchotchke (Pro Trinket clone) USB Programming Stick: updated

Things used in this project

Hardware components

3.6V low-watt Zener
×1

Story

Read more

Code

file_9172.txt

Plain text
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

file_9173.txt

Plain text
stdout.log
avrdude: AVR device initialized and ready to accept instructions



Reading | ################################################## | 100% 0.00s



avrdude: Device signature = 0x1e950f

avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed

         To disable this feature, specify the -D option.

avrdude: erasing chip

avrdude: reading input file "protrinket_16mhz.hex"

avrdude: input file protrinket_16mhz.hex auto detected as Intel Hex

avrdude: writing flash (31816 bytes):



Writing | ################################################## | 100% 3.05s



avrdude: 31816 bytes of flash written

avrdude: verifying flash memory against protrinket_16mhz.hex:

avrdude: load data flash data from input file protrinket_16mhz.hex:

avrdude: input file protrinket_16mhz.hex auto detected as Intel Hex

avrdude: input file protrinket_16mhz.hex contains 31816 bytes

avrdude: reading on-chip flash data:



Reading | ################################################## | 100% 21.25s



avrdude: verifying ...

avrdude: 31816 bytes of flash verified



avrdude: safemode: Fuses OK



avrdude done.  Thank you.



protrinket_16mhz.hex WRITTEN



avrdude: AVR device initialized and ready to accept instructions



Reading | ################################################## | 100% 0.00s



avrdude: Device signature = 0x1e950f

avrdude: reading input file "hfuse.hex"

avrdude: input file hfuse.hex auto detected as Intel Hex

avrdude: writing hfuse (1 bytes):



Writing | ################################################## | 100% 0.05s



avrdude: 1 bytes of hfuse written

avrdude: verifying hfuse memory against hfuse.hex:

avrdude: load data hfuse data from input file hfuse.hex:

avrdude: input file hfuse.hex auto detected as Intel Hex

avrdude: input file hfuse.hex contains 1 bytes

avrdude: reading on-chip hfuse data:



Reading | ################################################## | 100% 0.02s



avrdude: verifying ...

avrdude: 1 bytes of hfuse verified



avrdude: safemode: Fuses OK



avrdude done.  Thank you.



hfuse WRITTEN



avrdude: AVR device initialized and ready to accept instructions



Reading | ################################################## | 100% 0.00s



avrdude: Device signature = 0x1e950f

avrdude: reading input file "lfuse.hex"

avrdude: input file lfuse.hex auto detected as Intel Hex

avrdude: writing lfuse (1 bytes):



Writing | ################################################## | 100% 0.03s



avrdude: 1 bytes of lfuse written

avrdude: verifying lfuse memory against lfuse.hex:

avrdude: load data lfuse data from input file lfuse.hex:

avrdude: input file lfuse.hex auto detected as Intel Hex

avrdude: input file lfuse.hex contains 1 bytes

avrdude: reading on-chip lfuse data:



Reading | ################################################## | 100% 0.02s



avrdude: verifying ...

avrdude: 1 bytes of lfuse verified



avrdude: safemode: Fuses OK



avrdude done.  Thank you.



lfuse WRITTEN



avrdude: AVR device initialized and ready to accept instructions



Reading | ################################################## | 100% 0.02s



avrdude: Device signature = 0x1e950f

avrdude: reading input file "efuse.hex"

avrdude: input file efuse.hex auto detected as Intel Hex

avrdude: writing efuse (1 bytes):



Writing | ################################################## | 100% 0.00s



avrdude: 1 bytes of efuse written

avrdude: verifying efuse memory against efuse.hex:

avrdude: load data efuse data from input file efuse.hex:

avrdude: input file efuse.hex auto detected as Intel Hex

avrdude: input file efuse.hex contains 1 bytes

avrdude: reading on-chip efuse data:



Reading | ################################################## | 100% 0.00s



avrdude: verifying ...

avrdude: 1 bytes of efuse verified



avrdude: safemode: Fuses OK



avrdude done.  Thank you.



efuse WRITTEN ... Process complete!

Credits

Ray Burnette

Ray Burnette

60 projects • 476 followers
IT architect - retired AT&T... USAF-Secure Comm , Burroughs, Clemson U. School of EE Research, Southern Bell, BellSouth, SofKinetics, Inc. (President), AT&T IT

Comments