J-LINK要连接哪个CPU,关键是要知道CPU的基地址,CoreBaseAddr
(1)修改 CORESIGHT_CoreBaseAddr 的值;
(2)注意是APB_AP还是AHB_AP;
(3)CORESIGHT_IndexAPBAPToUse 保持使用 0;
(4)CPU 根据实际选择的CPU类型来赋值,例如 ARM9;
void InitTarget(void)
{
Report("********** MY script ***********");
CORESIGHT_CoreBaseAddr = 0x80012000;
CORESIGHT_AddAP(0, CORESIGHT_APB_AP);
CORESIGHT_AddAP(1, CORESIGHT_APB_AP);
CORESIGHT_IndexAPBAPToUse = 0;
CPU = CORTEX_A15;
}
标签:AddAP,CoreBaseAddr,AP,实验,CORESIGHT,APB,CPU,双核
From: https://www.cnblogs.com/solo666/p/16600787.html