External memory initialization
External memory (e.g. DDR RAM) usually requires certain initialization steps in order to be available memory-mapped.
In the following example, it is explained which general steps are necessary to prepare J-Link for write operations into external memory. The required steps should be performed in the SetupTarget(void) function inside of a J-Link Script File.
Once created, the J-Link Script File should be set to active as follows: Using J-Link script files
/*********************************************************************
*
* SetupTarget
*/
int SetupTarget(void) {
JLINK_TARGET_Halt();
//
// Perform initialization steps
// ..
// ..
//
return 0;
}