Created
March 6, 2020 11:09
-
-
Save czak/77d73b4582344b095eabca10fa8f5a6d to your computer and use it in GitHub Desktop.
Tinker Board (RK3288) & J-Link connection attempts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void InitTarget(void) { | |
JLINK_SYS_Report("Hello SEGGER JLINK"); | |
CPU = CORTEX_A17; | |
/* DAP configuration */ | |
CORESIGHT_CoreBaseAddr = 0xFFBB0000; | |
/* Manually configure which APs are present on the CoreSight device */ | |
CORESIGHT_AddAP(1, CORESIGHT_AHB_AP); | |
CORESIGHT_AddAP(0, CORESIGHT_APB_AP); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./JLinkExe -JLinkScriptFile rk3288-timmy.JLinkScript | |
SEGGER J-Link Commander V6.62d (Compiled Mar 2 2020 09:23:45) | |
DLL version V6.62d, compiled Mar 2 2020 09:23:31 | |
Connecting to J-Link via USB...O.K. | |
Firmware: J-Link V11 compiled Jan 7 2020 16:52:13 | |
Hardware version: V11.00 | |
S/N: 261002253 | |
License(s): FlashBP, GDB | |
OEM: SEGGER-EDU | |
VTref=3.361V | |
Type "connect" to establish a target connection, '?' for help | |
J-Link>connect | |
Please specify device / core. <Default>: CORTEX-A17 | |
Type '?' for selection dialog | |
Device> | |
Please specify target interface: | |
J) JTAG (Default) | |
S) SWD | |
T) cJTAG | |
TIF> | |
Device position in JTAG chain (IRPre,DRPre) <Default>: -1,-1 => Auto-detect | |
JTAGConf> | |
Specify target interface speed [kHz]. <Default>: 4000 kHz | |
Speed> | |
Device "CORTEX-A17" selected. | |
Connecting to target via JTAG | |
InitTarget() start | |
Hello SEGGER JLINK | |
InitTarget() end | |
TotalIRLen = 4, IRPrint = 0x01 | |
JTAG chain detection found 1 devices: | |
#0 Id: 0x5BA00477, IRLen: 04, CoreSight JTAG-DP | |
AP map detection skipped. Manually configured AP map found. | |
AP[0]: APB-AP (IDR: Not set) | |
AP[1]: AHB-AP (IDR: Not set) | |
Iterating through AP map to find APB-AP to use | |
AP[0]: APB-AP found | |
Settings mismatch... core selected: Cortex-A17, core identified: unknown core | |
InitTarget() start | |
Hello SEGGER JLINK | |
InitTarget() end | |
TotalIRLen = 4, IRPrint = 0x01 | |
JTAG chain detection found 1 devices: | |
#0 Id: 0x5BA00477, IRLen: 04, CoreSight JTAG-DP | |
****** Error: Cortex-A/R-JTAG (connect): Could not identify core via peripheral ID registers. | |
InitTarget() start | |
Hello SEGGER JLINK | |
InitTarget() end | |
TotalIRLen = 4, IRPrint = 0x01 | |
JTAG chain detection found 1 devices: | |
#0 Id: 0x5BA00477, IRLen: 04, CoreSight JTAG-DP | |
InitTarget() start | |
Hello SEGGER JLINK | |
InitTarget() end | |
TotalIRLen = 4, IRPrint = 0x01 | |
JTAG chain detection found 1 devices: | |
#0 Id: 0x5BA00477, IRLen: 04, CoreSight JTAG-DP | |
Cannot connect to target. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./JLinkExe | |
SEGGER J-Link Commander V6.62d (Compiled Mar 2 2020 09:23:45) | |
DLL version V6.62d, compiled Mar 2 2020 09:23:31 | |
Connecting to J-Link via USB...O.K. | |
Firmware: J-Link V11 compiled Jan 7 2020 16:52:13 | |
Hardware version: V11.00 | |
S/N: 261002253 | |
License(s): FlashBP, GDB | |
OEM: SEGGER-EDU | |
VTref=3.361V | |
Type "connect" to establish a target connection, '?' for help | |
J-Link>connect | |
Please specify device / core. <Default>: CORTEX-A17 | |
Type '?' for selection dialog | |
Device> | |
Please specify target interface: | |
J) JTAG (Default) | |
S) SWD | |
T) cJTAG | |
TIF> | |
Device position in JTAG chain (IRPre,DRPre) <Default>: -1,-1 => Auto-detect | |
JTAGConf> | |
Specify target interface speed [kHz]. <Default>: 4000 kHz | |
Speed> | |
Device "CORTEX-A17" selected. | |
Connecting to target via JTAG | |
TotalIRLen = 4, IRPrint = 0x01 | |
JTAG chain detection found 1 devices: | |
#0 Id: 0x5BA00477, IRLen: 04, CoreSight JTAG-DP | |
Scanning AP map to find all available APs | |
AP[2]: Stopped AP scan as end of AP map has been reached | |
AP[0]: APB-AP (IDR: 0x44770002) | |
AP[1]: AHB-AP (IDR: 0x74770001) | |
Iterating through AP map to find APB-AP to use | |
AP[0]: APB-AP found | |
ROMTbl[0][0]: CompAddr: 80020000 CID: B105100D, PID:04-001BB4AD ROM Table | |
ROMTbl[1][0]: CompAddr: 80030000 CID: B105900D, PID:04-001BBC0D ??? | |
ROMTbl[1][1]: CompAddr: 80031000 CID: B105900D, PID:04-001BB9AD ??? | |
ROMTbl[1][2]: CompAddr: 80032000 CID: B105900D, PID:04-001BBC0D ??? | |
ROMTbl[1][3]: CompAddr: 80033000 CID: B105900D, PID:04-001BB9AD ??? | |
ROMTbl[1][4]: CompAddr: 80034000 CID: B105900D, PID:04-001BBC0D ??? | |
ROMTbl[1][5]: CompAddr: 80035000 CID: B105900D, PID:04-001BB9AD ??? | |
ROMTbl[1][6]: CompAddr: 80036000 CID: B105900D, PID:04-001BBC0D ??? | |
ROMTbl[1][7]: CompAddr: 80037000 CID: B105900D, PID:04-001BB9AD ??? | |
ROMTbl[1][8]: CompAddr: 80038000 CID: B105900D, PID:04-004BB906 CTI | |
ROMTbl[1][9]: CompAddr: 80039000 CID: B105900D, PID:04-004BB906 CTI | |
ROMTbl[1][10]: CompAddr: 8003A000 CID: B105900D, PID:04-004BB906 CTI | |
ROMTbl[1][11]: CompAddr: 8003B000 CID: B105900D, PID:04-004BB906 CTI | |
ROMTbl[1][12]: CompAddr: 8003C000 CID: B105900D, PID:04-001BB95C ??? | |
ROMTbl[1][13]: CompAddr: 8003D000 CID: B105900D, PID:04-001BB95C ??? | |
ROMTbl[1][14]: CompAddr: 8003E000 CID: B105900D, PID:04-001BB95C ??? | |
ROMTbl[1][15]: CompAddr: 8003F000 CID: B105900D, PID:04-001BB95C ??? | |
ROMTbl[0][4]: CompAddr: 80043000 CID: B105900D, PID:04-002BB908 CSTF | |
ROMTbl[0][5]: CompAddr: 80044000 CID: B105900D, PID:04-004BB906 CTI | |
ROMTbl[0][6]: CompAddr: 80045000 CID: B105F00D, PID:04-000BB101 TSG | |
ROMTbl[0][7]: CompAddr: 80046000 CID: B105900D, PID:04-004BB912 TPIU | |
TotalIRLen = 4, IRPrint = 0x01 | |
JTAG chain detection found 1 devices: | |
#0 Id: 0x5BA00477, IRLen: 04, CoreSight JTAG-DP | |
****** Error: Cortex-A/R-JTAG (connect): Could not determine address of core debug registers. Incorrect CoreSight ROM table in device? | |
TotalIRLen = 4, IRPrint = 0x01 | |
JTAG chain detection found 1 devices: | |
#0 Id: 0x5BA00477, IRLen: 04, CoreSight JTAG-DP | |
TotalIRLen = 4, IRPrint = 0x01 | |
JTAG chain detection found 1 devices: | |
#0 Id: 0x5BA00477, IRLen: 04, CoreSight JTAG-DP | |
Cannot connect to target. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment