Difference between revisions of "HANcoder/STM32/Getting Started Guide MATLAB Installation"

From OpenMBD
Jump to: navigation, search
Line 1: Line 1:
 
{{HANcoder}}
 
{{HANcoder}}
  
First of all, MATLAB has to be installed. If this is already done, please check if the required [[#Toolboxes| toolboxes]] are installed.
+
First of all, MATLAB® has to be installed. If this is already done, please check if the required [[#Toolboxes| toolboxes]] are installed.
 
==Requirements==
 
==Requirements==
MATLAB can be installed with Windows XP, Windows 7, Windows 8 and Windows 10. Somehow, using MATLAB with Windows Vista seems to cause problems with the code generation.<br/>
+
MATLAB&reg; can be installed with Windows XP, Windows 7, Windows 8 and Windows 10. Somehow, using MATLAB&reg; with Windows Vista seems to cause problems with the code generation.<br/>
 
The following MATLAB versions are compatible with the HANcoder STM32 Olimexino Target:<br/>
 
The following MATLAB versions are compatible with the HANcoder STM32 Olimexino Target:<br/>
 
MATLAB 32-bit, 2009a until 2014a<br/>
 
MATLAB 32-bit, 2009a until 2014a<br/>
Line 11: Line 11:
 
==Install==
 
==Install==
  
Matlab can be downloaded from the MathWorks site. As can seen in the figure below, you can find the download on the products page. You’ll need a Mathworks account to download products of Mathworks.<br/>
+
Matlab&reg; can be downloaded from the MathWorks site. As can seen in the figure below, you can find the download on the products page. You’ll need a Mathworks account to download products of Mathworks.<br/>
 
[[File:GettingStartedGuideSTM32_MatlabDownloadSection.jpeg| 800px]]<br/>
 
[[File:GettingStartedGuideSTM32_MatlabDownloadSection.jpeg| 800px]]<br/>
The installation steps for Matlab are documented on the MathWorks website. Please follow the steps as indicated on the website, the steps for older MATLAB versions are similar. Be aware of the additional installing info, located below, that is important for the use of HANcoder.
+
The installation steps for Matlab&reg; are documented on the MathWorks website. Please follow the steps as indicated on the website, the steps for older MATLAB&reg; versions are similar. Be aware of the additional installing info, located below, that is important for the use of HANcoder.
  
 
==Toolboxes==
 
==Toolboxes==
While installing Matlab you’re being asked to select the products to install. As previous said the required toolboxes are:<br/>
+
While installing Matlab&reg; you’re being asked to select the products to install. As previous said the required toolboxes are:<br/>
• MATLAB<br/>
+
• MATLAB&reg;<br/>
• Simulink<br/>
+
• Simulink&reg;<br/>
 
• Simulink Coder (formerly Real-time Workshop)<br/>
 
• Simulink Coder (formerly Real-time Workshop)<br/>
 
• Embedded Coder (formerly Real-time Workshop Embedded Coder)<br/>
 
• Embedded Coder (formerly Real-time Workshop Embedded Coder)<br/>
 
The following options are optional, but highly recommended<br/>
 
The following options are optional, but highly recommended<br/>
• MATLAB Coder<br/>
+
• MATLAB&reg; Coder<br/>
 
• Stateflow<br/>
 
• Stateflow<br/>
 
• Stateflow Coder (nowadays integrated in Simulink Coder)<br/>
 
• Stateflow Coder (nowadays integrated in Simulink Coder)<br/>
Line 30: Line 30:
 
[[File:GettingStartedGuideSTM32_ToolboxSelection.jpeg| 600px]]<br/>
 
[[File:GettingStartedGuideSTM32_ToolboxSelection.jpeg| 600px]]<br/>
  
==Matlab as administrator==
+
==Matlab&reg; as administrator==
To give Matlab the permission to remove and overwrite files, it has to be run as administrator. It can be set as default by following these steps:<br/>
+
To give Matlab&reg; the permission to remove and overwrite files, it has to be run as administrator. It can be set as default by following these steps:<br/>
Step 1: Go to the location where the shortcut to Matlab is located.<br/>
+
Step 1: Go to the location where the shortcut to Matlab&reg; is located.<br/>
Start -> search for Matlab r2015a -> right click: Open file location
+
Start -> search for Matlab&reg; r2015a -> right click: Open file location
 
[[File:GettingStartedGuideSTM32_MatlabAsAdmin.png|200px]]<br/>
 
[[File:GettingStartedGuideSTM32_MatlabAsAdmin.png|200px]]<br/>
  
Step 2: Right click on the MATLAB R2015a shortcut and select properties.<br/>
+
Step 2: Right click on the MATLAB&reg; R2015a shortcut and select properties.<br/>
  
 
Go to the Compatibility tab and select Run this program as an administrator. Click apply.
 
Go to the Compatibility tab and select Run this program as an administrator. Click apply.

Revision as of 14:00, 31 May 2018


First of all, MATLAB® has to be installed. If this is already done, please check if the required toolboxes are installed.

Requirements

MATLAB® can be installed with Windows XP, Windows 7, Windows 8 and Windows 10. Somehow, using MATLAB® with Windows Vista seems to cause problems with the code generation.
The following MATLAB versions are compatible with the HANcoder STM32 Olimexino Target:
MATLAB 32-bit, 2009a until 2014a
MATLAB 64-bit, 2012a until 2016b
For Matlab versions from 2009b until 2013a a special set of template models is available.

Install

Matlab® can be downloaded from the MathWorks site. As can seen in the figure below, you can find the download on the products page. You’ll need a Mathworks account to download products of Mathworks.
GettingStartedGuideSTM32 MatlabDownloadSection.jpeg
The installation steps for Matlab® are documented on the MathWorks website. Please follow the steps as indicated on the website, the steps for older MATLAB® versions are similar. Be aware of the additional installing info, located below, that is important for the use of HANcoder.

Toolboxes

While installing Matlab® you’re being asked to select the products to install. As previous said the required toolboxes are:
• MATLAB®
• Simulink®
• Simulink Coder (formerly Real-time Workshop)
• Embedded Coder (formerly Real-time Workshop Embedded Coder)
The following options are optional, but highly recommended
• MATLAB® Coder
• Stateflow
• Stateflow Coder (nowadays integrated in Simulink Coder)
• Fixed-point Designer (formerly Fixed-Point Toolbox & Simulink Fixed Point)
• Vehicle Network Toolbox
The tools can be selected in the window that is shown below:
GettingStartedGuideSTM32 ToolboxSelection.jpeg

Matlab® as administrator

To give Matlab® the permission to remove and overwrite files, it has to be run as administrator. It can be set as default by following these steps:
Step 1: Go to the location where the shortcut to Matlab® is located.
Start -> search for Matlab® r2015a -> right click: Open file location GettingStartedGuideSTM32 MatlabAsAdmin.png

Step 2: Right click on the MATLAB® R2015a shortcut and select properties.

Go to the Compatibility tab and select Run this program as an administrator. Click apply. GettingStartedGuideSTM32 MatlabAsAdmin2.png


Next step