jlink multi core debug configure(JLinkScript.JLinkScript)
已有 386 次阅读2020-9-16 16:21
|系统分类:兴趣爱好
int ConfigTargetSettings(void)
{
Report("jokemi");
return 0;
}
void InitTarget(void)
{
Report("MAX32550 J-Link Script File.");
JTAG_ResetPin = 0;
SYS_Sleep(100);
JTAG_ResetPin = 1;
//JLINK_CORESIGHT_Configure("IRPre=9;DRPre=2;IRPost=13;DRPost=3;IRLenDevice=4");
JLINK_SYS_Report("J-Link script example.");
JTAG_Reset(); // Perform TAP reset and J-Link JTAG auto-detection
if (JTAG_TotalIRLen != 13) { // Basic check if JTAG chain information matches
MessageBox("Can not find xxx device");
return 1;
}
JTAG_DRPre = 2; // Cortex-A8 is 2 device closest to TDO, 2 pre devices
JTAG_DRPost = 0; // 0 device (custom device) comes after the Cortex-M3
JTAG_IRPre = 9; // Cortex-M3 is closest to TDO, 9 pre IR bits
JTAG_IRPost = 0; // Custom device after Cortex-M3 has 0 bits IR len
JTAG_IRLen = 4; // We selected the Cortex-M3, it has 4 bits IRLen
CPU = CORTEX_M3; // We are connected to a Cortex-M3
JTAG_AllowTAPReset = 1; // We are allowed to enter JTAG TAP reset
//
// We have a non-CoreSight compliant Cortex-A8 here
// which does not allow auto-detection of the Core debug components base address.
// so set it manually to overwrite the DLL auto-detection
//
CORESIGHT_CoreBaseAddr = 0x80030000;//i don't sure
}