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.

It is possible to get a .c file from an .out file?

Other Parts Discussed in Thread: TMS320F28035, CONTROLSUITE

Hello,

I'm working with HVDMC Kit User Inteface and TMS320F28035.

In the GUI Interface I'm able to change pmsm speed ref, and this GUI provides me the next out file: HV_PM_ACI_Sensorless.out, in addition, mentioned out file can be loaded in CCSv5, I'm able to change speed ref from CCSv5. 

But I would like to get the .c file of this .out file, in order to change speed ref from MATLAB in live streaming.

If anyone know something about, or, in different case, If anyone know how to control motor speed with mentioned devices via MATLAB, I'll appreciate so much.

Best regards.

-Caleb

  • Hi,

    The above project is very well available in controlSuite.  C:\ti\controlSUITE\development_kits\HVMotorCtrl+PfcKit_v2.1

    user4759278 said:
    But I would like to get the .c file of this .out file, in order to change speed ref from MATLAB in live streaming.

    Sorry , this is not possible.

    Regards,

    Gautam

  • Hi Gautam,

    Actually I'm using an example project from that folder (HVPM_Sensorless), I would like to modify global variables like SpeedRef and VqTesting in the run time, do you think this is possible, I mean, declare these variables as external variables and modify them from matlab, or maybe by assembly code?

    Any help will be great.

    Regards. -Caleb

  • I understand what you plan to achieve. Instead why don't you use a Serial Protocol and command the board from A terminal app on PC?
  • Thank you a lot.

    I will try to use Serial Protocol, I appreciate your time, I will be updating my development and hope you could keep in touch in order complete the project in best terms.

    Anyway, thank you a lot for your answers.

    Regards, -Caleb.

  • I was wondering if an I2C block allows me to have access to Piccolo's memory, and set Global variable's addresses.

    These addresses, via this block:

    Do you think this is possible?

  • Caleb Garcia said:
    I was wondering if an I2C block allows me to have access to Piccolo's memory, and set Global variable's addresses

    I've not tried the same by myself and hence can't comment!

  • Gautam Iyer said:
    why don't you use a Serial Protocol and command the board from A terminal app on PC?

    I can't understand main idea. How to do this?

  • Hi Caleb,

    A serial protocol like I2C or SCI/RS-232 won't automatically set the variables. What you need to do is write some code on the processor that listens for packets on the serial port, and then changes your internal program variables (e.g. motor speed) based on the message received.
  • Hi Devin, Thanks for replying.

    Devin Cottier said:
    write some code on the processor that listens for packets on the serial port

    You mean:

    • Set processor I2C bus as slave, in order to listen packets from serial port?
    • Or, modify HVPM_Sensorless main code so that varibles can be modified?

    Note this is my first time with: C2000 processors, CCSv5, and Simulink. Sorry for any questions that may be as easy to answer.

    Regards. -Caleb

  • Hi Caleb,

    I think both are necessary. The I2C HW settings need to be configured such that the I2C is configured in slave mode, and when packets are received an interrupt is triggered.

    The main code needs to be modified to have an interrupt to handle I2C data received, and the main algorithm of your code needs to have some way to detect that a new speed has been received and the speed variable should be updated at a safe point.