NXP_iMX6ULL.JLinkScript 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*********************************************************************
  2. * (c) 1995 - 2018 SEGGER Microcontroller GmbH *
  3. * The Embedded Experts *
  4. * www.segger.com *
  5. **********************************************************************
  6. -------------------------- END-OF-HEADER -----------------------------
  7. File : NXP_iMX6ULL.JLinkScript
  8. Purpose : Script file for iMX6 ULL series devices
  9. Literature:
  10. [1] J-Link User Guide
  11. Additional information:
  12. For more information about public functions that can be implemented in order to customize J-Link actions, please refer to [1]
  13. */
  14. /*********************************************************************
  15. *
  16. * ConfigTargetSettings
  17. */
  18. int ConfigTargetSettings(void) {
  19. //
  20. // The i.MX6ULL series does not like scanning the AP map because accessing
  21. // a non-existing AP causes the whole DAP to crash and hang until power cycle
  22. // Therefore, we manually setup the AP map so the J-Link SW skips the scanning
  23. //
  24. Report("J-Link script: Setting up AP map");
  25. CORESIGHT_AddAP(0, CORESIGHT_AHB_AP);
  26. CORESIGHT_AddAP(1, CORESIGHT_APB_AP);
  27. CORESIGHT_IndexAPBAPToUse = 1;
  28. return 0;
  29. }
  30. /*************************** end of file ****************************/