\item Download and install Code Composer Studio CCS (see
Section~\ref{sec-ti-ccs}).
\item Install a C compiler. On Windows follow Section~\ref{sec-c-compiler}.
-\item On Windows you have to tell the \texttt{mex} which C compiler it
- should use. In the Matlab command window run the \texttt{mex -setup}
+\item On Windows you have to tell the \texttt{mex} which C compiler to
+ use. In the Matlab command window run the \texttt{mex -setup}
command and select the native C compiler.
\begin{lstlisting}[basicstyle=\tt\footnotesize]
\end{figure}
\end{compactitem}
\end{compactitem}
- \item Once the model is configured, you can open the Library Browser (\textsc{View $\rightarrow$ Library Browser}.) and add necessary blocks to create the model. The RPP blocks in the library browser can be found in the RPP Block Library.
+\item Once the model is configured, you can open the Library Browser
+ (\textsc{View $\rightarrow$ Library Browser}) and add the necessary
+ blocks to create the model. The RPP-specific blocks are located in
+ the RPP Block Library.
\item From Matlab command window change the current directory to where
you want your generated code to appear, e.g.:
\begin{lstlisting}[language=Matlab]
cd /tmp/my-code
\end{lstlisting}
- The code will be generated in a subdirectory of that directory. The name of
-the subdirectory will be \texttt{<model>\_rpp}, where \texttt{model} is the name
-of the Simulink model.
+The code will be generated in a subdirectory named
+\texttt{<model>\_rpp}, where \texttt{model} is the name of the
+Simulink model.
\item Generate the code by choosing \textsc{Code $\rightarrow$ C/C++
Code $\rightarrow$ Build Model}.
\end{enumerate}
To run the model on the target RPP hardware you have to enable the download
feature and build the model by following this procedure:
\begin{enumerate}
- \item Open the model you want to run (see Section~\ref{sec-openning-demo-models} for example with demo models.)
+ \item Open the model you want to run (see
+ Section~\ref{sec-openning-demo-models} for example with demo
+ models).
\item Click on \textsc{Simulation$\rightarrow$Model Configuration
Parameters}.
- \item In the \textsc{Code Generation$\rightarrow$RPP Options} pane
-check \textsc{Download compiled binary to RPP} checkbox.
+\item In the \textsc{Code Generation$\rightarrow$RPP Options} pane
+ check the \textsc{Download compiled binary to RPP} checkbox.
\item Click the \textsc{OK} button, connect the target HW to the computer
like in the Section \ref{sec-ccs-run-project} and build the model by \textsc{Code $\rightarrow$ C/C++
Code $\rightarrow$ Build Model}. If the build