Mahavir Singh@SurfaceBook MINGW64 ~/Desktop $ cd Mahavir Singh@SurfaceBook MINGW64 ~ $ cd Documents Mahavir Singh@SurfaceBook MINGW64 ~/Documents $ cd FIRMWARE Mahavir Singh@SurfaceBook MINGW64 ~/Documents/FIRMWARE $ ls main.c Makefile usbconfig.h usbdrv/ Mahavir Singh@SurfaceBook MINGW64 ~/Documents/FIRMWARE $ make flash avrdude -p attiny45 -c USBtinySPI -P usb -e \ -U flash:w:fts_firmware.hex avrdude: Can't find programmer id "USBtinySPI" Valid programmers are: c2n232i = serial port banging, reset=dtr sck=!rts mosi=!txd miso=!cts [C:\WinAVR-20100110\bin\avrdude.conf:876] dasa3 = serial port banging, reset=!dtr sck=rts mosi=txd miso=cts [C:\WinAVR-20100110\bin\avrdude.conf:863] dasa = serial port banging, reset=rts sck=dtr mosi=txd miso=cts [C:\WinAVR-20100110\bin\avrdude.conf:850] siprog = Lancos SI-Prog [C:\WinAVR-20100110\bin\avrdude.conf:837] ponyser = design ponyprog serial, reset=!txd sck=rts mosi=dtr miso=cts [C:\WinAVR-20100110\bin\avrdude.conf:824] 89isp = Atmel at89isp cable [C:\WinAVR-20100110\bin\avrdude.conf:791] frank-stk200 = Frank STK200 [C:\WinAVR-20100110\bin\avrdude.conf:777] blaster = Altera ByteBlaster [C:\WinAVR-20100110\bin\avrdude.conf:764] ere-isp-avr = ERE ISP-AVR [C:\WinAVR-20100110\bin\avrdude.conf:754] atisp = AT-ISP V1.1 programming cable for AVR-SDK1 from [C:\WinAVR-20100110\bin\avrdude.conf:744] dapa = Direct AVR Parallel Access cable [C:\WinAVR-20100110\bin\avrdude.conf:733] xil = Xilinx JTAG cable [C:\WinAVR-20100110\bin\avrdude.conf:720] futurlec = Futurlec.com programming cable. [C:\WinAVR-20100110\bin\avrdude.conf:703] abcmini = ABCmini Board, aka Dick Smith HOTCHIP [C:\WinAVR-20100110\bin\avrdude.conf:693] picoweb = Picoweb Programming Cable, http://www.picoweb.net/ [C:\WinAVR-20100110\bin\avrdude.conf:683] sp12 = Steve Bolt's Programmer [C:\WinAVR-20100110\bin\avrdude.conf:672] alf = Nightshade ALF-PgmAVR, http://nightshade.homeip.net/ [C:\WinAVR-20100110\bin\avrdude.conf:656] bascom = Bascom SAMPLE programming cable [C:\WinAVR-20100110\bin\avrdude.conf:646] dt006 = Dontronics DT006 [C:\WinAVR-20100110\bin\avrdude.conf:636] pony-stk200 = Pony Prog STK200 [C:\WinAVR-20100110\bin\avrdude.conf:624] stk200 = STK200 [C:\WinAVR-20100110\bin\avrdude.conf:608] bsd = Brian Dean's Programmer, http://www.bsdhome.com/avrdude/ [C:\WinAVR-20100110\bin\avrdude.conf:597] pavr = Jason Kyle's pAVR Serial Programmer [C:\WinAVR-20100110\bin\avrdude.conf:589] dragon_pdi = Atmel AVR Dragon in PDI mode [C:\WinAVR-20100110\bin\avrdude.conf:582] dragon_dw = Atmel AVR Dragon in debugWire mode [C:\WinAVR-20100110\bin\avrdude.conf:574] dragon_hvsp = Atmel AVR Dragon in HVSP mode [C:\WinAVR-20100110\bin\avrdude.conf:566] dragon_pp = Atmel AVR Dragon in PP mode [C:\WinAVR-20100110\bin\avrdude.conf:558] dragon_isp = Atmel AVR Dragon in ISP mode [C:\WinAVR-20100110\bin\avrdude.conf:550] dragon_jtag = Atmel AVR Dragon in JTAG mode [C:\WinAVR-20100110\bin\avrdude.conf:542] jtag2pdi = Atmel JTAG ICE mkII PDI mode [C:\WinAVR-20100110\bin\avrdude.conf:534] jtag2avr32 = Atmel JTAG ICE mkII im AVR32 mode [C:\WinAVR-20100110\bin\avrdude.conf:526] jtagmkII_avr32 = Atmel JTAG ICE mkII im AVR32 mode [C:\WinAVR-20100110\bin\avrdude.conf:518] jtag2dw = Atmel JTAG ICE mkII in debugWire mode [C:\WinAVR-20100110\bin\avrdude.conf:510] jtag2isp = Atmel JTAG ICE mkII in ISP mode [C:\WinAVR-20100110\bin\avrdude.conf:502] jtag2 = Atmel JTAG ICE mkII [C:\WinAVR-20100110\bin\avrdude.conf:494] jtag2fast = Atmel JTAG ICE mkII [C:\WinAVR-20100110\bin\avrdude.conf:486] jtag2slow = Atmel JTAG ICE mkII [C:\WinAVR-20100110\bin\avrdude.conf:478] jtagmkII = Atmel JTAG ICE mkII [C:\WinAVR-20100110\bin\avrdude.conf:470] jtag1slow = Atmel JTAG ICE (mkI) [C:\WinAVR-20100110\bin\avrdude.conf:463] jtag1 = Atmel JTAG ICE (mkI) [C:\WinAVR-20100110\bin\avrdude.conf:455] jtagmkI = Atmel JTAG ICE (mkI) [C:\WinAVR-20100110\bin\avrdude.conf:447] avr911 = Atmel AppNote AVR911 AVROSP [C:\WinAVR-20100110\bin\avrdude.conf:441] avr109 = Atmel AppNote AVR109 Boot Loader [C:\WinAVR-20100110\bin\avrdude.conf:435] butterfly = Atmel Butterfly Development Board [C:\WinAVR-20100110\bin\avrdude.conf:429] usbtiny = USBtiny simple USB programmer, http://www.ladyada.net/make/usbtinyisp/ [C:\WinAVR-20100110\bin\avrdude.conf:423] usbasp = USBasp, http://www.fischl.de/usbasp/ [C:\WinAVR-20100110\bin\avrdude.conf:417] avr910 = Atmel Low Cost Serial Programmer [C:\WinAVR-20100110\bin\avrdude.conf:411] stk600hvsp = Atmel STK600 in high-voltage serial programming mode [C:\WinAVR-20100110\bin\avrdude.conf:405] stk600pp = Atmel STK600 in parallel programming mode [C:\WinAVR-20100110\bin\avrdude.conf:399] stk600 = Atmel STK600 [C:\WinAVR-20100110\bin\avrdude.conf:393] stk500hvsp = Atmel STK500 V2 in high-voltage serial programming mode [C:\WinAVR-20100110\bin\avrdude.conf:387] stk500pp = Atmel STK500 V2 in parallel programming mode [C:\WinAVR-20100110\bin\avrdude.conf:381] stk500v2 = Atmel STK500 Version 2.x firmware [C:\WinAVR-20100110\bin\avrdude.conf:375] mib510 = Crossbow MIB510 programming board [C:\WinAVR-20100110\bin\avrdude.conf:369] stk500v1 = Atmel STK500 Version 1.x firmware [C:\WinAVR-20100110\bin\avrdude.conf:363] stk500 = Atmel STK500 [C:\WinAVR-20100110\bin\avrdude.conf:357] buspirate = The Bus Pirate [C:\WinAVR-20100110\bin\avrdude.conf:347] avrisp2 = Atmel AVR ISP mkII [C:\WinAVR-20100110\bin\avrdude.conf:341] avrispmkII = Atmel AVR ISP mkII [C:\WinAVR-20100110\bin\avrdude.conf:335] avrispv2 = Atmel AVR ISP V2 [C:\WinAVR-20100110\bin\avrdude.conf:329] avrisp = Atmel AVR ISP [C:\WinAVR-20100110\bin\avrdude.conf:323] arduino = Arduino [C:\WinAVR-20100110\bin\avrdude.conf:317] make: *** [flash] Error 1 Mahavir Singh@SurfaceBook MINGW64 ~/Documents/FIRMWARE $ make clean rm -f usbdrv/*.o rm -f *.hex *.elf *.o Mahavir Singh@SurfaceBook MINGW64 ~/Documents/FIRMWARE $ make avr-gcc -mmcu=attiny45 -Wall -DF_CPU=16500000UL -I. -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Os -Iusbdrv -c main.c -o main.o avr-gcc -mmcu=attiny45 -Wall -DF_CPU=16500000UL -I. -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Os -Iusbdrv -c usbdrv/usbdrv.c -o usbdrv/usbdrv.o avr-gcc -mmcu=attiny45 -Wall -DF_CPU=16500000UL -I. -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Os -Iusbdrv -c usbdrv/oddebug.c -o usbdrv/oddebug.o avr-gcc -x assembler-with-cpp -mmcu=attiny45 -Wall -DF_CPU=16500000UL -I. -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Os -Iusbdrv -c usbdrv/usbdrvasm.S -o usbdrv/usbdrvasm.o avr-gcc -mmcu=attiny45 -o fts_firmware.elf main.o usbdrv/usbdrv.o usbdrv/oddebug.o usbdrv/usbdrvasm.o avr-size -C --mcu=attiny45 fts_firmware.elf AVR Memory Usage ---------------- Device: attiny45 Program: 2534 bytes (61.9% Full) (.text + .data + .bootloader) Data: 75 bytes (29.3% Full) (.data + .bss + .noinit) avr-objcopy -j .text -j .data -O ihex fts_firmware.elf fts_firmware.hex Mahavir Singh@SurfaceBook MINGW64 ~/Documents/FIRMWARE $ make flash avrdude -p attiny45 -c usbtiny -P usb -e \ -U flash:w:fts_firmware.hex avrdude: initialization failed, rc=-1 Double check connections and try again, or use -F to override this check. avrdude done. Thank you. make: *** [flash] Error 1 Mahavir Singh@SurfaceBook MINGW64 ~/Documents/FIRMWARE $ make flash -F C:\WinAVR-20100110\utils\bin\make: invalid option -- F Usage: make [options] [target] ... Options: -b, -m Ignored for compatibility. -B, --always-make Unconditionally make all targets. -C DIRECTORY, --directory=DIRECTORY Change to DIRECTORY before doing anything. -d Print lots of debugging information. --debug[=FLAGS] Print various types of debugging information. -e, --environment-overrides Environment variables override makefiles. -f FILE, --file=FILE, --makefile=FILE Read FILE as a makefile. -h, --help Print this message and exit. -i, --ignore-errors Ignore errors from commands. -I DIRECTORY, --include-dir=DIRECTORY Search DIRECTORY for included makefiles. -j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg. -k, --keep-going Keep going when some targets can't be made. -l [N], --load-average[=N], --max-load[=N] Don't start multiple jobs unless load is below N. -L, --check-symlink-times Use the latest mtime between symlinks and target. -n, --just-print, --dry-run, --recon Don't actually run any commands; just print them. -o FILE, --old-file=FILE, --assume-old=FILE Consider FILE to be very old and don't remake it. -p, --print-data-base Print make's internal database. -q, --question Run no commands; exit status says if up to date. -r, --no-builtin-rules Disable the built-in implicit rules. -R, --no-builtin-variables Disable the built-in variable settings. -s, --silent, --quiet Don't echo commands. -S, --no-keep-going, --stop Turns off -k. -t, --touch Touch targets instead of remaking them. -v, --version Print the version number of make and exit. -w, --print-directory Print the current directory. --no-print-directory Turn off -w, even if it was turned on implicitly. -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE Consider FILE to be infinitely new. --warn-undefined-variables Warn when an undefined variable is referenced. This program built for i386-pc-mingw32 Report bugs to Mahavir Singh@SurfaceBook MINGW64 ~/desktop/Academy_folder/makefiles/networking_bridge_board $ make -f Makefile program-USBtiny avr-objcopy -O ihex main.out main.c.hex;\ avr-size --mcu=attiny45 --format=avr main.out AVR Memory Usage ---------------- Device: attiny45 Program: 704 bytes (17.2% Full) (.text + .data + .bootloader) Data: 4 bytes (1.6% Full) (.data + .bss + .noinit) avrdude -p t45 -P usb -c usbtiny -U flash:w:main.c.hex avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature = 0x1e9206 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 "main.c.hex" avrdude: input file main.c.hex auto detected as Intel Hex avrdude: writing flash (704 bytes): Writing | ################################################## | 100% 0.81s avrdude: 704 bytes of flash written avrdude: verifying flash memory against main.c.hex: avrdude: load data flash data from input file main.c.hex: avrdude: input file main.c.hex auto detected as Intel Hex avrdude: input file main.c.hex contains 704 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 0.61s avrdude: verifying ... avrdude: 704 bytes of flash verified avrdude done. Thank you. Mahavir Singh@SurfaceBook MINGW64 ~/desktop/Academy_folder/makefiles/networking_bridge_board $ cd Mahavir Singh@SurfaceBook MINGW64 ~ $ cd Documents Mahavir Singh@SurfaceBook MINGW64 ~/Documents $ cd FIRMWARE Mahavir Singh@SurfaceBook MINGW64 ~/Documents/FIRMWARE $ ls fts_firmware.elf fts_firmware.hex main.c main.o Makefile usbconfig.h usbdrv/ Mahavir Singh@SurfaceBook MINGW64 ~/Documents/FIRMWARE $ make clean rm -f usbdrv/*.o rm -f *.hex *.elf *.o Mahavir Singh@SurfaceBook MINGW64 ~/Documents/FIRMWARE $ make avr-gcc -mmcu=attiny45 -Wall -DF_CPU=16500000UL -I. -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Os -Iusbdrv -c main.c -o main.o avr-gcc -mmcu=attiny45 -Wall -DF_CPU=16500000UL -I. -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Os -Iusbdrv -c usbdrv/usbdrv.c -o usbdrv/usbdrv.o avr-gcc -mmcu=attiny45 -Wall -DF_CPU=16500000UL -I. -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Os -Iusbdrv -c usbdrv/oddebug.c -o usbdrv/oddebug.o avr-gcc -x assembler-with-cpp -mmcu=attiny45 -Wall -DF_CPU=16500000UL -I. -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Os -Iusbdrv -c usbdrv/usbdrvasm.S -o usbdrv/usbdrvasm.o avr-gcc -mmcu=attiny45 -o fts_firmware.elf main.o usbdrv/usbdrv.o usbdrv/oddebug.o usbdrv/usbdrvasm.o avr-size -C --mcu=attiny45 fts_firmware.elf AVR Memory Usage ---------------- Device: attiny45 Program: 2534 bytes (61.9% Full) (.text + .data + .bootloader) Data: 75 bytes (29.3% Full) (.data + .bss + .noinit) avr-objcopy -j .text -j .data -O ihex fts_firmware.elf fts_firmware.hex Mahavir Singh@SurfaceBook MINGW64 ~/Documents/FIRMWARE $ make flash avrdude -p attiny45 -c usbtiny -P usb -e \ -U flash:w:fts_firmware.hex avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature = 0x1e9206 avrdude: erasing chip avrdude: reading input file "fts_firmware.hex" avrdude: input file fts_firmware.hex auto detected as Intel Hex avrdude: writing flash (2534 bytes): Writing | ################################################## | 100% 2.88s avrdude: 2534 bytes of flash written avrdude: verifying flash memory against fts_firmware.hex: avrdude: load data flash data from input file fts_firmware.hex: avrdude: input file fts_firmware.hex auto detected as Intel Hex avrdude: input file fts_firmware.hex contains 2534 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 2.13s avrdude: verifying ... avrdude: 2534 bytes of flash verified avrdude done. Thank you. Mahavir Singh@SurfaceBook MINGW64 ~/Documents/FIRMWARE $ lsusb bash: lsusb: command not found Mahavir Singh@SurfaceBook MINGW64 ~/Documents/FIRMWARE $ make fuses avrdude -p attiny45 -c usbtiny -P usb \ -U lfuse:w:0xE1:m -U hfuse:w:0xDD:m \ -U efuse:w:0xFF:m avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature = 0x1e9206 avrdude: reading input file "0xE1" avrdude: writing lfuse (1 bytes): Writing | ################################################## | 100% 0.00s avrdude: 1 bytes of lfuse written avrdude: verifying lfuse memory against 0xE1: avrdude: load data lfuse data from input file 0xE1: avrdude: input file 0xE1 contains 1 bytes avrdude: reading on-chip lfuse data: Reading | ################################################## | 100% 0.00s avrdude: verifying ... avrdude: 1 bytes of lfuse verified avrdude: reading input file "0xDD" avrdude: writing hfuse (1 bytes): Writing | ################################################## | 100% 0.00s avrdude: 1 bytes of hfuse written avrdude: verifying hfuse memory against 0xDD: avrdude: load data hfuse data from input file 0xDD: avrdude: input file 0xDD contains 1 bytes avrdude: reading on-chip hfuse data: Reading | ################################################## | 100% 0.00s avrdude: verifying ... avrdude: 1 bytes of hfuse verified avrdude: reading input file "0xFF" avrdude: writing efuse (1 bytes): Writing | ################################################## | 100% 0.00s avrdude: 1 bytes of efuse written avrdude: verifying efuse memory against 0xFF: avrdude: load data efuse data from input file 0xFF: avrdude: input file 0xFF contains 1 bytes avrdude: reading on-chip efuse data: Reading | ################################################## | 100% 0.00s avrdude: verifying ... avrdude: 1 bytes of efuse verified avrdude done. Thank you. Mahavir Singh@SurfaceBook MINGW64 ~/Documents/FIRMWARE $