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.

DRV8702D-Q1EVM: programming the onboard MSP430G553

Part Number: DRV8702D-Q1EVM
Other Parts Discussed in Thread: DRV8702D-Q1, MSP430G2553, MSP-FET, MSP-EXP430G2ET, UNIFLASH, DRV8702-Q1EVM, DRV8702-Q1

Tool/software:

I want to drive a 30uH, 1.28 Ohms load using a regulated 12VDC power supply. The waveform is a 12.5 Hz, bipolar 50% duty cycle (ON:OFF:-ON:OFF), no high-frequency PWM. I need the load to reach max current (slightly below 9.1A) before the switch-off. I need to minimize the switch-off time and linearize it using an external active voltage clamping circuit. My plan is to program the MSP430G553 to control the H-bridge to generate such waveform and output maximum current values and protection circuit status to a Raspberry Pi 5 via UART. My understanding is that TI CCS software can be use to program and flash the MSP430G553. After full installation and updates, the CCS can not recognize neither the DRV8702D-Q1EVM board nor the MSP430G553. I need some help in: i) getting the CCS to work, configure the board so it can be discovered (if needed, or configure it for flashing), or suggestions/procedures to program the board using a different app. ii) how to configure ISENSE to provide maximum current information knowing the my peak current should be in the 9A range. Any additional information (documents, software, videos) besides the DRV8702D-Q1EVM user's guide or the DRV8702D-Q1 datasheet is greatly appreciated.

  • Hi Alfonso,

    Thanks for contacting us via this forum.

    See below snippet from the EVM User's Guide. In order to have CCS talk to the MSP430G2553 you need an additional USB to MSP430 Spy-Bi-Wire hardware. For example you could use the MSP-FET, https://www.ti.com/tool/MSP-FET and wire it up as mentioned in its User's Guide to the J3 of the DRV EVM or you could use a http://www.ti.com/tool/MSP-EXP430G2ET MSP430G2553 Launchpad and wire connect the Spy-Bi-Wire signals. Without one of these additional HW and connections CCS will not recognize the MSP430G2553 in the DRV EVM.  

    ii) how to configure ISENSE to provide maximum current information knowing the my peak current should be in the 9A range.

    Please refer to section 7.3.4 Current Regulation of the DRV8702D-Q1 datasheet. See snippet below. 

    Regards, Murugavel 

  • Murugavel, thanks for the info. I notice that the MSP-FET comes with miniUSB and a ribbon cable with 2x7 connectors. DRV8702D-Q1EVM J3 SBW is a 1x4 female connector and so, I am not sure buying such MSP MCU Programmer and Debugger without having the right cable. Regarding the MSP-EXP430G2ET, it comes with a USB cable to connect a a PC, not a SBW cable. In your reply, you mentioned J1 is used to download a program to the MSP430 memory and run it. If this is correct, then the main problem is to get CCS IDE to detect the Dev board MCU. I just need a recipe to buy the right hardware to upload a code for the MSP430 to control the H-bridge driver I/Os. 

  • Hi Alfonso,

    You may have to create a custom cable to interface with the EVM. I found the below information in the MSP-FET User's Guide, see snippet below. The USB of the MSP-FET connects to the PC.

    Likewise with the MSP-EXP430G2ET you should remove the four jumper shorts and connect to the 4-pins of the J3 in correct order. The USB of the EXP430 connects to the PC. Both options are know to work with TI,s CCS and UniFlash. MSP-FET supports all MSP430 microcontrollers whereas the EXP430 supports only MSP430 device that has Spy-Bi-wire interface such as the MSP430G2553.

    I'm not sure if the MSP430 product group has a 4-wire to 8-wire cable available. You can try submitting a new E2E support with the MSP430G2553 part#. This will be directed to the corresponding experts at TI.

    There used to be a MSP430 eZ430-F2013 Development tool, https://www.ti.com/lit/ug/slau176e/slau176e.pdf that had the specific connector interface used in J3. This hardware is no longer available.   

    Thank you.

    Regards, Murugavel 

  • Thanks again Marugavel. I will submit a new E2E question to explore if I can use a MSP-EXP430G2ET to connect with the SBW terminal on the DRV8702-Q1EVM board so I can program the MCU.

  • Hi Alfonso,

    FYI, We have used both MSP-EXP430G2ET and MSP-FET for programming the MSP430F2553 in the DRV8702-Q1EVM with no issues using a custom wiring for the 4 lines. Good idea to check with the MCU team. Thank you. 

    Regards, Murugavel 

  • Hi Murugavel,

    As you may recall from https://e2e.ti.com/support/motor-drivers-group/motor-drivers/f/motor-drivers-forum/1531780/drv8702d-q1evm-disabling-pwm-mode E2E, I was able to control the DRV8702-Q1EVM board by bypassing the MCU and using a MSP-EXP340G2ET LaunchPad board to directly control the DRV8702-Q1 H-bridge driver using the J4 pins. Now that the code to control the H-bridge is up and running, I would like to flash the DRV's MSP430G2553 MCU to stop using the LaunchPad board as the controller. I made a 8" long 4-wire ribbon cable for connecting the SBWTDIO, , 3V3 and GND on the LaunchPad to the SBW female connector J3 on the DRV board. Figure 2.2 above is confusing because it describes connections between the JTAG device and the MSP430 MCU while skipping specifics of both board connections and as such, I am not sure if I have to add the resistors/capacitors shown in the schematic. I am going to describe the connections I've tried and the settings on the CCS IDE and see if you can help me implementing it the right way. With the DRV board powered by VDD and the LaunchPad connected to the PC's USB 1:

    Signal                                              LaunchPad                                             DRV SBW connector (J3)

    SBWTDIO                          PIN 6 2x7 jumper block (SBWTDIO)                  PIN2

    SBWTCK                           PIN 7  2x7 jumper block (SBWTCK)                   PIN 3

    GND                                   GND                                                                    PIN 1

    3.5V                                    PIN 1 20-pin connector 1                                    PIN4

    I remove all the wires used to control J4 signals on the DRV board. When power the DRV VDD and LaunchPAd connected to PC, LaunchPad did not start. Looking at the DRV board schematic shows that SBW PIN 4 has 3.5V when VDD is on. I removed 3.5V SBW connector from the LaunchPad and both board LEDs were ON. However STATUS LED on DRV board was OFF. On the CCS side, I opened target config .ccmlx file, chose MSP430G2553, TI MSP430 USB1 connection, CPU properties were left unchecked, or checked "secondary processor" and JTAG/SBW speed tested on "SLOW" and "MEDIUM". The flashing was unsuccessful on any try, getting messages on the CCS: "MSP430G2553 unable to connect. please unplug and re-plug the usb connection and try again. TI MSP430 USB1/MSP340 error connecting to the target: unknown device". If I unplug VDD from the DRV board, I've got the message "Error connecting to the target: Unknown device". I change the position of jumper J2 on the DRV board, even left it open with no success. I checked for shorts and conductivity between the ends of the SBW cable and the back of the SBW connector on the DRV board and I found no issues. I can not find specific wiring diagrams and CCS flashing instructions that describes in details the setting needed to flash a target MCU that is not the one on the LaunchPad board.

    I am including a picture of the boards. notice that the SBW yellow wire (3V3) is floating since we have 3.5V on the SBW PIN4 on the DRV board. Since you have used both MSP-EXP430G2ET and MSP-FET for programming the MSP430F2553 in the DRV8702-Q1EVM with no issues, could you please share the: i) wiring specifics, SBW wire specific connections on the LaunchPad, ii) the settings for J2 and J3 jumpers, applied voltage, iii) target configs and any other requirements needed for CCS IDE to flash the target MSP430 on the DRV board? An example would be great, or at least instructions or an schematic of the connections. Thanks for your support, cheers

  • Hi Alfonso,

    I responded to the other post regarding the MODE pin. I'm glad you got it to work. 

    All your debugger related questions are MSP430 questions. You should create a new E2E post with MSP430G2553 as the part number - this is for your reference for future MSP430 related questions.

    I will try to answer your questions as much as I can, hopefully help resolve your issue. Looking at the image of your setup I noticed you've connected the two SBWxxx wires to the incorrect ends of the header, actually to the MSP430G553 device in the Launchpad and not the actual SBW interface pins. Remove those two jumper shorts and connect these two wires to the ends pointed by the two green arrows.

    Since you left the MSP430G2553 in the Launchpad socket, removing the GND and 3V3 jumpers could un-power the MSP430 or you could remove the MSP430 from its socket. From the image I also noticed you were using a DRV8702-Q1EVM not the DRV8702D-Q1EVM mentioned in the title part #. On the programming side both are identical, so no issues.  

    General directions for SBW interface between an MSP430 Launchpad and the DRV8702-Q1EVM:

    For connecting the SBW JTAG from the Launchpad to the EVM, first remove the four jumper shorts in the Launchpad as shown below. Connect the four header pins that are closer to the arrow heads to the DRV8702D-Q1EVM to the SBW cable. 

    The DRV8702-Q1EVM has an onboard 3.3 V regulator that derives its input from PVDD. So while PVDD is powered the 3V3 from the Lauchpad to the EVM need not be connected. Just the three wires; GND, SBWTDIO and SBWTCK are sufficient to achieve SBW JTAG connectivity and CCS functionality. 

    The EVM to Launchpad connections should be as shown below. 3V3 is optional because the DRV8702-Q1EVM has its own 3.3 V while its PVDD is powered up. No other resistor or capacitor are needed to be connected. I hope this helps you to resolve the issue. 

    Regards, Murugavel 

  • Thanks Murugavel, I was able to flash the DRV's MSP MCU by just moving the SBW connectors to the ezFET side of the jumper block. I appreciate your support Slight smile