O'Reilly logo

Arduino Internals by Dale Wheat

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required