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.

DRV8243S-Q1LEVM: Motor control code example for drv8243S-Q1 and MSPM0L1306

Part Number: DRV8243S-Q1LEVM
Other Parts Discussed in Thread: MSPM0L1306, , DRV8243-Q1, MSPM0G3507

Hi all,
I would like to program the MSPM0L1306 to communicate with the motor driver DRV8243S via SPI, so it drives the motor for 50ms. My question is, does a code example exist, where the MSPM0L1306 controlls the DRV8243S via SPI which I can modify for my purpose? I am grateful for every help! Also feel free to reach out to me via email.


Best regards
Daniel

  • Hi Daniel,

    The source code and project file with CCS for the DRV8243S-Q1LEVM can be downloaded from the EVM webpage, https://dr-download.ti.com/software-development/support-software/MD-8Fqtr3axho/01.00.00.0B/slvc821b.zip. We do not have a code example for MSPM0L1306.

    However CCS libraries based code example and GUI exist for the MSPM0L1306 for DRV8706S-Q1 which is an SPI based register controlled smart gate driver for driving BDC motors similar to the DRV8243-Q1. 

       

    This application note describes the MSPM0 SDK for motor control including the DRV8706S-Q1, https://www.ti.com/lit/an/sprad34b/sprad34b.pdf. The MSPM0 SDK can be accessed here,  https://www.ti.com/tool/MSPM0-SDK.

    Regards, Murugavel 

  • Hi Murugavel,

    thank you for your help. I already used the evm GUI from the drv and the motor did spin with no problems. I also looked into the sdk code example from 8706 but it was not very helpful for me. Do you have a C2000 example for drv8243S which can be ported to mspm0? 
    Regards

    Daniel

  • Hi Daniel,

    Could you please explain what were the issues you faced while trying to reuse the DRV8706 SDK code example? This will be helpful for us to know such that we can have a better example in the future. 

    If you have specific questions or issues with the MSPM0 SDK please post a question in the MSPM0 SDK forum. They might be able to offer you a solution. 

    We recently used the DRV8706 MSPM0 SDK example framework to develop firmware for our new product EVM for BDC motor with SPI Registers. The HAL layer worked fine on the first try for us and the example was reusable for most part. We actually ported it to MSPM0G3507 with no issues. Just want to share with you this experience we had with the SDK.  

    I'm not aware of any other code example for DRV8243S including with C2000. Thanks.

    Regards, Murugavel