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.

TMS570LS31x and UniFlash via Spectrum Digital xds510usb

Other Parts Discussed in Thread: UNIFLASH, TMS570LS3137

Dear all,

if I use UniFlash ( Version: 2.1.0.00009 ) I am not able to connect with the target (TMS570LS3137 on the HDK) via the debugger Spectrum Digital XDS510usb plus.

I get following error message - complete console record:

Begin Launching session operation...
Operation Launching session returned.
Loaded target configuration from: C:\Users\JIRI~1.JAN\AppData\Local\.TI\2086677247\0\0/temptargetconfiguration.ccxml
Settings purged.
Erasing flash sectors on Core 0 < Spectrum Digital XDS510USB Emulator/CortexR4 > ...
FATAL >> IcePick: Error connecting to the target: Error 0x80000244/-2131 Fatal Error during: Register, Initialization, OCS, Cannot access register at 0x00000000

BooleanEventCallback error!!! false

If I used the Code Composer v5 the target is connected properly and all the operations can be done (erase, flash, verify,...). But for further purpose I cannot use CCS, so UniFlash is the option for me.

At the best I would like to use nowFlash v3.42 but that also crashes with an error (id = 199).

Do you have any idea what is going wrong?

Thanks a lot in advance,

Best regards, Jiri

  • Hi Jiri,

    This issue is caused by the JTAG speed setting. In CCS5.x, you are able to change the JTAG connection property. The connection property panel appears at the right side when you click on the emulator name in All Connection panel. Uniflash doesn't provide this feature. One way to modify the property is to change the xml file directly.

    1. open uniflash, create your own target configuration, then save it to jiri.ccxml

    2. open jiri.ccxml using notepad. It looks like:

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <configurations XML_version="1.2" id="configurations_0">
    <configuration XML_version="1.2" id="configuration_0">
    <instance XML_version="1.2" desc="Spectrum Digital XDS510USB Emulator" href="connections/SD510USB_Connection.xml" id="Spectrum Digital XDS510USB Emulator" xml="SD510USB_Connection.xml" xmlpath="connections"/>
    <connection XML_version="1.2" id="Spectrum Digital XDS510USB Emulator">
    <instance XML_version="1.2" href="drivers/sdgoicepickusb_c.xml" id="drivers" xml="sdgoicepickusb_c.xml" xmlpath="drivers"/>
    <instance XML_version="1.2" href="drivers/sdgocs_dapusb.xml" id="drivers" xml="sdgocs_dapusb.xml" xmlpath="drivers"/>
    <instance XML_version="1.2" href="drivers/sdgocortexRusb.xml" id="drivers" xml="sdgocortexRusb.xml" xmlpath="drivers"/>
    <platform XML_version="1.2" id="platform_0">
    <instance XML_version="1.2" desc="TMS570LS3137" href="devices/tms570ls3137.xml" id="TMS570LS3137" xml="tms570ls3137.xml" xmlpath="devices"/>
    </platform>
    </connection>
    </configuration>
    </configurations>

    3. insert the property to ccxml file (just above the platform setting)

    <property Type="stringfield" Value="3" id="TCK Frequency MHz (Counter mode)"/>
    <property Type="stringfield" Value="3" id="TCK Divisor/Adaptive TCK Delay"/>

    4. The new ccxml file looks like:

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <configurations XML_version="1.2" id="configurations_0">
    <configuration XML_version="1.2" id="configuration_0">
    <instance XML_version="1.2" desc="Spectrum Digital XDS510USB Emulator" href="connections/SD510USB_Connection.xml" id="Spectrum Digital XDS510USB Emulator" xml="SD510USB_Connection.xml" xmlpath="connections"/>
    <connection XML_version="1.2" id="Spectrum Digital XDS510USB Emulator">
    <instance XML_version="1.2" href="drivers/sdgoicepickusb_c.xml" id="drivers" xml="sdgoicepickusb_c.xml" xmlpath="drivers"/>
    <instance XML_version="1.2" href="drivers/sdgocs_dapusb.xml" id="drivers" xml="sdgocs_dapusb.xml" xmlpath="drivers"/>
    <instance XML_version="1.2" href="drivers/sdgocortexRusb.xml" id="drivers" xml="sdgocortexRusb.xml" xmlpath="drivers"/>

    <property Type="stringfield" Value="3" id="TCK Frequency MHz (Counter mode)"/>
    <property Type="stringfield" Value="3" id="TCK Divisor/Adaptive TCK Delay"/>


    <platform XML_version="1.2" id="platform_0">
    <instance XML_version="1.2" desc="TMS570LS3137" href="devices/tms570ls3137.xml" id="TMS570LS3137" xml="tms570ls3137.xml" xmlpath="devices"/>
    </platform>
    </connection>
    </configuration>
    </configurations>

    5. save the file

    6. In uniflash, open the new jiri.ccxml, the do the flash operation

    Regards,

    QJ

  • Hello QJ, 

    thanks a lot for your hint - it helps I can load a program ;-)

    Anyway there are still some ("minor") issues:

    - during initialization (session launching) an error windows pops up (ERROR >> IcePick: Error initializing emulator) -> if press on the Retry button, second attempt is successful;

    - if flash erase is required, this ends up with following error:

    By the way the memory dump (Save Memory...) works properly. I am really surprised the program loading works and the flash erasing (which is done before any write) does not...?

    Do you have any explanation for this behaviour?

    Many thanks in advance,

    Best regards, Jiri

  • Hi Jiri,

    I didn't see this kind of problem. I tried on my bench again, it works very well. Please unplug/re-plug the emulator from/to your PC, and power cycle your HDK, then try again. 

    Regards,

    QJ

  • Hello QJ,

    I have already tried such a connection restart without achieving the goal. Well, the most important for me is the available feature of the program load.

    Thanks for your support!

    Best regards, Jiri

  • Dear all,

    do you have further ideas where could be a problem?

    If there are no comments, I will close this thread - as I said I am quite happy with program load feature ;-)

    Thanks in advance,

    Best regards, Jiri