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.

TM4C1294NCPDT: Does Matlab supports TM4C1294NCPDT microcontroller ?

Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: ENERGIA

Respected Sir,

I am using launchpad of TM4C1294NCPDT. I was using CCS as a code development platform for this controller. Now I want to use Matlab, so I want to ask, does this controller is supported by Matlab or not ? 

Does Matlab generate the code for this controller if I draw the state flow just like C2000 series MCUs. ?

Regards,

Nisha Gosavi

  • I am not aware that they do. For a definitive answer, please contact MathWorks.

  • Hello Nisha,

    We directly support the TM4C123G via Energia Support Package: https://www.mathworks.com/matlabcentral/fileexchange/54929-embedded-coder-target-for-energia

    ---

    However, you can use MathWorks Embedded Coder to generate C code suitable for *any* MCU - including the part you list. The most common workflow is to design, simulate, and test your algorithm in MATLAB & Simulink, and then generate C code for your algorithm. Then you import that algorithm C code into CCS - and use CCS configure and to deploy to the device. 

    Cheers,

    -Brian

  • Respected Sir,

    how I can configure the generated C code for particular MCU in CCS. What about the header files and source files of particular MCU, how they will be generated, modified and included in the project and in the file system.

    Nisha Gosavi
  • MathWorks code generation tools create the *.c and *.h files. You will need to locate them in the MathWorks build directory, copy into your CCS working directory, and import those into your CCS project.

    In general, if you have a CCS project; you can use MathWorks tools to do the controller/algorithm design exploration, and generate code for that, and then integrate that code in your existing CCS project. This is a common workflow used by many users. Both MathWorks and TI provide the needed flexibility and tools to go from simulation to deployment, but it is up to the user to streamline the workflow so it is optimal for your specific application.

    Cheers,

    -Brian