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.

DRV8301-HC-C2-KIT: Flashed code on F2806x Control Card doesn't boot without USB plugged in.

Part Number: DRV8301-HC-C2-KIT
Other Parts Discussed in Thread: MOTORWARE, DRV8301, CONTROLSUITE

I have just started trying to run code from flash on the DRV8301-HC-C2-Kit eval board.  I am using the debugger built into CCS V7.4.0.00015 to download the flash configuration of one of the motorware v1.01.00.18 labs.  When I cycle the power on the eval board, the flashed program only boots up if the USB cable is plugged into the onboard debugger.  This is regardless of whether CCS IDE is open or closed.  When booting with USB cable unplugged, I notice that only LD1 (green LED left of DSP) lights up; the two red LEDs (LD2 & LD3) do not light up until USB is plugged in.  (I'm not sure what these two LEDs signifiy so any pointers on where this is documented would be appreciatied)  Once the USB cable is plugged in, the flash program starts up continues running regardless of whehter USB is then unplugged. 

The last thing I should mention is that I'm using a the J12 plug on the driver board to access SCIA.  I have flipped SW3.1 to disconnect the onboard serial converter transmit signal from SCIA-RXD so that I can drive this from J12.  I'm guessing that I'm getting stuck in the bootloader, but am not sure how to prevent this (other than plug in debugger USB)

Thanks.

  • Tom,

    Thanks for reaching out to us via the E2E.  

    First, the support files for both the DRV8301 as well as the F2806CNCDISO are part of a download package we call controlSUITE.  You can download this here: http://www.ti.com/tool/CONTROLSUITE .  

    The DRV files will install to the relative path: C:\..\controlSUITE\development_kits\DRV830x-HC-C2-KIT_v105\

    and the F2806CNCD is here: C:\..\controlSUITE\development_kits\~controlCARDs\TMDSCNCD28069ISO_v1_1\R0_4\

    Inside the controlCARD directory there is both a schematic and a InfoSheet in PDF form.  The infosheet should help you get started, in terms of boot modes and power ports, and LEDs.

    To your question LD1 indicates the MCU is receiving power from the DRV8301.  LD2 and LD3 are just connected to GPIO31/34 to provide some debug LEDs for the user.  If they are toggling, it would just indicate that the code running is using those ports, not necessarily for IO but there is activity.

    Just to confirm, but the JTAG USB is J1 (left side) and the USB comms channel(to the USB on the F2803x) is J200(right side).  If you have J1 plugged in you should also see LD4 LED light up, indicating the emualtor has power.

    Now, to your issue with only running code if the emulator is connected: on page 3 of the infosheet you'll notice that the boot pins for the MCU are GPIO34 and TDO, which is one of the JTAG signals.  These can be controlled locally with switch SW1. 

    From your last statement I beleive you want to boot from UART/SCI, so you'll want SW1:1 ON and SW1:2 OFF.  Perhaps having the JTAG plugged in it getting TDO in the correct state for you system, or at least my best theory at the moment.

    Let me know what you find, if after you've gotten all the above set up and this is still an issue we can dive a bit deeper.

    Matt

  • Matthew,

    Thank you very much for your help.  I was unaware of the files installed with controlSUITE which are not accessible through the resource explorer.  The schematic I was looking at was one somewhere had posted online.  Now I know where they got it.  This is a huge help.  

    You are, of course, correct that the LEDs are to the right of the micro USB connector--my error.  And yes, LD4 lights up when the Mini USB cable is plugged into J1.  And good to know about LD2 & 3 being for user purposes.  I'm sure they will come in handy.

    I am not actually trying to boot from SCIA.  I am just using it to send data to a labview program which displays data.  For some reason the comms port on my board appears not to function (does not enumerate when USB is plugged in).  So I was working around this by going directly to J12. 

    Now that I have the info sheet, I understand what is going on with the debug port.  I see that I I just need to change the setting of SW3.1 to boot without the USB plugged in.  (Note that I incorrecty stated I switched this to disconnect the onboard USB serial converter.  I actually switched SW3.2.  Sorry for all the confusion.)

    Thanks again, Matthew.  I just tested that SW3.1 in the off position allows the flashed code to launch immediately at boot.  Case closed.

    Tom Herron

  • Tom,

    Appreciate the follow up wrt the board files not being in TI Resource Explorer.  I'm going to follow up on this internally to see if there is a reason these aren't showing up/if there is a way to get them included.

    Best regards,

    Matthew