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.

flash programming error when running using loadti.bat

Other Parts Discussed in Thread: TMS570LS20216

 

i am building my application to run on the Hercules TMS570LS31x USB stick using CCS v4.2.4 to build with. I can connect using the debugger and run the application (UUT_INTE.out) successfully but when i try to run in a non-debug mode by specifying the loadti.bat command below, i get a flash programming error shown below. ANy idea why i can run this from the debugger ok but the loadti.bat method fails? i have tried to reboot the target USB stick several times as well with no luck. .i've attached the target configuration file that i pass to the loadti.bat utility. It appears as though maybe there is a timeout occurring while waiting for the flash to erase or get programmed. Perhaps there is an DebugScritping API that allows you to extend the timeout period?

C:\CCS_v4.2.4\ccsv4\scripting\examples\loadti.bat --no-profile -c tms570LS31x_tgt.ccxml  UUT_INTE.out

 

 

***** DSS Generic Loader *****
START: 16:45:30 GMT-0500 (EST)
Configuring Debug Server for specified target...
Done
TARGET: Texas Instruments XDS100v2 USB Emulator_0
Connecting to target...
CortexR4: GEL Output: 	Memory Map Setup for Flash @ Address 0x0
testEnv.outFiles: C:\bub\vcast\ccsv4_tms570_tgt_02\T1\UUT_INTE.out
Loading C:\bub\vcast\ccsv4_tms570_tgt_02\T1\UUT_INTE.out
WARNING: CortexR4: Warning: (Error -1003 @ 0x2BC5) Internal error: Invalid parameter passed to function. Restart the application. If error persists, please report the error. (Release 5.0.429.0) 
Error code #4011, C:\bub\vcast\ccsv4_tms570_tgt_02\T1\UUT_INTE.out load failed!
Aborting!
END: 16:46:29 GMT-0500 (EST)
SEVERE: CortexR4: Flash operation timed out waiting for the algorithm to complete. Operation cancelled.

SEVERE: CortexR4: Flash Programmer: Error initializing device.

SEVERE: CortexR4: Flash Programmer: Error erasing Flash memory.

SEVERE: CortexR4: Flash operation timed out waiting for the algorithm to complete. Operation cancelled.

SEVERE: CortexR4: Trouble Writing Memory Block at 0x0 on Page 0 of Length 0x7ff0 

SEVERE: File: C:\bub\vcast\ccsv4_tms570_tgt_02\T1\UUT_INTE.out: Load failed.
SEVERE: Error loading "C:\bub\vcast\ccsv4_tms570_tgt_02\T1\UUT_INTE.out": File: C:\bub\vcast\ccsv4_tms570_tgt_02\T1\UUT_INTE.out: Load failed.

  • Hi

    Sorry for the delayed response. I have forwarded your query to our Flash expert, we will get back to you as soon as possible

    Best Regards
    Prathap

  • Hi,

    After looking through your message, nothing really jumps out at me on what could be wrong with what you are doing. Can you confirm that you didn't change any of the Flash settings when you are using CCS? LoadTI would be using the default Flash settings, so that would be one reason that the results could be different.

    On my end, I will try to reproduce the problem, and if I can, try to figure out what the cause is. I also need to take a look at the LoadTI script to see what the no-profile flag does. Have you tried to run the script without this flag set?


    Thanks.

    Ricky

  • Hi,

    Just some quick updates:

    - I was able to successfully use loadti to program a TMS570 device (although I was using a TMS570LS20216 vs TMS570LS31x that you were using).

    - The timeout error you were getting is coming from the Flash Manager and not loadTI (the loadti script has an infinite timeout value unless you specify one), and therefore this is not a loadTI specific error.

    - The --no-profile option turns off basic application profiling and should not affect Flash programming.

    Also, I did not hear back from you from my previous post, and since it has been a while from your original post, can you let me know if you are still seeing the problem?

    Thanks.

    Ricky