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.

DRV8312-RM46 SW Project - not running

Other Parts Discussed in Thread: INSTASPIN-BLDC, MOTORWARE, RM46L852

Hi,

I am attempting to run my motor with the DRV8301-RM46 motor board.  I have gone through the hardware guide for the controlcard and the driver board as well as the instaspin-bldc running guide.  I can talk to the MCU via the JTAG emulator, but something goes wrong fairly quickly.  I would expect the watch window variables, including the ISR ticker variable, to change after hitting "Run", but nothing changes, even after toggling the gui enable flag to 1 as instructed.  I can see that none of my software changes (changes to base frequency, commutation threshold, etc on drv.c) are being applied.  I'm wondering if the TPS chip is taking me out for some reason, since it seems to be a likely culprit.

I can tell that the run guide instructions aren't up to date with the software since several of the variables are named differently and some wrong instructions exist (it says to flip on SW1 position 1 and 4 after loading software for the first time, but position 1 disables the JTAG emulator).

Has anyone gone through the instaspin-bldc project with this setup lately?  I really just need some guidance with this, maybe an updated run guide if it exists.  I've used a C2000 motor dev kit and run my motor with relative ease, so I know I should be able to do this.  I have a few basic questions that may help me get started:

1) Which switches on the RM46 controlcard need to be on?

2) Do I need to enable silicon real time mode?  I always did it with the C2000, but it doesn't give me the option here.

3) Does it matter that my PVDD to the driver board is less than the 24V going to the controcard?  I haven't noticed a difference, since nothing has worked yet.

4) Has anyone made this work with CCSv5.3?  I'm wondering if I'm the first to try this.

Thank you for your time and assistance.  Here's my system information:

Host OS: Windows 7 Home Premium, Service Pack 1
CCS Version: 5.3.0.00090
DRV8301-HC-EVM Rev D
TMDXRM46CNCD Hercules™ ARM® Safety MCU controlCARD
Texas Instruments XDS100V2 USB Emulator

  • Hi Jared, thanks for posting. I have forwarded your resquest to one of the experts who will look into this and respond.

    Best regards,
    TI Hercules Forum Support

  • Hello Jared,

    We apologized for the hic up that you are seeing.

    On the RM46, there should be an extra step to enable the TPS from the gGUIObj.  Please see attachment that i captured from the screenshot.

    Few thing:

    1-

  • Hello Jared,

    Sorry, i accidentally hit the post button and it posted the unfinished message.

    We apologized for the hic up that you are seeing.

    On the RM46, there should be an extra step to enable the TPS from the gGUIObj.  Please see attachment that i captured from the screenshot.

    First set gGUIObj.TPSFlag = 1.

    Then, follow the rest of the sequence.

    To view the variable in real time, please also download the attached updated driver and installed it in your CCS directory below:

    C:\ti\ccsv5\ccs_base\emulation\drivers\

    The gGUIObj (GUI debug object) controlled from the expression window is declared in gui.h. 

    Answering your question:

    1) Which switches on the RM46 controlcard need to be on?

       [TI] please use the default setting from factory.  that default setting has switch 7,5 on ON position

    2) Do I need to enable silicon real time mode?  I always did it with the C2000, but it doesn't give me the option here.

      [TI] Not required.  that was C2000 architecture specific mode.  TMS570 does not require that.

    3) Does it matter that my PVDD to the driver board is less than the 24V going to the controcard?  I haven't noticed a difference, since nothing has worked yet.

      [TI] Please use 24v to 8301 EVM board as we scale the RPM in software according to that voltage.  The 8301 EVM should be able to handle higher voltage than 24v, but the wall plug supply coming along with the kit is only 24v.  there should be a pig tail that split the power to the control card.  Control card needs a separate power supply (12v)

    4) Has anyone made this work with CCSv5.3?  I'm wondering if I'm the first to try this.

      [TI]  we have not tested with CCSv5.3, but it should work. 

  • Henry,

    Thank you for the quick response.  That did the trick.  Thanks again!

    -Jared

  • Hi,

    I have the same problem and followed your instruction above, but not able to start.

    When I import InstaSPINWatch.js there are several variable names starting from gDRVObj... which are not in the project directory. Do you have other script file for RM46?

    And what else I may consider to use RM46 control card?

    regards,

    Wilson

  • Wilson,

    There is a separate InstaSPINWatch.js script under the C:\ti\Hercules\MotorWare\v1.0.3.03\sw\solutions\instaspin_bldc\boards\drv8301kit_revD\hercules\rm46l852\projects\ccs5\project01 folder, assuming the default install folder.

    There is also a "docs" folder under the same location with a document that walks you through the procedure for setting up and running the demos included with the kit.

    P.S.: This thread has already been marked "answered" and "closed". It is better to create a new post on the forum to ensure that it does not get dropped from the list of "open" threads.

    Regards, Sunil

  • Hi Henry,

    When you say "To view the variable in real time, please also download the attached updated driver and installed it in your CCS directory below:", I cannot see the file to download. I am using the latest CCSv6 to date. Could you please give me the download address? Thanks.