// -*-c++-*- void ConfigTargetSettings(void) { JLINK_SYS_Report("J-Link script file: Manually configuring JTAG chain"); JLINK_JTAG_SetDeviceId(0, 0x14B29093); // IRLen: 12, VU7P JLINK_JTAG_SetDeviceId(1, 0x14A56093); // IRLen: 6, KU15P JLINK_JTAG_SetDeviceId(2, 0x4BA00477); // IRLen: 4, TM4C => CoreSight DAP (This is the one we want to communicate with) // // Pre-select CoreSight DAP to be the one J-Link shall communicate with, for this session // JLINK_JTAG_IRPre = 18; // Sum of IRLen of all JTAG TAPs preceding the one we want to communicate with JLINK_JTAG_DRPre = 2; // Number of JTAG TAPs preceding the one we want to communicate with JLINK_JTAG_IRPost = 0; // Sum of IRLen of all JTAG TAPs following the one we want to communicate with JLINK_JTAG_DRPost = 0; // Number of JTAG TAPs following the one we want to communicate with JLINK_JTAG_IRLen = 4; // IRLen of device we want to communicate with CPU=CORTEX_M4; JTAG_AllowTAPReset = 0; return 0; }