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.

Real time mode for instaspin_bldc_lm4f211 on DK-LM4F-DRV8312



Dear Forum,

I am running into problems controlling the hardware supplied with DK-LM4F-DRV8312 through the CCS5 interface as specified in the document: instaspin_bldc_lm4f211

The hardware is working appropriately while controlled by the GUI supplied with the documentation and explained in the READMEFirst-DK-LM4F-DRV8312.

In attempting to use CCS to build the source code, as specified in instaspin_bldc_lm4f211, I am unable to get the motor to spin or understand the debugging interface. Following the instructions for "Velocity (Closed Loop Speed and Speed PI) Mode," the gDRVObj.isrTicker is increasing, but this occurs independent of the setting of gGUIObj.EnableFlg. The motor does not spin after the enable is set to 1. The instructions mention cryptically "Compile/load/run program with real time mode." I notice that the button for "Enable Silicone Real-Time Mode" is disabled.

Any suggestions to get up and running with the example project  would be appreciated.

Thanks in advance.

  • I will forward to InstaSPIN forum for best support.

  • Ryan,

    Thanks for forwarding the request on to the proper group.

    A similar behavior appears when attempting to use the Sensorless (SMO) Field Oriented Control code with CCS documented in foc_smo_lm4f211. It appears others are running into a similar problem with these projects. See here: http://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/t/246651.aspx

    While waiting for a reply from the InstaSPIN forum, can you post a link to any other CCS project that is known to work with CCS5 and DK-LM4F-DRV8312?

    Thanks in advance.

  • Following up on request for support for the provided software.

    Product page for DK-LM4F-DRV8312  states "The included GUI software solution enables users to control and monitor the total solution through an easy-to-use PC application that can be extended for customer applications."

    I would like to extend this software. Please provide a link to a known working CCS project.

    Thanks in advance for the support.

  • reg2117

    I'm sorry you were not responded to earlier. Whoever moved your post moved it into the Tiva forum, not the InstaSPIN forum.

    The existing examples are not usable without the GUI. Unfortunately, there are no TI supplied examples that run without the GUI.

  • John,

    Thank you for following up with this post.

    Can you please point me to a guide for extending the existing software (i.e. building and debugging motor control in the Stellaris architecture)?

  • reg2117,

    The example application was designed to demonstrate the motor control algorithms and display telemetry data. It was not designed for extension or ease of use as a starting point for customer applications.

    If you want an example of motor control on the LM3S, you can look at the RDK-BLDC software. The code is for a different board and uses fixed point algorithms, but the overall design and architecture may be useful. I have no idea if a port would be desirable or feasible.

  • John,

    Thank you for following up on the post.

    It is good for TI customers and the community to know that the Stellaris architecture is not supported by TI for motor control as advertised in the documentation for the DK-LM4F-DRV8312.

    For posterity, from the literature on the DK-LM4F-DRV8312 page:
    "The included GUI software solution enables users to control and monitor the total solution through an easy-to-use PC application that can be extended for customer applications."

    From the multiple posts to e2e, it is clear I am not the only misled by the documentation.

    Perhaps, this literature could be updated to better reflect the lack of software support for this evaluation hardware. Or a date could be provided to the community when software solutions will be provided to support this eval board.

  • Hello reg2117,

    I apologize on behalf of TI for the notes in the documentation. I understand the provided example for the InstaSpin BLDC running on the DK-LM4F-DRV8312 kit may not be enough for your specific application. TI's primary focus for motor control is currently on our safety (Hercules) and real-time (C2000) microcontrollers. I would encourage you to evaluate their popular platforms and reach out to those teams on their respective forums for any questions you may have.

    www.ti.com/c2000

    www.ti.com/hercules

    I will make sure that documentation is updated to avoid any misleading comments.

    Thank you,

    Alex