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.