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.

Debug Server Scripting from Uniflash v4 (beta version uniflash.4.0.891.exe) .dll error

Other Parts Discussed in Thread: UNIFLASH, CCSTUDIO, TMS320F28335

Debug Server Scripting from Uniflash v4 (beta version uniflash.4.0.891.exe)  .dll error:

Hi,

I was using Uniflash v3.

To program the MCU, I was using javascript via Rhino, DS and DDS.

All was working perfectly.

When I installed new version of Uniflash V4 I have now the following error message when I call the API: .openSession('.*'):

Exception in thread "main" java.lang.UnsatisfiedLinkError: c:\ti\uniflash_4.0\deskdb\content\TICloudAgent\win\ccs_base\DebugServer\bin\LibraryLoader.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

What is strange is that when I open the file dss.bat under:

C:\ti\uniflash_4.0\deskdb\content\TICloudAgent\win\ccs_base\scripting\bin

we can see:

:SETUP_JRE_PATH
REM If the user chose to install the JRE with this DSS install - use that JRE.
if exist "!DEBUGSERVER!\..\jre" (
 set JAVA_HOME=!DEBUGSERVER!\..\jre
 set PATH=!DEBUGSERVER!\..\jre\bin;!PATH!
 goto LAUNCH_SCRIPT
)

But under PATH=!DEBUGSERVER!\..\jre\bin;!PATH! there is no JRE.

Thanks for your support.

Regards,

Mathieu

  • Mathieu,

    In the past we bundled the JRE with Uniflash v3. It was needed by the UI in v3 as well as DSS. The UI in v4 doesn't need it but DSS still does. The system JRE that you have won't work as UniFlash is a 32bit application on Windows and your system JRE will be 64bit. On Linux and Mac we are now 64bit but Windows is going to stay 32bit for a while longer. We will be providing more instructions on this as v4 gets officially released.

    Regards,
    John
  • Thanks John for your answer.

    I went to the TI site and it looks like that v4 is now released (7 Oct 2016).

    In the guideline it is written as you indicated that JRE is not anymore provided. But still does not know how to do to make DDS working on v4.

    Thanks to indicate to me how to do when you have the information from your side.

    Thanks and best regards,

    Mathieu

  • Mathieu,

    It is our goal to have the guide out this week on how to get DSS working with UniFlash v4.

    Regards,

    John

  • Great! Thanks to indicate to me how to do when you have the information from your side.
    Regards, Mathieu
  • Mathieu,

    Good news is that it looks like it is pretty straight forward to get it going. With the GA release the team added all the DSS items back in with the exception of the JRE.

    I have a draft of the instructions here:
    processors.wiki.ti.com/.../UniFlashv4_DSS

    I have been running a few tests and it seems to be working fine. I will run some more later today.

    Regards,
    John
  • Hi John,

    Thanks a lot for your support.

    I tried, it seems to be better but I am still stuck.

    In my script I have:

    importPackage(Packages.com.ti.debug.engine.scripting)
    importPackage(Packages.com.ti.ccstudio.scripting.environment)
    importPackage(Packages.java.lang)
    importPackage(Packages.java.io)

    var emulator_path = (root_path + "../TMS320F28335_emulator.ccxml");

    var script       = ScriptingEnvironment.instance();
    script.setScriptTimeout(200000); //20 secondes 


    var debugServer  = script.getServer("DebugServer.1");

    debugServer.setConfig(emulator_path);
    script.traceWrite("setConfig Done!");
    var debugSession = debugServer.openSession('.*');

    The result of: debugServer.openSession('.*'); is not OK.

    I have the following error:

    js> var debugSession = debugServer.openSession('.*')
    SEVERE: Cannot read System Setup data from XML file C:\MANUF_~1\TMS320~1.CCX
    Error parsing file:
    Fatal Error at (0, 0): An exception occurred! Type:RuntimeException, Message:The
     primary document entity could not be opened. Id=C:\ti\uniflash_4.0\deskdb\conte
    nt\TICloudAgent\win\ccs_base\common\targetdb\connections\SD510USB_Connection.xml
     while parsing file: C:\ti\uniflash_4.0\deskdb\content\TICloudAgent\win\ccs_base
    \common\targetdb\connections\SD510USB_Connection.xml

    Do you have an idea?

    Does the format of ccxml changed ?

    Thanks

    Mathieu

  • Mathieu,

    No change in the format of the ccxml. In looking at my UniFlashv4 install (i wiped and did another one just to be sure) I don't see the drivers for the Spectrum Digital 510USB. I am going to see if I can extract the driver installer from CCSv6.2. I don't see a separate driver package on Spectrum's website for CCSv6. You could probably copy them over from CCS but there are a number of files in different folders that are required, thus I will see if I can get the installer.

    Regards,
    John
  • I installed the drivers but I get the same error as you.  Will need to dig into this more.

  • In talking with the dev team there is no way to add SD support to UniFlash v4 today. There is some other information that gets read that does not comprehend SD. We need to have some discussions on if this will happen. One challenge will be that the 510 is not supported in 64bit applications. i.e. when UniFlash moves to being a 64bit application on Windows (like it is on Linux and Mac) then this would have to be dropped.
  • I launched UniFlash v4 for my TMS320F28335 device.

    It appears that only 5 "Connections" are available (Texas Instruments Probe Only).

    Is it plan to support other Probes? (As SD ones)?

    Thanks

  • Mathieu,

    The XDS100, XDS110 and XDS200 connections will work with probes from Spectrum, Blackhawk and others.  We are scoping out what it would take to support the Spectrum 510 USB on Windows.  It would be a somewhat time limited exercise as UniFlash and CCS will move to native 64bit applications on Windows in the not too distant future and at that point support for the USB 510 would not be possible.

    Regards,

    John