LPC5411x_M0.JLinkScript 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. /*********************************************************************
  2. * (c) 1995 - 2018 SEGGER Microcontroller GmbH *
  3. * The Embedded Experts *
  4. * www.segger.com *
  5. **********************************************************************
  6. -------------------------- END-OF-HEADER -----------------------------
  7. File : LPC5411x_M0.JLinkScript
  8. Purpose : Script file for NXP LPC5411 series that has a Cortex-M4 and Cortex-M0+ in it.
  9. This script connects to the M0+
  10. Literature:
  11. [1] J-Link User Guide
  12. Additional information:
  13. For more information about public functions that can be implemented in order to customize J-Link actions, please refer to [1]
  14. */
  15. /*********************************************************************
  16. *
  17. * InitTarget
  18. */
  19. void InitTarget(void) {
  20. //
  21. // Set AP register layout
  22. // Usually only needed if core is not accessible via the first AHB-AP / APB-AP found
  23. //
  24. JLINK_CORESIGHT_AddAP(0, CORESIGHT_AHB_AP); // AHB-AP (Cortex-M4)
  25. JLINK_CORESIGHT_AddAP(1, CORESIGHT_AHB_AP); // AHB-AP (Cortex-M0+)
  26. CORESIGHT_IndexAHBAPToUse = 1;
  27. }