Skip to content

kyak/stellaris_ert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simulink (Embedded Coder) Target for TI Stellaris LaunchPad

Summary:

TI Stellaris LaunchPad (http://www.ti.com/stellaris-launchpad-b) is a low-cost development board based on ARM Cortex-M4F.

Simulink (http://www.mathworks.com/products/simulink) is a leading environment for multidomain simulation and Model-Based Design.

Embedded Coder (http://www.mathworks.com/products/embedded-coder) allows you to generate C code and deploy your algorithms to target hardware.

Installation:

  1. Windows/Linux: Have Code Composer Studio 5.3 (or above) installed (http://processors.wiki.ti.com/index.php/Download_CCS).

  2. Windows/Linux: Have StellarisWare installed (http://www.ti.com/tool/SW-EK-LM4F120XL). You don't have to download the complete StellarisWare package. "StellarisWare for the Stellaris LM4F120 LaunchPad Evaluation Board" is enough.

Make sure your toolchain is working (build and download some test project, check connection) before you proceed!

  1. Make sure you have a working/supported host compiler (http://www.mathworks.com/support/compilers/R2014a/index.html) by running

     mex -setup
    

in MATLAB.

  1. Extract this package somewhere. Make sure there are no spaces/non-ASCII characters in path (just in case).

  2. Within MATLAB, 'cd' to the directory containing stellaris_setup.m and run this script.

You should be good to go.

What this package already has:

  • Standalone execution on target (driven by ISR)

  • Execution in PIL mode

  • PIL mode profiling

  • Simulink library blocks for:

      * GPIO
      * Push Buttons
      * UART Read/Write
      * Built-in temperature sensor
      * Generic ADC
    

What this package would like to have:

  • Simulink library blocks for:

      * PWM, Interrupts, uDMA...
      * Timers
    
  • More documentation

  • External Mode support