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.

TMS320F28377S: Coding CCS using MATLAB

Part Number: TMS320F28377S


Greetings to all! I am new user of CCS and F28377S. I am doing FOC controlled PMSM drive simulation with processor in the loop. For that initially i used Embedded Coder and Simpower system tool box of MATLAB and simulated my plant and built in F28377s. And now I am aiming to code the processor using CCS. For that I thought of generating C code using Embedded coder( MATLAB) and copy the files to CCS and run. I tried LED blink example which was already available but ended up with some error issues. Can anyone please help me to do it with detailed explanation. And also I need to know whether any interfacing between MATLAB and CCS should be done before doing it? (I am using MATLAB 2017a and CCS V7) Thanks in advance.

  • Hi Priya,

    You can directly load the generated executable file to the controller. I've done few video demos on Youtube.
    You can have a look at my videos here: www.youtube.com/.../UC0vWIpaMzxZ0RqT4r4Kp75w

    Regards,
    Gautam
  • Hi Gautam,

    Thank you very much for the link details. Now I built the motor simulation via CCS into the processor. And I wanted to display my motor speed which is in radians per second in CRO. I sent the output through DAC to view it but I am surprised to see very small output range of value than the actual speed value. Can you explain me the cause for it?

    And also I was trying to generate a sine wave using function generator and received it through ADC into the processor. With this single sine wave as input I was aiming to get three phase sine wave which is 120 degree electrically apart. Using MATLAB I introduced 120 degree phase shift each to generate 3 phase voltage and get it through the GPIO pin. But I ended up with error message that GPIO was expecting scalar value but the one which I gave through MUX is a one dimensional 3 element vector. I wanted to know whether I am doing it in a right way. If not please do suggest me the idea to generate 3 phase sine wave.

    Thank you,

    Regards

    Priya