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.

DRV8323: bypass the GUI to run a motor

Part Number: DRV8323
Other Parts Discussed in Thread: MSP-EXP430F5529LP, MSP430F5529, DRV832X, TIDA-010056, TIDA-010031, LAUNCHXL-F280049C, BOOSTXL-DRV8320RS, MOTORWARE, LAUNCHXL-F28069M

Hello,

i use the MSP-EXP430F5529LP with the BOOSTXL-DRV8323RS.

i manage to run my motors with the provided GUI.

Now i need to bypass the GUI. Imean power up the MSP contrôler and DRV and make the motor run without using a laptop/the GUI.

i took  a long time to read the code on CCS 10 : "DRV832X_MSP430F5529_Trapezoidal_Sensored_BLDC" exemple.

i don't find what command i have to send throught the SPI bus to the DRV.

it's impossible for me to run the code in debug mode in CCS10 and use the GUI in the same time in order to catch the command sent by the GUI.

finally i don't found on google how to have a feedback throught printf() on the CCS consol.

So  i think it could be usefull for me if you could tell me what i have to modify in the exemple code or at least : 

- help me to have a debug feed back like the printf() on the CCS console 

OR

- give me the code of the GUI

OR 

- help me to make the debug runing mode on CCS and the GUI work together (in the same time ) in order to catch the command send by the GUI to the DRV ( and i will know how modify the exemple code as i want for my project prototype)

  • Hi Florian,

    DRV832x GUI is created externally, we don't have GUI javascript code. 

    "DRV832X_MSP430F5529_Trapezoidal_Sensored_BLDC" implements sensored trap code, but there is a lot of "extra layers" due to communication with the GUI and JSON protocol. However, it does show SPI driver and register map formatted for DRV832x in project contents. 

    My recommendations to evaluate the motor using sensored trap with MSP430 + DRV832x is below. You cannot do real-time debug with MSP430.

    1) Sensored trap example can be found in TIDA-010056 firmware: https://www.ti.com/lit/zip/tidcfi3

    2) Sensorless trap example can be found in TIDA-010031 firmware:  https://www.ti.com/lit/zip/tidcf80

    C2000 solutions offer real-time debug, but we only have sensoreless-FOC solutions available using BOOSTXL-DRV832xx boards:

    3) For real time debug, you can use LAUNCHXL-F280049C + BOOSTXL-DRV8320RS for sensoreless-FOC (newer solution): https://www.ti.com/tool/C2000WARE-MOTORCONTROL-SDK

    4) You can also use LAUNCHXL-F28069M + BOOSTXL-DRV8323RS for sensorless-FOC using MotorWARE (older solution): https://www.ti.com/tool/MOTORWARE

    Thanks,
    Aaron

  • hello ! thanks for your fast reply !

    ok i understand points you are telling me.

    but i don't need a real time debug.i can use breakpoints. i want to have a simple debug mode using the GUI. Actually, until now, when i run the code in debug mode on CCS, the GUI is not able to see the device/ the good com port to use. so i can't send command like "enable motor" or "enable driver".

    so i was wondering if it is possible to have a debug trace (feedback on console) at least. 

  • Hi Florian, 

    You can use breakpoint debug on CCS when you run the firmware "DRV832X_MSP430F5529_Trapezoidal_Sensored_BLDC.c" in CCS.

    1) First you need to insert the breakpoints by clicking the line of code to have the breakpoint at

    2) Then hit the Build button 

    3) Then hit the Debug button 

    4) Then the program will start at main then hit the play button to debug 

    THis is similar to step 8 of the EVM user's guide: https://www.ti.com/lit/slvub01

    Thanks,
    Aaron

  • Hi Florian,

    Do you need assistance on this still? If not, please mark as "Resolved".

    Thanks,
    Aaron

  • Hello,

    finally i found the solution by my-self without debug mode.

    i modified the exemple code again and again in order to found the function used by the callback triggered by the serial comunication with the GUI.

    have a good day Slight smile