/*********************************************************************
*               (c) SEGGER Microcontroller GmbH & Co. KG             *
*                        The Embedded Experts                        *
*                           www.segger.com                           *
**********************************************************************

-------------------------- END-OF-HEADER -----------------------------

File    : TI_TMS570Lx.JLinkScript
Purpose : Skip the ECC RAM initialization performed by the J-Link DLL
Literature:
  [1]  J-Link User Guide

Additional information:
  For more information about public functions that can be implemented in order to customize J-Link actions, please refer to [1]
*/


Prototype
void ConfigTargetSettings(void);
Notes / Limitations
?    
?    

/*********************************************************************
*
*       ConfigTargetSettings()
*
*  Function description
*    Called before InitTarget(). Maninly used to set some global DLL
*    variables to customize the normal connect procedure. For ARM CoreSight
*    devices this may be specifying the base address of some CoreSight
*    components (ETM, ...) that cannot be auto-detected by J-Link due to
*    erroneous ROM tables etc. May also be used to specify the device name
*    in case debugger does not pass it to the DLL.
*
*  Return value
*    >= 0:  O.K.
*     < 0:  Error
*
*  Notes
*    (1) May not, under absolutely NO circumstances, call any API functions that perform target communication.
*    (2) Should only set some global DLL variables
*/
int ConfigTargetSettings(void) {
  JLINK_SYS_Report("J-Link Script: ConfigTargetSettings(): Skip ECC RAM initialization");
  JLINK_ExecCommand(SetSkipInitECCRAMOnConnect = 1);
  return 0;
}
