This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
documentation:fa20:programarduinounoinc [2021/01/13 16:28] ferdi created |
documentation:fa20:programarduinounoinc [2021/03/18 09:16] ferdi |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Program Arduino Uno in C ====== | ====== Program Arduino Uno in C ====== | ||
- | test | ||
===== Windows ===== | ===== Windows ===== | ||
Line 13: | Line 12: | ||
< | < | ||
- | '' | + | cd path/ |
</ | </ | ||
- | '' | + | {{ :documentation: |
- | '' | + | The important bit is you Makefile. Depending on your configuration you might have to adjust the name of the USB-port your Arduino is connected to: |
< | < | ||
- | + | AVRDUDE = avrdude -q -V -p atmega328p -C C: | |
- | '' | + | |
</ | </ | ||
Line 29: | Line 27: | ||
===== Mac/Linux ===== | ===== Mac/Linux ===== | ||
- | '' | + | For Mac install crosspack-avr: |
+ | < | ||
+ | https:// | ||
+ | </ | ||
+ | For Linux install avrgcc toolchain: | ||
+ | < | ||
+ | sudo apt install avrdude gcc-avr avr-libc make | ||
+ | </ | ||
+ | open terminal/ | ||
- | * '' | + | Mac: cmd-space and then type terminal\\ |
+ | Linux: usually Ctrl+Alt+T\\ | ||
- | '' | + | put the files (download below) in a folder path/ |
- | * '' | + | open the Makefile with a text editor and edit the following line: \\ |
- | '' | ||
- | |||
- | * '' | ||
- | * '' | ||
- | |||
- | '' | ||
- | |||
- | open the Makefile with a text editor and edit the following line: | ||
< | < | ||
- | "AVRDUDE = avrdude -q -V -p atmega328p -C / | + | AVRDUDE = avrdude -q -V -p atmega328p -C / |
</ | </ | ||
- | '' | + | changing:\\ |
< | < | ||
- | / | + | / |
</ | </ | ||
+ | |||
with the serial port where the Arduino is connected to, you can get it from the Arduino IDE Tools-> | with the serial port where the Arduino is connected to, you can get it from the Arduino IDE Tools-> | ||
+ | |||
< | < | ||
ll /dev/ | grep cu.usbmodem | ll /dev/ | grep cu.usbmodem | ||
/ | / | ||
</ | </ | ||
- | with the folder where you have installed the AVR Crosspack/ | ||
- | '' | + | with the folder where you have installed the AVR Crosspack/ |
+ | |||
+ | save the Makefile and then run:\\ | ||
< | < | ||
cd path/ | cd path/ | ||
Line 67: | Line 70: | ||
make flash | make flash | ||
</ | </ | ||
- | '' | + | |
+ | {{ :documentation: | ||
+ | |||
+ | [<>] |