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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access