Difference between revisions of "HANcoder/Training Material/AutomaticLightControlSystem/3"

From OpenMBD
Jump to: navigation, search
(Created page with " '''Go to part 4''' =LED Control System Part 3= ==Part 3: == ===Introduction to Simulink=== HANcoder/Examples/Automa...")
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[HANcoder/Examples/AutomaticLightControlSystem/4| '''Go to part 4''']]
+
[[HANcoder/Examples/AutomaticLightControlSystem/2| '''<<<Go back to part 2''']]
 +
 
 +
[[HANcoder/Examples/AutomaticLightControlSystem/4| '''>>>Go to part 4''']]
  
 
=LED Control System Part 3=
 
=LED Control System Part 3=
  
==Part 3: ==
+
==Part 3: Compiling the model and flashing it onto the Olimexino==
 +
 
 +
The Simulink model is now ready to compile and be programmed to the Olimexino.
 +
You are now able to build the model by pressing the '''Build''' button in Simulink.
 +
 
 +
[[File:p1figure8.png|100px]]
 +
 
 +
''Figure 8 Build button in Simulink''
 +
 
 +
 
 +
After a licensing notification, MATLAB&REG; will call up the GNU ARM Toolchain to convert your model to machine code. After the S file is ready, MATLAB&REG; will start the Microboot program to flash the code to the Olimexino. A similar window to that of Figure 9 should pop up. Reset your Olimexino to flash the program.
 +
 
 +
[[File:p1figure9.png|400px]]
 +
 
 +
''Figure 9 Microboot waiting for target reset''
 +
 
 +
 +
 
  
===Introduction to Simulink===
 
  
 +
[[HANcoder/Examples/AutomaticLightControlSystem/2| '''<<<Go back to part 2''']]
  
[[HANcoder/Examples/AutomaticLightControlSystem/4| '''Go to part 4''']]
+
[[HANcoder/Examples/AutomaticLightControlSystem/4| '''>>>Go to part 4''']]

Latest revision as of 14:20, 31 May 2018

<<<Go back to part 2

>>>Go to part 4

LED Control System Part 3

Part 3: Compiling the model and flashing it onto the Olimexino

The Simulink model is now ready to compile and be programmed to the Olimexino. You are now able to build the model by pressing the Build button in Simulink.

P1figure8.png

Figure 8 Build button in Simulink


After a licensing notification, MATLAB&REG; will call up the GNU ARM Toolchain to convert your model to machine code. After the S file is ready, MATLAB&REG; will start the Microboot program to flash the code to the Olimexino. A similar window to that of Figure 9 should pop up. Reset your Olimexino to flash the program.

P1figure9.png

Figure 9 Microboot waiting for target reset


<<<Go back to part 2

>>>Go to part 4