1int InitTarget(void) {
2 // Base address where DMI registers can be found in the APB address space
3 JLINK_ExecCommand("CORESIGHT_SetCoreBaseAddr = 0x5F908400");
4
5 // Use AP[x] to communicate with the RISC-V, ppr = APP
6 JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0");
7
8 return 0;
9}
10