summaryrefslogtreecommitdiff
path: root/Modelica-Arduino-MDD_Arduino_Revised/Instructions.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Modelica-Arduino-MDD_Arduino_Revised/Instructions.txt')
-rwxr-xr-xModelica-Arduino-MDD_Arduino_Revised/Instructions.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/Modelica-Arduino-MDD_Arduino_Revised/Instructions.txt b/Modelica-Arduino-MDD_Arduino_Revised/Instructions.txt
new file mode 100755
index 0000000..3c8a081
--- /dev/null
+++ b/Modelica-Arduino-MDD_Arduino_Revised/Instructions.txt
@@ -0,0 +1,14 @@
+Compiling sources:
+gcc -c -Wall -fPIC filename.c
+gcc -shared -fPIC -o libfilename.so file1.o file2.o ....
+
+MDD:
+Executing Blink example within MOdelica_DeviceDrivers EmbeddedTargets Package:-
+Put the runMDDAvr.mos file in a (build) directory and execute following commands on the command line:
+
+omc --simCodeTarget=ExperimentalEmbeddedC runMDDAvr.mos
+
+avr-gcc -Os -std=c11 -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000UL -Wl,--gc-sections Blink_main.c -o Blink -I /path_to_MDD/Modelica_DeviceDrivers/Resources/Include -I /usr/include/omc/c
+
+avr-objcopy -O ihex -R .eeprom Blink Blink.hex
+avrdude -F -V -c arduino -p ATMEGA328P -P /dev/ttyACM0 -b 115200 -U flash:w:Blink.hex