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.

DRV8303EVM: DRV8303EVM evaluation board fails to connect

Part Number: DRV8303EVM
Other Parts Discussed in Thread: TMS320F28035, CONTROLSUITE

I've recently bought the DRV8303EVM evaluation module and, at first, I wanted to use the InstaSpin GUI but I couldn't connect the board to the GUI. I've installed the driver which I downloaded from the TI website page (https://www.ti.com/tool/DRV8303EVM?keyMatch=&tisearch=search-everything&usecase=hardware) but still the connection fails. 

I've then tried to connect the board to CCS version 11.1 and I went through the target configuration as explained in the pdf User Guide but again the configuration fails and it gives me the error message in the attached txt file. 

Could you please help me with that?

thank you!

[Start: Texas Instruments XDS100v1 USB Debug Probe_0]

Execute the command:

%ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -F inform,logfile=yes -S pathlength -S integrity

[Result]


-----[Print the board config pathname(s)]------------------------------------

C:\Users\GIORGI~1.VAL\AppData\Local\TEXASI~1\
    CCS\ccs1110\0\0\BrdDat\testBoard.dat

-----[Print the reset-command software log-file]-----------------------------

This utility has selected a 100- or 510-class product.
This utility will load the adapter 'jioserdesusb.dll'.
The library build date was 'Dec  8 2021'.
The library build time was '11:16:32'.
The library package version is '9.6.0.00172'.
The library component version is '35.35.0.0'.
The controller does not use a programmable FPGA.
The controller has a version number of '4' (0x00000004).
The controller has an insertion length of '0' (0x00000000).
This utility will attempt to reset the controller.
This utility has successfully reset the controller.

-----[Print the reset-command hardware log-file]-----------------------------

The scan-path will be reset by toggling the JTAG TRST signal.
The controller is the FTDI FT2232 with USB interface.
The link from controller to target is direct (without cable).
The software is configured for FTDI FT2232 features.
The controller cannot monitor the value on the EMU[0] pin.
The controller cannot monitor the value on the EMU[1] pin.
The controller cannot control the timing on output pins.
The controller cannot control the timing on input pins.
The scan-path link-delay has been set to exactly '0' (0x0000).

-----[The log-file for the JTAG TCLK output generated from the PLL]----------

There is no hardware for programming the JTAG TCLK frequency.

-----[Measure the source and frequency of the final JTAG TCLKR input]--------

There is no hardware for measuring the JTAG TCLK frequency.

-----[Perform the standard path-length test on the JTAG IR and DR]-----------

This path-length test uses blocks of 64 32-bit words.

The test for the JTAG IR instruction path-length failed.
The JTAG IR instruction scan-path is stuck-at-zero.

The test for the JTAG DR bypass path-length failed.
The many-ones then many-zeros tested length was 1 bits.
The many-zeros then many-ones tested length was 2048 bits.

-----[Perform the Integrity scan-test on the JTAG IR]------------------------

This test will use blocks of 64 32-bit words.
This test will be applied just once.

Do a test using 0xFFFFFFFF.
Test 1 Word 0: scanned out 0xFFFFFFFF and scanned in 0x00000000.
Test 1 Word 1: scanned out 0xFFFFFFFF and scanned in 0x00000000.
Test 1 Word 2: scanned out 0xFFFFFFFF and scanned in 0x00000000.
Test 1 Word 3: scanned out 0xFFFFFFFF and scanned in 0x00000000.
Test 1 Word 4: scanned out 0xFFFFFFFF and scanned in 0x00000000.
Test 1 Word 5: scanned out 0xFFFFFFFF and scanned in 0x00000000.
Test 1 Word 6: scanned out 0xFFFFFFFF and scanned in 0x00000000.
Test 1 Word 7: scanned out 0xFFFFFFFF and scanned in 0x00000000.
The details of the first 8 errors have been provided.
The utility will now report only the count of failed tests.
Scan tests: 1, skipped: 0, failed: 1
Do a test using 0x00000000.
Scan tests: 2, skipped: 0, failed: 2
Do a test using 0xFE03E0E2.
Scan tests: 3, skipped: 0, failed: 3
Do a test using 0x01FC1F1D.
Scan tests: 4, skipped: 0, failed: 4
Do a test using 0x5533CCAA.
Scan tests: 5, skipped: 0, failed: 5
Do a test using 0xAACC3355.
Scan tests: 6, skipped: 0, failed: 6
Some of the values were corrupted - 74.5 percent.

The JTAG IR Integrity scan-test has failed.

-----[Perform the Integrity scan-test on the JTAG DR]------------------------

This test will use blocks of 64 32-bit words.
This test will be applied just once.

Do a test using 0xFFFFFFFF.
Test 1 Word 0: scanned out 0xFFFFFFFF and scanned in 0xFFFFFFFE.
Scan tests: 1, skipped: 0, failed: 1
Do a test using 0x00000000.
Test 2 Word 0: scanned out 0x00000000 and scanned in 0x00000001.
Scan tests: 2, skipped: 0, failed: 2
Do a test using 0xFE03E0E2.
Test 3 Word 0: scanned out 0xFE03E0E2 and scanned in 0x00000000.
Test 3 Word 1: scanned out 0xFE03E0E2 and scanned in 0x00000000.
Test 3 Word 2: scanned out 0xFE03E0E2 and scanned in 0x00000000.
Test 3 Word 3: scanned out 0xFE03E0E2 and scanned in 0x00000000.
Test 3 Word 4: scanned out 0xFE03E0E2 and scanned in 0x00000000.
Test 3 Word 5: scanned out 0xFE03E0E2 and scanned in 0x00000000.
The details of the first 8 errors have been provided.
The utility will now report only the count of failed tests.
Scan tests: 3, skipped: 0, failed: 3
Do a test using 0x01FC1F1D.
Scan tests: 4, skipped: 0, failed: 4
Do a test using 0x5533CCAA.
Scan tests: 5, skipped: 0, failed: 5
Do a test using 0xAACC3355.
Scan tests: 6, skipped: 0, failed: 6
Some of the values were corrupted - 67.2 percent.

The JTAG DR Integrity scan-test has failed.

[End: Texas Instruments XDS100v1 USB Debug Probe_0]

  • Hi Giorgio,

    I forwarded to the C2000 team for assistance in connecting the TMS320F28035 to the XDS100v1 debug probe. 

    Thanks,
    Aaron

  • Which C2000 controller are you using? Did you select the right controller and emulator in the target configuration file in CCS project?

  • Hello,

    yes, I've selected the emulator and target specified in the User guide. The target device is TMS320F28035 and the emulator is the XDS100v1. See screenshot below for the settings in the target configuration:

  • Please check if the power supply and clock is right for the device since you are working on your board, and take a look at the following links about JTAG configuration and connection.

    C2000 MCU JTAG Connectivity Debug (Rev. Ahttps://www.ti.com/lit/pdf/spracf0

    Getting Started With C2000Tm Real-Time Control Microcontrollers (MCUs) (Rev. B) https://www.ti.com/lit/pdf/spruiv6

     

    https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1074612/tmdshvmtrpfckit-ftdi-driver-issue-and-jtag-connectivity-problem/3992470

    BTW, TMS320F28035 can't support InstaSPIN-FOC, so you can't use the InstaSpin GUI and run any InstaSpin abs on this device.

  • I bought this board from you which comes with a TMS320F28035 microcontroller and a built-in non-isolated XDS100 JTAG emulator (see link https://www.ti.com/tool/DRV8303EVM?keyMatch=&tisearch=search-everything&usecase=hardware) so I'd assume that the power supply and clock are compatible.

    From the link above I downloaded the InstaSpin_BLDC GUI, so it comes together with this DRV8303EVM board and I'd assume that they are compatible. I've attached the User Guide of the DRV8303EVM board, on section 4.2 it explains the steps to do the software setup with the GUI provided. 

    User Guide.pdf

  • It could be a legacy board that's not recommended to a new user. Please take a look at the links as mentioned above to check if the on-board JTAG can be connected correctly within CCS., and find the emulator driver in the device manager of your PC.

  • hello, sorry for the late replay but I've been busy in a different project. 

  • I've read the documents from the link, thank you for that.

    I followed the advice of Matthew Pate (https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1074612/tmdshvmtrpfckit-ftdi-driver-issue-and-jtag-connectivity-problem/3992470) and I reprogramed the EEPROM that the FTDI chip uses to emulate the XDS100 following the instructions in: https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/21086/important----c2000-experimenter-kit-dual-rs232-fix

    After that, I went to CCS and tried again the target configuration setup and I tested it and obtained a successful JTAG DR Integrity scan-test result (see snapshot below), which is great news as it was failing last week.

    Then, I right clicked on the target configuration (ccxml file) to launch the selected configuration and the debug window opened (see snapshot below)

    Then I right clicked on the first core and selected 'connect target' and the target connection failed. 

    I've copied below the error message from the console:

    C28xx: Failed CPU Reset: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 9.6.0.00172)
    C28xx: Trouble Reading Register PC: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 9.6.0.00172)
    C28xx: Trouble Reading Register ST1: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 9.6.0.00172)
    C28xx: GEL: Error while executing OnReset(-1): Target failed to read register ST1
    at (ST1&~(0x0100)) [f28035.gel:292]
    at C28x_Mode() [f28035.gel:32]
    at OnReset(-(1))
    C28xx: GEL: Error while executing OnTargetConnect(): Reset failed: retcode=-1
    at GEL_Reset() [f28035.gel:92]
    at OnTargetConnect()
    C28xx: Flash Programmer: Warning: The configured device (TMS320F28035), does not match the detected device (). Flash Programming operations could be affected. Please consider modifying your target configuration file.

    Could you please help me with this? do you know what else is wrong with the board? I've also followed the instructions you sent me to debug the JTAG connectivity ( https://www.ti.com/lit/an/spracf0a/spracf0a.pdf?ts=1648174828454) and got stuck at point 10 (Modify the CCS "On Connect" Action).

  • Please check if the power supply is correct on the board for the F28035 controller. And did you check if the emulator can be found in the device manager of the PC? And click the "Test Connection" in the ".ccxml" to check what message will be reported.

  • Just wanted to check in and see if there is any update from your side, I haven’t heard from you for two weeks, so I’m assuming you were able to resolve your issue. Please let me know if you have any questions. We would like to close this thread if no any further questions. Thanks.

  • sorry, I've been on leave and busy with higher priority projects. I'll get back to it this week and let you know. Thank you!

  • OK. Please try to provide more detailed operation steps you did on this issue if possible. Thanks!

  • I've managed to do some more tests on the DRV8303EVM board. I managed to get it working with the InstaSPIN GUI where I could actually control my BLDC motor in both speed and torque mode. 

    Now I'm trying to connect the board to CCS where I want to modify the code, however I'm still having issues with the connection. The steps I'm following are:

    1) connect the board to the PC with USB cable (LD1 turns green)

    2) connect the power supply to the board and supply 20V (operating voltage of the board is 8 to 60V). After this operation LD3 turns green.

    3) open CCS 11.1 and start a new target configuration. I'm choosing 'Texas Instruments XDS100v1 USB Debug Probe' in the Connection tab and 'TMS320F28035' as device target. 

    4) I ran the 'Test Connection' and I got successful JTAG DR Integrity scan-test (see screenshot below)

    5) then I right click on the newly created Target Configuration and click on Launch Selected Configuration. A debug window opens with the 2 CPU cores. I right click on each core and select 'Connect Target' (see screenshot below) but the operation doesn't appear to work as it still says 'Suspended'.

    Not sure if I'm doing something wrong here, but I did follow the JTAG Connectivity Debug pdf you've sent me (https://www.ti.com/lit/an/spracf0a/spracf0a.pdf?ts=1648174828454) and I checked the signals TRSTn and XRSn with a tester and I get around 3.3 V on both. Then, I noticed that on step 5 above (when I click on Connect Target) the LD3 goes brighter for very short time and then goes off. If I try again the Connect Target the LD3 goes on for a very short time and then off again. I then measured the value of the STATUS pin and when the LD3 is on the value is 0.27V while after clicking Connect Target and the LD3 going off the value is 0.13V. Is this behavior right? 

  • Giorgio,

    Can you probe TP22 with a DMM and make sure we are seeing 3.3V(either from the start or after trying to connect)?  From the behavior it looks like we may not be getting power to the MCU.  As you have observed the JTAG/XDS100 is good as CCS sees it and can complete a scan through it.

    Also make sure that SW1 is "on" as this gates the TRSTn signal.  We only want this off when we have flashed code and running in standalone mode(and just using the XDS100 for UART comms/data).

    You can also try and put the device in "Wait" Boot mode with SW2.  This will keep the device from executing any code so that the JTAG has a more reliable attempt at connection.

    Will look for your responses for any next steps in the debug.

    Best,

    Matthew

  • hi Matthew,

    I've measured TP22 and it always gives me around 3.3V (both before and after attempting to connect to target), so the 3.3V is generated OK in the board. 

    Yes, SW1 is On

    I've changed the boot mode to 'Wait' by having SW2 position 1 Off and SW2 position 2 On. Is this the correct setting? I've attempted to connect to target but again it failed, or at least, I think it does. I'm not a CCS expert user but when I right click on one of the CPU cores (i.e. C28xx) and click 'Connect target' then it says 'Suspended' and it says 'Break at address "0x3ff8a1" with no debug information available, or outside of program code'. I guess this is not a successful connection to target. However, it doesn't through any error... Also, what's the voltage value of STATUS? it goes from 0.27 to 0.13 when I attempt the target connection and this turns off LD3. Is this behavior expected? 

    What do you think? Could it be that there's an issue with the PCB hardware? 

  • Giorgio,

    I was looking at the schematic for the LD3, and noticed a PU resistor that looks incorrect on the board.  Can you check resistor R63, it should be connected to the F2803x device on pin 9.  The schematic says it is a 0Ohm shunt to VDDIO(3.3V).  If this really is a hard tie, I would like to remove R63 for now to see if it changes anything.  XRSn is actually bi-directional with an open drain configuration, but it needs to be able to pull the pin low to fully reset the device properly before releasing it.  There is a very weak PU on this pin, that should allow it to go high, we can put a weak PU here later once we see if this helps things.

    Best,
    Matthew

  • Hi Matthew,

    yes, R63 is connected to pin 9 of the F28035 device, however if I measure its resistance with a DMM I get around 2.2kOhm, so I think there's an error in the schematic. Actually if you check the BOM for that EVM you'll find that R63 is a 2.2k Ohm resistor. 

    Today I've been trying to follow the procedure in the pdf below to setup CCS with the software to control the BLDC motor. The DRV8303EVM user guide actually says that the CCS projects provided in controlSUITE for the DRV8301EVM can be used directly for the DRV8303EVM without any modifications (see snapshot below). I got to Level 1 Incremental Build of the pdf below which seems to be working fine (including the connection to the target!). I'll do some more debugging tomorrow and move to Level 2 Incremental Build and then I'll update you.

     InstaSPIN-BLDC Sensorless Control.pdf

  • Giorgio,

    Thanks for the update, will look for more info from you as you progress.

    Best,

    Matthew

  • Hi Matthew

    yesterday I went through the 8 incremental build levels without issues so the board seems to be working fine. I'm still not sure why the LD3 goes off when I connect the target with CCS but it's a minor problem. 

    That's all for now and thank you very much for the support.