This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[FAQ] Sticky: MathWorks Solutions for C2000 MCU’s

Guru 111535 points

Replies: 145

Views: 179322

Save design time and get into production faster with C2000 MCU’s with MathWorks solutions.

To begin you use MATLAB® and Simulink® to create and simulate your algorithms. Next you use Embedded Coder® to generate production code of your algorithms. Embedded Coder support for Texas Instruments C2000 includes:

        • Automated build and execution
        • Block libraries for on-chip and on-board peripherals such as ADC, digital I/O, ePWM, SPI, I2C, and more
        • Real-time parameter tuning and logging using external mode
        • Processor optimized code including DMC and IQMath libraries
        • Ability to perform processor-in-the-loop (PIL) tests with execution profiling
        • Examples for motor control and power conversion that run on TI C2000 hardware

You can also generate code that runs on the Control Law Accelerator (CLA), a co-processor available on select TI Delfino and Piccolo processors.


From within MATLAB you can access hardware support for Embedded Coder via the Add-On Explorer from the MATLAB toolstrip.


Search for C2000, and select to download and install free C2000 library blocks. You insert and configure the blocks, which include IO and various functions, in your Simulink model. Then you use Embedded Coder to generate production code of your algorithm and run it directly on your TI C2000 MCU. The library blocks include documentation, example models, and support C2000 Piccolo, Delfino, and Concerto families.

Note: Using Embedded Coder requires additional MathWorks software: MATLAB®, Simulink®, MATLAB Coder™, and Simulink Coder™.

You can also just generate production code of your algorithms which can be imported and integrated into an existing Code Composer Studio project.

--- ---

Here is more info including how-to videos and examples you can run with TI hardware kits:


    • Details and Examples:

      • C2000 Hardware Support webpages:

      • Delfino: F2833x, F2837xS, F2837xD, C2834x

      • Piccolo: F2802x, F2803x, F2805x, F2806x, F2807x, F28004x

      • Concerto: F28M35x, F28M36x (C28x + ARM Cortex M3)

      • Legacy: C280x, C281x, C2833x, F281x, F280x

      • C2000-Based Examples


Content Updated 2019-01-22

145 Replies

  • Chris,

    Thank you for the information! In what instances should we ask for help in the TI e2e forum and when should we ask for help in the mathworks forum?


  • In reply to Ozino Odharo:

    In almost all cases you will get better results by asking The Mathworks directly.
    I've sent this post to the Mathworks team who supports C2000 and have asked them to follow so that they will receive all questions in an email.

    So feel free to use this thread to ask a simple question.
    If more involved I would post your own thread and use this one to notify The Mathworks.
  • In reply to ChrisClearman:

    Thank you Chris for this much required thread :)



    If a post answers your question, please click on "This resolved my issue" button

    Are You A Beginner or New to TI's C2000™ Family? Do Check This Book!

  • In reply to ChrisClearman:

    Great to see this info get posted!

    The main link for MathWorks Support is:

    There is C2000 info in Documentation, Examples, and MATLAB Answers.


    I am also happy to try and answer questions on using MathWorks software with C2000 MCU's in these forums.




    Brian McKay  |  Technical Marketing  |

  • MathWorks Release R2016a is now available to customers, and includes new features for our TI C2000 solution.

    1) F28379 Support: Device is now available in the drop down menu.

    2) Serial SCI Support: New library blocks for SCI Transmit and SCI Receive on TI C2000 F2807x and TI C2000 F2837x processors for asynchronous serial digital communication.

    3) CAN Support: New library blocks for CAN Transmit and CAN Receive on TI C2000 F2807x and TI C2000 F2837x processors.

    Brian McKay  |  Technical Marketing  |

  • In reply to Brian McKay:

    Hi Brian, Is there a solution available from Mathworks to program a C2000 microcontroller to communicate using Modbus protocol over RS485? I am unable to find anything so far. The microcontroller I am using is TMS320F28335.
  • In reply to Rohit Baranwal:

    Hi Rohit,

    The SCI Transmit and Receive blocks can be used for RS485 communication. They are included in the C2000 Support Package. We do not have a Modbus specific implementation, but you can build your own on top of the SCI blocks using standard Simulink blocks and Stateflow diagrams.

    More info (login may be required)

    SCI Transmit

    SCI Receive

    Example model

    There are a good number of configuration details within the Configuration Parameters - here's a quick screenshot:

    Good luck with your project!


    Brian McKay  |  Technical Marketing  |

  • Hi Chris,

    I am using MATLAB R2015A. I downloaded the support package for C2000 Piccolo MCU but in Simulink I don't have the block for F2807x. Why is it so? Am I missing anything.

    Best Regards,

    Prakash Kumar.

  • In reply to Prakash Kumar Thulasi Kumar:

    Hi Prakash,

    The support for F2807x begins with Release R2015b. So you wont see the block library in R2015a. Please update to R2015b (or newer release) and you will gain access to this block library.

    I should also note - we continue to add more blocks and features for C2000 (especially F2807x, F2837xS, and F2837xD libraries in every new release.  There are a number of features that will be added on R2016b in Autumn and R2017a next Spring.



    Brian McKay  |  Technical Marketing  |

  • In reply to Brian McKay:

    Thanks for the info Brian.

    Best Regards,

    Prakash Kumar.

This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.