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.

TMS320F28069M: InstaSPIN ctrl.c file disturbs the motor ID procedure

Part Number: TMS320F28069M
Other Parts Discussed in Thread: MOTORWARE

Greetings! I am trying to build my frequency inverter program. So I want to add multiple options for the user to spin the motor as V/F, simple FB, FOC and so on. To achieve this i have to add multiple .c files as links to the project from the instaSPIN library. So when ctrl.c file is not included to my project the motorID function works perfectly. But when I add it, this cuases an overcurrent error. I just linked it to the project, i removed every code attempting to use this .c file -> no luck. Can you advice me what to do? 

Thanks!

  • Which lab are you using as the basic? Most of labs have included the ctrl.c except lab02a.

  • First I used lab1b, but when the motorID doesn`t work there, I started with lab2a. And when I started to add the options when I add ctrl.c the motorID doesn`t work anymore. Is there something in lab2a which i duplicated in ctrl.c? Why ctrl.c is not added to lab2a at first? Tha labs doc says ctrl.c contains the most of the rom functions.

    Thanks!

  • Only lab2a/b/c supports motor ID, the other labs don't support motor ID. You might use lab2b or lab2c as your example project. Lab1b is just current closed-loop without using instaspin-foc for hardware verification.

    F2806xF/M include all of the functions of ctrl.c in the mask ROM, so if you use F2806x, you can use the functions in mask ROM as lab02a, or use the ctrl.c as lab02b or other labs.

    More details you might have a look at the lab user's guide at the folder below.

    C:\ti\motorware\motorware_1_01_00_18\docs\labs