1__constant U32 _CPUCONF_ADDR = 0x53011000;
2__constant U32 _CPUCONF_CPUWAIT_OFFSET = 0x50C;
3
4int ConfigTargetSettings(void)
5{
6	JLINK_ExecCommand("CORESIGHT_AddAP = Index=1 Type=AHB-AP");
7	CORESIGHT_IndexAHBAPToUse = 1;
8
9	return 0;
10}
11
12int SetupTarget(void)
13{
14	JLINK_TARGET_Halt();
15
16	// Disable CPU wait
17	JLINK_MEM_WriteU32(_CPUCONF_ADDR + _CPUCONF_CPUWAIT_OFFSET, 0);
18
19	return 0;
20}
21