__constant U32 _CPUCONF_ADDR = 0x53011000; __constant U32 _CPUCONF_CPUWAIT_OFFSET = 0x50C; int ConfigTargetSettings(void) { JLINK_ExecCommand("CORESIGHT_AddAP = Index=1 Type=AHB-AP"); CORESIGHT_IndexAHBAPToUse = 1; return 0; } int SetupTarget(void) { JLINK_TARGET_Halt(); // Disable CPU wait JLINK_MEM_WriteU32(_CPUCONF_ADDR + _CPUCONF_CPUWAIT_OFFSET, 0); return 0; }