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.

TMS320F28069: Using InstaSpin motorware Lab01b with F28069

Part Number: TMS320F28069
Other Parts Discussed in Thread: MOTORWARE, CONTROLSUITE

We are using InstaSpin motorware Lab01b with F28069 (TMS320F28069PZPQ) controller on our custom hardware board. In that we are unable to enter the motor identification phase during the debug.

We followed the MOTORWARE hal tutorial document and mapped all the ADC and PWM pins in hal.c as per our board. 

Following are the observations while viewing the register values:

1. XCLK Value = 0x0000 whereas we expect 0x0002

2. All the ADC registers are getting 0x0000 value.

3. All EPWM registers are 0x0000 causing no PWM output.

4. All the motor parameters like Ls, Rs etc are getting to 0.0

5. when we are modifying the registers for clock manually by changing the function HAL_setupClks() in hal.c , the debug session values aren't getting updated.
We tried updating 'disable' functions to 'enable'. But in debugger XCLK is still 0x0000
void HAL_setupClks(HAL_Handle handle)
{
HAL_Obj *obj = (HAL_Obj *)handle;


// enable internal oscillator 1
CLK_enableOsc1(obj->clkHandle);

// set the oscillator source
CLK_setOscSrc(obj->clkHandle,CLK_OscSrc_Internal);

// disable the external clock in
CLK_enableClkIn(obj->clkHandle);

// disable the crystal oscillator
CLK_enableCrystalOsc(obj->clkHandle);

// disable oscillator 2
CLK_enableOsc2(obj->clkHandle);

// set the low speed clock prescaler
CLK_setLowSpdPreScaler(obj->clkHandle,CLK_LowSpdPreScaler_SysClkOut_by_1);

// set the clock out prescaler
CLK_setClkOutPreScaler(obj->clkHandle,CLK_ClkOutPreScaler_SysClkOut_by_1);

return;
} // end of HAL_setupClks() function

Any leads for InstaSpin support are highly appreciated. 

Thanks.

Warm Regards,

Anish Bhatia

  • This TMS320F28069PZPQ can't support Instaspin-FOC, the correct part number should be TMS320F28069FPZPQ.

    You don't need to change the HAL_setupClks() if you are using the internal on-chip oscillator, but you need to change both HAL_setupClks() and HAL_setupPll() if you are using an external crystal.

  • Hi Yanming Luo,

    Thanks for providing support on our concern.

    Below are some queries:

    1. Can you confirm on the usage of any InstaSpin Labs project which might be compatible with the TMS320F28069PZPQ? (If any modification applicable in code). And why does TMS320F28069PZPQ can't support Instaspin Lab?

    2. For execution of Motor Identification phase only. Can we configure/modify any instaspin lab projects source code?(If possible)

    3. For trainings related to InstaSpin software framework. Can you share some opensource and Paid resources for in-depth technical training?

     

    Warm Regards,

    Anish 

  • 1. Can you confirm on the usage of any InstaSpin Labs project which might be compatible with the TMS320F28069PZPQ? (If any modification applicable in code). And why does TMS320F28069PZPQ can't support Instaspin Lab?

    No way. You have to use TMS320F28069FPZPQ. the The FAST library code is in the mask ROM of TMS320F28069FPZPQ, but the TMS320F28069PZPQ device doesn't have this ROM.

    2. For execution of Motor Identification phase only. Can we configure/modify any instaspin lab projects source code?(If possible)

    As mentioned above, it's a mask ROM code, can't be changed by the user. You might use TMS320F28069FPZPQ device if you want to use the instaspin-foc.

    3. For trainings related to InstaSpin software framework. Can you share some opensource and Paid resources for in-depth technical training?

    We can't provide the open source code to the user. You might use eSMO based sensorless-FOC in controlSUITE which is the open-source code.

    You might find the example project with eSMO based sensorless-FOC in the folder below.

    https://www.ti.com/tool/controlsuite

    C:\ti\controlSUITE\development_kits\HVMotorCtrl+PfcKit_v2.1\HVPM_Sensorless

    C:\ti\controlSUITE\development_kits\DRV830x-HC-C2-KIT_v105\PM_Sensorless