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:
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
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
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
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