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.

DRV8301-LS31-KIT gui does not work

Other Parts Discussed in Thread: DRV8301, CCSTUDIO, MOTORWARE

Hi,

After running the launcher, my gui show error message below, could anyone offer help?

Restarting Program Model...
Initializing target : C:\ti\guicomposer\webapps\DRV8301_TMS570LS31_BLDC\appConfig.ccxml
Connecting target: Texas Instruments XDS100v2 USB Emulator_0/CortexR4
sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.ti.ccstudio.scripting.environment.ScriptingException: Error connecting to the target: emulation failure occurred (<Unknown source>#43) in <Unknown source> at line number 43Restart Completed.

  • 1. Did you run the GUI Installer .exe first?  There are different GUI Composer Runtime Engines that unfortunately aren't exactly upwards compatible

    2. This error is showing that the connection to the emulator failed.  This coulb be because

    - the cable is not plugged in (at PC or board)

    - the USB/Serial driver is not installing correctly

    - power is not provided to the emulator (through the DRV board or the controlCARD)

    - the FTDI chip that does the XDS100 emulation is not programmed correctly

     

    I'm going to move this to the Hercules forum for support.

     

  • Actually, where is the GUI installer.exe located at?

    If I have to re-install, do I need to re-install ccs as well?

    Thank you.

  • Hmmm, that's a good question. I don't see the USB Kit contents on www.ti.com/tool/drv8301-ls31-kit

    and the GUI Composer instaler is not in SPNC041 which has the MotorWare tree.

    Someone from the Hercules team will have to respond to this....there should be a GUI Installer that is included in the kit DVD....and they should make it available for download on ti.com

    Actually, reading the documenation I think you have to install the GUI Composer runtime yourself from the wiki:

    http://processors.wiki.ti.com/index.php/Category:Gui_Composer#GUI_Composer_Downloads

    These GUIs were built over a year ago and I know they are NOT compativle with the CCSv5.4 or v5.5 installation.  I hope that using the CCSv5.3 version will work...please give it a try.

    Once installed you should be able to execute:

    C:\ti\guicomposer\webapps\DRV8301_TMS570_BLDC\launcher.exe

    C:\ti\guicomposer\webapps\DRV8301_TMS570_FOC_SMO_wEncoder\launcher.exe

    No, you don't have to re-install CCS to use the GUI standalone.

    Follow the documenation, ex:

    C:\ti\Hercules\MotorWare\v1.0.3.03\sw\solutions\foc_encoder_speed\gui\docs

     

  • Thanks for help, I re-install the provided Hercules MCU Motor Kit and it's working now.

    The GUI INSTALLER is included in this DVD.

  • I am also having GUI issues using the DRV8301-LS31-KIT.  When running the DRV8301_RM48_BLDC, I get the following error:

    Similar error with the other Motor Demos from the TI Hercules folder.

    I have tried to reinstall CCS and the Hercules TMS570 MCU Motor Kit..  There were a few install failures during the complete CSS install.

  • Alan,

    Have you installed other GUI Composer instalations on your machine?  Most of them are not forward compatible, so for example if you write over your Hercules installation with a newer InstaSPIN-FOC installation the Hercules GUI won't work correctly.

    also, your image didn't come through so we can't see your specific error.

     

  • I installed the Motor Control software disk and the complete CCS disk.  Do i even need to install the CCS disk?

    The dialog is as follows:

    Console Output:

    Initialing target: C:\ti\guiconlose\webapps\DRV8301_RM48_BLDC\appConfig.ccxl

    Connecting targe: Texas Instruments XDS100v2 USB Emulator/CortexR4

    Loading Program: C:\ti\guiconlose\webapps\DRV8301_RM48_BLDC\appProgram.out

    sun.org.mozilla.javascript.interal.WrappedException: Wrapped com.ti.ccstudio.scripting.environment.ScriptingException: Eroor loading C:\ti\guiconlose\webapps\DRV8301_RM48_BLDC\appProgram.out": File: C:\ti\guiconlose\webapps\DRV8301_RM48_BLDC\appProgram.out  Does not match the target endianness, not loaded.

    Check project build options and target configuration file (ccxml). (<Unknown source?#47) in <Unknown source> at line number 47Restart Completed.

    When I view the GUI, there are red Xs everywhere.

  • No, you don't need CCS to run the GUI.

    The error says that the .out doesn't seem to match the controlCARD target device.

    Are you SURE you are using an RM48 device?  If you are using the TMS570 version (which has opposite Indianness) you need to use

    C:\ti\guicomposer\webapps\DRV8301_TMS570_BLDC

     

  • in the webapps folder, there is only RM46 and RM48 folders.  How do I determine which device I have?

  • Look on the top if the silicon package. I'm guessing you have a tms570 device. 

    There must be another GUI installation for this device. The Hercules team here should be able to point you to correct downloads. 

  • Yes, I have a TMX570LS device.

    Is this post automatically viewed by the Hercules team?

  • I forwarded it to the contact. I don't understand why they don't offer a GUI installation...it looks like they want you to install a GUICRuntime and then copy the GUI "name" folder from the installation DVD to ti\guicomposser\webapps\

    So you should have access to the TMS570 folder in the installation tree of Hercules MotorWare....id check but I'm on mobile. 

  • I found the TMS570 folder and tried the launcher.  DRV8301_TMS570LS31_BLDC

    Fail.

    I copied the folder to same structure as the RM46 & RM 48 examples. 

       C:\ti\guicomposer\webapps\

    Everything worked! 

    Thanks for your help. 

  • Hi Chris,

    I am having a problem running the DRV8301-LS12-KIT GUI. I have a CSS  Version: 6.0.0.00190 installed on Win 7. I have also installed GUI composer 1.6.0.0 from the board CD. I opened the CSS and imported the project in CSS from location this "C:\ti\Hercules\MotorWare\v1.0.3.03\sw\solutions\instaspin_bldc\boards\drv8301kit_revD\hercules". If I debug this project then the CSS successfully deploy the project to the controller TMS570LS12 CNCD and give access to the "main" function. Now, if I run the main then I don't see any thing happening.  I assume that this will automatically load the GUI that will allow me to test the kit. However, the CSS is unable to load the GUI and if you pause the debugger then the program stops at the line below of "drv.c" file

    //wait until a command from HyperTermal to force the TPS65381 device into active mode

    while((GetChar(drv->ecmpHandle)!='1') && (!gGUIObj.TPSFlag));

    2) In addition to the above procedure, I also tried to launch the webapps GUI application from the "C:\ti\guicomposer\webapps\DRV8301_TMS570LS12_BLDC". It opens the GUI, but it stops at Loading program (see figure below).


    My question is, how can I resolve this issue? Is there any way to run the GUI without any problem?


    Thanks for your reply in advance.

    Farrukh