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.

DRV8245H-Q1EVM: About the scripting Window

Part Number: DRV8245H-Q1EVM

Hi 

We found there is a Script window at the DRV824x GUI.

But can't found any resource to help us to control DRV8245 by the Script Window.

Any resouce could suggest?

  • Hey Hanchen,

    See attached draft of an FAQ that I wrote just now, it explains the scripting window in general. 

    It looks like for this EVM GUI we forgot to write an example script - that makes it very hard for you to figure out how to use it! Give me 2-3 business days to get my hands on a DRV824x EVM and pull together an example script for it.  Remind me on Tuesday if I haven't gotten back to you by then.  

    FAQ Scripting Window.docx

    Regards,

    Jacob

  • Hi Jacob

    I try the record function.

    It seems  there are no any recation with the wakeup EVM, change PWM frequency, Enable Driver, Stop Driver, Passive Diagnostics...

    Is it also normal?

    So, maybe I need wait for your hands on example.

    Actually I need to control Driver in such patten of "On for 300ms and close for 3.5 seconds".

    But I realize you mentioned about there are limitations about timming.

    I'll find what I can do when I got the example.

    Thanks in advance.

  • Hi Jacob

    We also need to perform some similar scenario at DRV8145 EVM also.

    Could you also provide the hands on sample script of DRV8145 EVM?

  • Hey Hanchen,

    It seems  there are no any recation with the wakeup EVM, change PWM frequency, Enable Driver, Stop Driver, Passive Diagnostics

    The scripting recording feature only currently captures SPI read/writes, not any hardware changes.  Which means that for a hardware device such as DRV8245H it is basically useless.  I'm working on the example that will work for it.

    I need to control Driver in such patten of "On for 300ms and close for 3.5 seconds".

    Yeah unfortunately the scripting feature won't be able to implement this tight timing.  Your best bet would be to download the source code (SLVC821 — DRV824X_DRV814XQ1EVM Software) and Code Composer Studio, modify the firmware to implement your custom pattern, and then upload that firmware to the EVM.  Alternately, remove the shunts on the main jumper header of the EVM and jump in signals from your own microcontroller instead of using our GUI.  

    Best,

    Jacob

  • Hey Hanchen,

    Please see this link for a new version of the GUI where the scripting feature works.  I added an example for the Hardware and SPI versions of the DRV824x-Q1EVMs.  

    https://dev.ti.com/gallery/view/MotorDriversBSM/DRV824x_DRV814x-Q1EVM-GUI/ver/1.0.2/ 

    Best,

    Jacob