/*********************************************************************
*                   (c) SEGGER Microcontroller GmbH                  *
*                        The Embedded Experts                        *
*                           www.segger.com                           *
**********************************************************************

-------------------------- END-OF-HEADER -----------------------------

File    : Template_SetRamUsageLimit.JLinkScript
Purpose : limits the size of used RAM for ramcodes.
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]
*/

/*********************************************************************
*
*       Constants (similar to defines)
*
**********************************************************************
*/

/*********************************************************************
*
*       Global functions
*
**********************************************************************
*/

/*********************************************************************
*
*       SetupTarget()
*
*  Function description
*    Sets target specific configuration.
*
*/

int SetupTarget(void)(void) {
  U32 v;
  
  //
  // Limit work ram size for ramcodes.
  //
  JLINK_ExecCommand(SetRAMUsageLimit 0x10000);
  return 0;
}

/*************************** End of file ****************************/
