JLinkSettings.JLinkScript 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  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. __constant U32 _USE_RAMLESS_FLASH_DRIVER = 0;
  22. int ConfigTargetSettings(void) {
  23. if (_USE_RAMLESS_FLASH_DRIVER != 0) {
  24. JLINK_SYS_Report("J-Link script: ConfigTargetSettings()");
  25. JLINK_SYS_Report("Setting Device for flash driver that requires no RAM");
  26. // Ensure below device matches your target MCU (but with _RAMLess added)
  27. JLINK_SetDevice("R7FA4M2AD_RAMLess");
  28. }
  29. return 0;
  30. }