Created
June 21, 2015 23:42
-
-
Save wu-lee/2c456572ea4a13b716dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make -f c.makefile clean upload | |
rm -f blink5.hex blink5.o nimcache/stdlib_system.o nimcache/stdlib_unsigned.o | |
avr-gcc -I ~/i/installs/Nim/lib -g -mmcu=atmega168 -c -o blink5.o blink5.c | |
avr-gcc -I ~/i/installs/Nim/lib -g -mmcu=atmega168 -c -o nimcache/stdlib_system.o nimcache/stdlib_system.c | |
avr-gcc -I ~/i/installs/Nim/lib -g -mmcu=atmega168 -c -o nimcache/stdlib_unsigned.o nimcache/stdlib_unsigned.c | |
avr-gcc blink5.o nimcache/stdlib_system.o nimcache/stdlib_unsigned.o -o blink5.bin | |
avr-objcopy -j .text -j .data -O ihex blink5.bin blink5.hex | |
avrdude -p atmega168 -c arduino -b19200 -e -U flash:w:blink5.hex -P /dev/ttyUSB1 | |
avrdude: AVR device initialized and ready to accept instructions | |
Reading | ################################################## | 100% 0.00s | |
avrdude: Device signature = 0x1e9406 | |
avrdude: erasing chip | |
avrdude: reading input file "blink5.hex" | |
avrdude: input file blink5.hex auto detected as Intel Hex | |
avrdude: writing flash (722 bytes): | |
Writing | ################################################## | 100% 0.48s | |
avrdude: 722 bytes of flash written | |
avrdude: verifying flash memory against blink5.hex: | |
avrdude: load data flash data from input file blink5.hex: | |
avrdude: input file blink5.hex auto detected as Intel Hex | |
avrdude: input file blink5.hex contains 722 bytes | |
avrdude: reading on-chip flash data: | |
Reading | ################################################## | 100% 0.42s | |
avrdude: verifying ... | |
avrdude: 722 bytes of flash verified | |
avrdude: safemode: Fuses OK | |
avrdude done. Thank you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment