Skip to content
Snippets Groups Projects
Commit 55cf3b97 authored by Peter Gerwinski's avatar Peter Gerwinski
Browse files

Notizen 31.5.2023: u.a. Compilieren für den Arduino Uno per Kommandozeile

parent 37318ffd
No related branches found
No related tags found
No related merge requests found
Lehrevaluation
~~~~~~~~~~~~~~
https://befragung.hs-bochum.de/evasys/online.php?pswd=58FNG
Programme für den Arduino Uno per Kommandozeile compilieren:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Beispiel-Quelltext: blink-01.s
avr-gcc -mmcu=atmega328p blink-01.s -o blink-01.elf
avr-objcopy -O ihex blink-01.elf blink-01.hex
avrdude -P /dev/ttyACM0 -c arduino -p m328p -U flash:w:blink-01.hex
Beispiel-Quelltext: morse-08.c
avr-gcc -mmcu=atmega328p -Os morse-08.c -o morse-08.elf
avr-objcopy -O ihex morse-08.elf morse-08.hex
avrdude -P /dev/ttyACM0 -c arduino -p m328p -U flash:w:morse-08.hex
Nachtrag zu dem Label "1" bzw. dem Sprung zu "1b"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Die genaue Doku finden Sie unter:
https://sourceware.org/binutils/docs/as/Symbol-Names.html (Überschrift "Local Labels")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment