1/*********************************************************************** 2 * This file was automatically generated by RASC 3 * 4 * J-Link script file to change the device being used for a debug 5 * session. This is required when the RA MCU being debugged is in 6 * NSECSD device life-cycle state, when the normal flash driver mechanism 7 * cannot be used as the use of RAM on the target MCU is not permitted. 8 * This means an alternate, but slower, flash driver mechanism is 9 * required, which makes no use of target RAM. This alternate mechanism 10 * is enabled through the use of device names post-pended with "_RAMLess". 11 * 12 * To use normal flash driver: 13 * => Set _USE_RAMLESS_FLASH_DRIVER to 0. 14 * 15 * To use slower, alternate flash driver: 16 * => Set _USE_RAMLESS_FLASH_DRIVER to 1. 17 * 18 * Note that the "_RAMLess" device name specified in the call to 19 * JLINK_SetDevice() must match the actual target device. 20 ***********************************************************************/ 21 22__constant U32 _USE_RAMLESS_FLASH_DRIVER = 0; 23 24int ConfigTargetSettings(void) { 25 if (_USE_RAMLESS_FLASH_DRIVER != 0) { 26 27 JLINK_SYS_Report("J-Link script: ConfigTargetSettings()"); 28 JLINK_SYS_Report("Setting Device for flash driver that requires no RAM"); 29 30 // Ensure below device matches your target MCU (but with _RAMLess added) 31 JLINK_SetDevice("R7FA4M2AD_RAMLess"); 32 } 33 return 0; 34} 35