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.

DRV8313EVM stand alone mode

Other Parts Discussed in Thread: DRV8313EVM, DRV8313, ENERGIA

Hello All,

I have a DRV8313EVM, using the software I have made my motor move. Now I want to move onto the next step.

Reading document SLAA503 which I am unsure if it still relevant, I assume so, it discusses closed/open loop methods. I got the relevant source from SLAA503 which gives a closed loop example.

As a demonstration, I want to use this firmware on the DRV8313 and want to modify it to make the motor go forwards then go backwards without any input from external sources.

Firstly, I assume there is not any technical limitation to do this and I assume that I can open J2 which will allow me to upload the firmware and debug.


Just some questions:

1) Once I upload the custom firmware, is the software still usable? I think that the software is un-usable if I have read page 14 of SLVU815 correctly. It refers to downloading "DRV8313_Release" as the user experience code

    • On page 14 in slvu815 it gives a link ti.com/tool/drv8313evm to but the mentioned firmware I can't seem to locate on that page

2) If 1 is true, how to revert back to the control software becomes operational again?


3) I have J2 in place and Energia seems to see the on board MSP430, I haven't yet tried to upload. Have I misunderstood a requirement for J2? Do I need to touch it? CCS says No USB FET found but I have not tried to debug this message yet.


I've dropped myself in at the deep end here a bit, this is my first time attempting to do this kind of task so I've probably got my wires crossed in more than a few places.

Thanks for your time


Adam

  • Hi Adam,

    Firstly, I assume there is not any technical limitation to do this and I assume that I can open J2 which will allow me to upload the firmware and debug.

    There is no technical limitation. Yes, you can open J2.

    1) Once I upload the custom firmware, is the software still usable? I think that the software is un-usable if I have read page 14 of SLVU815 correctly. It refers to downloading "DRV8313_Release" as the user experience code

    >> The software & GUI will no longer be usable.

    2) If 1 is true, how to revert back to the control software becomes operational again?

    >> The procedure similar to creating the standalone version. Include the GUI.c and exclude the config.c.

    3) I have J2 in place and Energia seems to see the on board MSP430, I haven't yet tried to upload. Have I misunderstood a requirement for J2? Do I need to touch it? CCS says No USB FET found but I have not tried to debug this message yet.

    >> You should remove J2. Leaving it connected may interfere with programming the device.
  • Rick,

    Thanks for your quick reply and help. Clarifies things greatly for me.

    Could I ask one more question,

    The EVM has the 16 header pins. In the design file schematic (slvc593.zip/DRV8313EVM_SCH.pdf) there is a note against J1 "J1 can be used to inetrface DRV8313 from external Micro-Controller". This suggests that I could hook up a MSP430 launch pad onto these pins and not have to touch the on board MSP430 but I don't see how to disengage the on board MSP430.

    In the first reply on this topic (e2e.ti.com/.../321917) it is suggested to remove the zero jumper resistors?

    In order to drive DRV8313EVM with external controller, you must remove the on board zero jumper resistors, as mentioned in EVM schematic and use J1 connector to drive DRV8313 chip on-board.

    I don't quite understand the zero jumper resistors reference and I am a little hesitant about physically dismantling the board. 

    Thank you!

  • Hi Adam,

    As mentioned in the schematic, "Zero-Ohm-Jumpers R25,R26,R27,R29 and R30 toR34 should be removed in order to interface DRV8313 from external Micro-controller"

    There are 9 surface mount zero ohm resistors between the on board MSP430 and the J1 connector. These were placed there to allow customers to use the board with other mcus.

    You can hook up a Launchpad as you suggested, but the resistors should be removed. If you do not remove them, the two mcus outputs may interfere with each other. This will create confusion when trying to debug.

    In my opinion, you should use the onboard mcu.
  • Hi Rick,

    Thats a great help thank you.

    I am sorry, I had entirely missed that note on the interconnection schematic so everything is clear now. It was my thought that hooking up an external MCU would likely cause problems but just wanted to clarify how its done.

    It is my intention to use the onboard MSP, the overlords had their eyes set on using the EVM with an Arduino so this kills that idea as at £80 a board, that work is a bit too delicate for my sausage fingers.

    Thanks again for your time, very much appreciated!