Going Further

Even though your fingers are probably exhausted from all this typing, try to bear in mind that your PC is still doing most of the work. You can lighten your load a little by including the three previously mentioned commands (avr-gcc -mmcu=atmega328p blink.c -o blink.o, avr-objcopy -O ihex blink.o blink.hex, avrdude -p atmega328p -c stk500v1 -P \\.\COM11 -U flash:w:blink.hex:i) in a batch file.

An even better alternative is to use the make utility, which has been specifically designed to help automate the programming development cycle. A version of the make utility is provided in <Arduino installation folder>/hardware/tools/avr/utils/bin. You need to also add this to your path, unless you want to type that entire path in every time ...

Get Arduino Internals now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.