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 - Program download with Spectrum Digital xds510usb

Other Parts Discussed in Thread: HALCOGEN, UNIFLASH

Dear all,

I have encountered some issue during loading the program via Spectrum Digital xds520usb (jtag 20pin) into HDK board. Following error has occured:

CortexR4: Flash operation timed out waiting for the algorithm to complete. Operation cancelled.
CortexR4: Trouble Writing Memory Block at 0x0 on Page 0 of Length 0x20
CortexR4: GEL: File: <path>\program.elf: Load failed.

I can connect to the target, device gets running, it can be suspended and resumed again. Also symbols from appropriate ELF are loaded correctly.

My versions:

CCS  5.2.1.00018 

Spectrum Digital Emulation 5.2.0.07

TI Emulators 5.1.45.0

If I have tried to use nowFlash v3.42 for this purpose, I have got following error:

Error 199 - Unable to connect to target on port address 0x510

nowFlash command line: 

-er -pr  "<path>/program.elf" -r 0x00000000-0xFFFF -d -q -emu SDXDS510USB -p 510 -cpu CORTEX_RXX -targets 1 

Please do yo have some idea what is wrong?

Thanks in advance,

best regards Jiri

PS: results of connection test done by sdConfig (failed!) and CCS (OK) are attached.

5852.debugger_xds510usb.txt

  • Hi Jiri,

                  Thanks for your post. You create the project by HALCoGen or by yourself? Would you please create a simplest project by HALCoGen and then load the program to the HDK board and see if that works? Thanks. 

    Best Regards,

    Shelford

  • Hello Shelford, Thanks for your quick reply! Unfortunately I cannot test your hint on HW right now. Anyway, this program was loaded in via XDS100v2 correctly. So I would not suspect the program (OUT / ELF respectively) itself... Further I have not found any conflict of the mentioned versions of SD drivers with CCS v5. Please do you have any idea? Many thanks in advance, Best regards, Jiri

  • Hi Jiri,

          Maybe you can have a try on a slower JTAG speed.  Please open you .ccxml file and configure it as below:

    Let us see if it works. Thanks.

    Best Regards,

    Shelford

  • Hi Shelford, thanks for hint! I have tried to decrease TCK freq but without any influence. Obviously I have suspended my attempts too early ;-) I will try to tune a delay and inform you. Thanks a lot, cheers Jiri

  • Jiri,

          OK. Thanks for your cooperation.  If you still get stuck on this, please post your project in the Forum. .  So we can look into it together.  Thanks.

    Best Regards,

    Shelford

  • Hello Shelford,

    any frequency adjust has not been necessary - I made silly mistake because I omitted system and CPU reset before loading the program. Elementary, my dear Watson ;-)

    Sorry for wasting your time and thanks for your support!

    Best regards,

    Jiri

  • Shelford,

    just remark - I am wondering why nowFlash generates an error message:

    "Error 199 - Unable to connect to target on port address 0x510."

    I had a look into board_sdxds510usb_v3_cortex_rxx.dat and it (almost - removing the port 17 without any effect) corresponds with the CCS project setting of the target *.ccxml.

    Obviously there is a relation with the above mentioned failed test performed by SDConfigEx..

    By the way, sdxds510usb.exe (c:\ti\ccsv5\ccs_base\emulation\drivers) also returns the failed state ("Cannot find USB Application").

    Some ideas..?

    Thanks in advance, 

    Best regards, Jiri

  • Hi Jiri,

               You can find some information about the issue in nowFlash user guide:

    3.12 SDXDS510USB Connection Problems when Managing Multiple Code Composer
    Studio Installations
    The SDXDS510USB emulator requires that its USB connection be enumerated after a reboot or after the cable is initially connected or reconnected to the PC. The ability to connect is closely tied to the particular version of the driver that was loaded to trigger the enumeration process.

    Some users may have multiple parallel installations of Code Composer Studio, and in this case the user needs to be careful to always force re-enumeration of the emulator when switching from using one version of Code Composer Studio to another. This is especially true because there is no mechanism in the SDXDS510USB drivers to allow nowFlash to know which version of the drivers was used to perform the last enumeration.

    For example: if a user enumerates the emulator with a Code Composer Studio 3.1-based driver, then attempts to connect to the target using a Code Composer Studio 2.2-based driver with nowFlash, the target will fail to initialize (error 121) or fail to connect (error 199). However, if the user disconnects then reconnects the USB cable connected to the emulator, the next nowFlash run will force re-enumeration of the emulator using the desired driver.

    So, it is always a good idea with the SDXDS510USB emulator, when encountering connection problems on a PC with multiple Code Composer Studio installations, to try re-connecting the USB cable to force re-enumeration to see if doing so alleviates the problem.

     If this still doesn't work, I would suggest you to have a try on Uniflash. I think it should be able to  work well on your side.   This tool will replace nowFlash and it's more stable. The link of Uniflash is as below:

    http://www.ti.com/tool/uniflash 

    Hope this may help you. Thanks.

    Best Regards

    Shelford