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.

TMS320F280041C: Cannot Spin Motor - Motor Control SDK - Custom Board

Part Number: TMS320F280041C
Other Parts Discussed in Thread: MOTORWARE

Hello,

I'm having trouble configuring my custom board with the Motor Control SDK InstaSPIN-FOC labs. I'm using the TMS320F280041C and DRV8320S, which required a different pin mapping to what is used in the reference designs.

So far, I've successfully ran lab02 to calculate offsets, however lab03 will not run the motor in V/Hz mode. It completes the offset calculation, where the motor emits a high pitch buzzing noise, but then does not do anything else. I cannot see any error states listed in debug mode, so I'm stuck as to what is causing the issue. 

Here is my current pin mapping to the critical signals. I think nFault, EN_Gate, and the SPI signals are working correctly since I can hear the motor buzzing during calibration. 

INH_A -> EPWM1_A

INL_A -> EPWM1_B 

INH_B -> EPWM2_A 

INL_B -> EPWM2_B 

INH_C -> EPWM3_A 

INL_C -> EPWM3_B

ISEN_A -> PGA1_IN

ISEN_B -> PGA2_IN

ISEN_C -> PGA3_IN

VSEN_A -> A2

VSEN_B -> B3

VSEN_C -> C3

VSEN_PVDD -> B2


Is it possible to suggest exactly what steps must be taken to setup the Hal to accommodate these new pins? I've swapped pins on old MotorWare projects relatively easily, and there was a document that guided that process. This time it seems the modifications must take place across a many more functions in the Hal library. 

I would really appreciate any help on this, I've combined through all the reference material and documentation I can find but I can't seem to get past this issue!

Thanks,
Mark

  • Ok, small update that I think narrows down the issue.

    After further inspection of the Fault bits, I noticed that the over current bit kept triggering after offset calibration. Therefore, I think the main issue is how I updated the HAL_setupCMPSSs() function for the new pin mapping. After disabling the CMPSS in the HAL_Init() function by commenting out the setup function, I was able to spin the motor! 

    I'd still prefer to have the over current protection, so if its possible more guidance on how to update the HAL_setupCMPSSs() function would be super helpful. For instance, I can't exactly pin down how to match the Xbar trip number to each mux number, despite looking at table 9-2 in the technical reference manual endlessly. 

    Again, would really appreciate any help!

    Mark

  • Hi Mark,

    Please check the link below to configure HAL_setupCMPSSs()

    Best,

    John

  • Hi John,

    Thanks for the thread link!! After looking at another example setup, I found out I need to use trip 7/8/9. Also really good discussion there on odd OC faults, however I did not experience any so far after fixing my HAL_setupCMPSS() function! 

    Regards,

    Mark