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.

CCS/LAUNCHXL2-570LC43: 296-42582-ND

Part Number: LAUNCHXL2-570LC43
Other Parts Discussed in Thread: DRV8301, , TMS570LC4357, RM48L952, MOTORWARE

Tool/software: Code Composer Studio

Hello Everyone,

I have purchased Hercules TM570LC4357 LaunchPad board to explore and learn FOC control of motor.

working on LAUNCHXL2-570LC43 only without driver board for motor(DRV8301).  The TI provided FOC Example of RM48 series changed to TMS570 Series.

able to load code to Launchpad and debug. Now want to try GUI composer and injecting (or) check the data.

The GUI composer example DRV8301_RM48_FOC_SMO_wEncoder is imported to project but it is not connecting to board.

Steps did to open GUI composer:

1. View Gui Composer -> Import project

2. provided the path of c:\ti\guicomposer\webapps\DRV8301_RM48_FOC_SMO_wEncoder.zip

3. Load the code using CCS(flashed the code)

4. open GUI composer view and Click on preview provided in GUI composer

5. then no response from GUI, where as code is running properly on target board

sure CCS and Launchpad are connected and working fine, if i want to provide inputs from GUI composer, how can i do that?

I would like to use this tool for debugging my project. 

Tool set information:

CCS Version :6.2.0,

GUI Composer: v2 engine,standalone CCS.

Controller: TMS570LC4357

Debugger: XDS110 USB Debug

Could you please guide me, how can i use this tool to connect to launchpad hardware?

do I need to update javascript file connection service?

"var session = debugServer.openSession("*", "*" /* TODO: */);"

thanks you very much in advance.

Regards,

Rajesh.

  • Hi Rajesh,

    You don't really need the GUI to work in order to use the demo code. The documentation for the relevant project example in Hercules Motorware also describes how to configure the necessary parameters using a debugger. You can find the pdf under the C:\ti\Hercules\MotorWare\v1.0.3.03\sw\solutions\foc_encoder_speed\boards\drv8301kit_revD\hercules\rm48l952\projects\ccs5\project01\docs folder, assuming that you installed Hercules Motorware under C:\ti\Hercules.

    Please note that this demo example was made for an RM48x control card (not available any more) which included a TPS65381A PMIC. The code example also includes SPI commands to interface to this PMIC, and may not work if run as-is on the LC43 launchpad. You would need to go into the code and manually remove all parts of the code that actually interface to other components on the original control card for which this demo code was written.

    Regards, Sunil

  • Thank you very much for quick response.

    I am aware that there is driver code for multirail power supply chip. As part of our coding updates, we stripped spi code.

    I have refereed the document " C:\ti\Hercules\MotorWare\v1.0.3.03\sw\solutions\foc_encoder_speed\boards\drv8301kit_revD\hercules\rm48l952\projects\ccs5\project01\docs folder" which is helpful and it lists all the major variables used in the code but As I started in my question, I want to create application similar to the on was provided for my controller TMS570LC4357 which exactly takes the executable and load to the target

    which was already implemented in DRV8301_RM48_FOC_SMO_wEncoder.zip but I couldn't connected to the board. I have created small application which is working for me currently but not solving my complete purpose. What we are trying is, create GUI composer application, which takes and loads the executable to controller, Provide inputs and should plot data exactly done in provided application.

    The rational behind emphasizing the GUI data plot is we would like to use the same feature for multiple things(like control loop tuning, development tests etc.).

    The Answer you have provided is very relevant, however need little more information on how to make DRV8301_RM48_FOC_SMO_wEncoder GUI example connect to TMS570LC4X launch pad board and make connection work.

    Thanks & Regards,

    Rajesh

  • Rajesh,

    What you are asking for is essentially a "how to" lesson on GUI Composer. Once you have this information you can create a GUI to edit RAM variables, read and plot RAM variables, as well as erase and reprogram the MCU on the launchpad once a JTAG connection is established.

    Note that the JTAG emulator used on the RM48x control card and that on the TMS570LC launchpad are different, which is probably why your connection is not working using the existing GUI.

    Please post your question on the CCS forum, and they will help you with the GUI Composer information.

    Regards,

    Sunil