User Tools

Site Tools


documentation:fa20:programarduinounoinc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
documentation:fa20:programarduinounoinc [2021/01/13 16:28]
ferdi created
documentation:fa20:programarduinounoinc [2021/03/18 09:16] (current)
ferdi
Line 1: Line 1:
 ====== Program Arduino Uno in C ====== ====== Program Arduino Uno in C ======
  
-test 
  
 ===== Windows ===== ===== Windows =====
Line 13: Line 12:
 <code> <code>
  
-''cd path/to/folder/c-blink make make flash''+cd path/to/folder/c-blink make make flash
  
 </code> </code>
  
-''[[uploads:e8692cf719019fc9b060f2d65586c719:c-blink|c-blink.zip]]''+{{ :documentation:fa20:c-blink.zip |}}
  
-''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:''+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:
  
 <code> <code>
- +AVRDUDE = avrdude -q -V -p atmega328p -C C:\WinAVR-20100110\bin\avrdude.conf -D -c arduino -b 115200 -P COM6
-''AVRDUDE = avrdude -q -V -p atmega328p -C C:\WinAVR-20100110\bin\avrdude.conf -D -c arduino -b 115200 -P COM6''+
  
 </code> </code>
Line 29: Line 27:
 ===== Mac/Linux ===== ===== Mac/Linux =====
  
-''For Mac install crosspack-avr:''+For Mac install crosspack-avr: 
 +<code> 
 +https://www.obdev.at/products/crosspack/index.html 
 +</code> 
 +For Linux install avrgcc toolchain: 
 +<code> 
 +sudo apt install avrdude gcc-avr avr-libc make 
 +</code> 
 +open terminal/bash:
  
-  * ''https://www.obdev.at/products/crosspack/index.html''+Maccmd-space and then type terminal\\  
 +Linux: usually Ctrl+Alt+T\\ 
  
-''For Linux install avrgcc toolchain:''+put the files (download below) in a folder path/to/folder/c-blink\\ 
  
-  * ''**sudo apt install avrdude gcc-avr avr-libc make**''+open the Makefile with a text editor and edit the following line: \\ 
  
-''open terminal/bash:'' 
- 
-  * ''Mac: cmd-space and then type terminal'' 
-  * ''Linux: usually Ctrl+Alt+T'' 
- 
-''put the files (download below) in a folder **path/to/folder/c-blink**'' 
- 
-open the Makefile with a text editor and edit the following line:  
 <code> <code>
-"AVRDUDE = avrdude -q -V -p atmega328p -C /usr/local/CrossPack-AVR/etc/avrdude.conf -D -c arduino -b 115200 -P /dev/cu.usbmodem14101"''+AVRDUDE = avrdude -q -V -p atmega328p -C /usr/local/CrossPack-AVR/etc/avrdude.conf -D -c arduino -b 115200 -P /dev/cu.usbmodem14101
 </code> </code>
  
-''changing:''+changing:\\ 
 <code> <code>
-/dev/cu.usbmodem14101** +/dev/cu.usbmodem14101
 </code> </code>
 +
 with the serial port where the Arduino is connected to, you can get it from the Arduino IDE Tools->Port, or via bash with  with the serial port where the Arduino is connected to, you can get it from the Arduino IDE Tools->Port, or via bash with 
 +
 <code> <code>
 ll /dev/ | grep cu.usbmodem ll /dev/ | grep cu.usbmodem
 /usr/local/CrossPack-AVR/etc/avrdude.conf /usr/local/CrossPack-AVR/etc/avrdude.conf
 </code> </code>
-with the folder where you have installed the AVR Crosspack/Toolchain, if different'' 
  
-''save the Makefile and then run:''+with the folder where you have installed the AVR Crosspack/Toolchain, if different 
 + 
 +save the Makefile and then run:\\  
 <code> <code>
 cd path/to/folder/c-blink cd path/to/folder/c-blink
Line 67: Line 70:
 make flash make flash
 </code> </code>
-''[[uploads:91f11808c035175488c252ffbca66a27:c-blink_mac|c-blink_mac_linux.zip]]''+ 
 +{{ :documentation:fa20:c-blink_mac.zip |}} 
 + 
 +[<>]
documentation/fa20/programarduinounoinc.1610555327.txt.gz · Last modified: 2021/01/13 16:28 by ferdi