[ABANDONED] Cannot halt CPU

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [ABANDONED] Cannot halt CPU

    Dear community,
    I'm trying to debug my Amlogic A113X SoC using JLink v10.1 adapter via JTAG. This is quad Cortex-A53 SoC. This is what I get in JLinkExe under Linux:

    Source Code

    1. SEGGER J-Link Commander V7.62a (Compiled Feb 23 2022 17:02:50)
    2. DLL version V7.62a, compiled Feb 23 2022 17:02:35
    3. Connecting to J-Link via USB...O.K.
    4. Firmware: J-Link V10 compiled Nov 2 2021 12:14:50
    5. Hardware version: V10.10
    6. S/N: 50125191
    7. License(s): GDB
    8. VTref=3.300V (fixed)
    9. Type "connect" to establish a target connection, '?' for help
    10. J-Link>connect
    11. Please specify device / core. <Default>: CORTEX-A53
    12. Type '?' for selection dialog
    13. Device>
    14. Please specify target interface:
    15. J) JTAG (Default)
    16. S) SWD
    17. T) cJTAG
    18. TIF>
    19. Device position in JTAG chain (IRPre,DRPre) <Default>: -1,-1 => Auto-detect
    20. JTAGConf>
    21. Specify target interface speed [kHz]. <Default>: 4000 kHz
    22. Speed>
    23. Device "CORTEX-A53" selected.
    24. Connecting to target via JTAG
    25. TotalIRLen = 4, IRPrint = 0x01
    26. JTAG chain detection found 1 devices:
    27. #0 Id: 0x5BA00477, IRLen: 04, CoreSight JTAG-DP
    28. DPv0 detected
    29. Scanning AP map to find all available APs
    30. AP[1]: Stopped AP scan as end of AP map has been reached
    31. AP[0]: APB-AP (IDR: 0x44770002)
    32. Iterating through AP map to find APB-AP to use
    33. AP[0]: APB-AP found
    34. Scanning ROMTbl @ 0x80000000
    35. [0]Comp[0] @ 0x00000000: ROM Table
    36. Scanning ROMTbl @ 0x00000000
    37. [1]Comp[0] @ 0x00001000: CSTF
    38. [1]Comp[1] @ 0x00002000: TPIU
    39. [1]Comp[2] @ 0x00003000: ETB
    40. [1]Comp[3] @ 0x00004000: ATBR
    41. [1]Comp[4] @ 0x00005000: CTI
    42. [1]Comp[5] @ 0x00006000: TSG
    43. [1]Comp[6] @ 0x00400000: ROM Table
    44. Scanning ROMTbl @ 0x00400000
    45. [2]Comp[0] @ 0x00410000: Cortex-A53
    46. [2]Comp[1] @ 0x00420000: CSS600-CTI
    47. Core found. Stopped ROM table scan: https://wiki.segger.com/ROMTableScan
    48. Cortex-A53 @ 0x00410000 (detected)
    49. CoreCTI @ 0x00420000 (detected)
    50. Debug architecture: ARMv8
    51. 6 code breakpoints, 4 data breakpoints
    52. Processor features:
    53. EL0 support: AArch64 + AArch32
    54. EL1 support: AArch64 + AArch32
    55. EL2 support: AArch64 + AArch32
    56. EL3 support: AArch64 + AArch32
    57. FPU support: Single + Double + Conversion
    58. Add. info (CPU temp. halted)
    59. CPU could not be halted
    60. Failed to temporarily halt CPU
    61. TotalIRLen = 4, IRPrint = 0x01
    62. JTAG chain detection found 1 devices:
    63. #0 Id: 0x5BA00477, IRLen: 04, CoreSight JTAG-DP
    64. DPv0 detected
    65. Scanning AP map to find all available APs
    66. AP[1]: Stopped AP scan as end of AP map has been reached
    67. AP[0]: APB-AP (IDR: 0x44770002)
    68. Iterating through AP map to find APB-AP to use
    69. AP[0]: APB-AP found
    70. Scanning ROMTbl @ 0x80000000
    71. [0]Comp[0] @ 0x00000000: ROM Table
    72. Scanning ROMTbl @ 0x00000000
    73. [1]Comp[0] @ 0x00001000: CSTF
    74. [1]Comp[1] @ 0x00002000: TPIU
    75. [1]Comp[2] @ 0x00003000: ETB
    76. [1]Comp[3] @ 0x00004000: ATBR
    77. [1]Comp[4] @ 0x00005000: CTI
    78. [1]Comp[5] @ 0x00006000: TSG
    79. [1]Comp[6] @ 0x00400000: ROM Table
    80. Scanning ROMTbl @ 0x00400000
    81. [2]Comp[0] @ 0x00410000: Cortex-A53
    82. [2]Comp[1] @ 0x00420000: CSS600-CTI
    83. Core found. Stopped ROM table scan: https://wiki.segger.com/ROMTableScan
    84. Cortex-A53 @ 0x00410000 (detected)
    85. CoreCTI @ 0x00420000 (detected)
    86. Debug architecture: ARMv8
    87. 6 code breakpoints, 4 data breakpoints
    88. Processor features:
    89. EL0 support: AArch64 + AArch32
    90. EL1 support: AArch64 + AArch32
    91. EL2 support: AArch64 + AArch32
    92. EL3 support: AArch64 + AArch32
    93. FPU support: Single + Double + Conversion
    94. Add. info (CPU temp. halted)
    95. CPU could not be halted
    96. Failed to temporarily halt CPU
    97. ****** Error: Specific core setup failed.
    98. Cannot connect to target.
    99. J-Link>
    Display All

    It says "Specific core setup failed". I had another output some time ago (did not change anything in my debug setup):

    Source Code

    1. SEGGER J-Link Commander V7.62a (Compiled Feb 23 2022 17:02:50)
    2. DLL version V7.62a, compiled Feb 23 2022 17:02:35
    3. Connecting to J-Link via USB...O.K.
    4. Firmware: J-Link V10 compiled Nov 2 2021 12:14:50
    5. Hardware version: V10.10
    6. S/N: 50125191
    7. License(s): GDB
    8. VTref=3.300V (fixed)
    9. Type "connect" to establish a target connection, '?' for help
    10. J-Link>connect
    11. Please specify device / core. <Default>: CORTEX-A53
    12. Type '?' for selection dialog
    13. Device>
    14. Please specify target interface:
    15. J) JTAG (Default)
    16. S) SWD
    17. T) cJTAG
    18. TIF>
    19. Device position in JTAG chain (IRPre,DRPre) <Default>: -1,-1 => Auto-detect
    20. JTAGConf>
    21. Specify target interface speed [kHz]. <Default>: 4000 kHz
    22. Speed>
    23. Device "CORTEX-A53" selected.
    24. Connecting to target via JTAG
    25. TotalIRLen = 4, IRPrint = 0x01
    26. JTAG chain detection found 1 devices:
    27. #0 Id: 0x5BA00477, IRLen: 04, CoreSight JTAG-DP
    28. DPv0 detected
    29. Scanning AP map to find all available APs
    30. AP[1]: Stopped AP scan as end of AP map has been reached
    31. AP[0]: APB-AP (IDR: 0x44770002)
    32. Iterating through AP map to find APB-AP to use
    33. AP[0]: APB-AP found
    34. Scanning ROMTbl @ 0x80000000
    35. [0]Comp[0] @ 0x00000000: ROM Table
    36. Scanning ROMTbl @ 0x00000000
    37. [1]Comp[0] @ 0x00001000: CSTF
    38. [1]Comp[1] @ 0x00002000: TPIU
    39. [1]Comp[2] @ 0x00003000: ETB
    40. [1]Comp[3] @ 0x00004000: ATBR
    41. [1]Comp[4] @ 0x00005000: CTI
    42. [1]Comp[5] @ 0x00006000: TSG
    43. [1]Comp[6] @ 0x00400000: ROM Table
    44. Scanning ROMTbl @ 0x00400000
    45. [2]Comp[0] @ 0x00410000: Cortex-A53
    46. [2]Comp[1] @ 0x00420000: CSS600-CTI
    47. Core found. Stopped ROM table scan: https://wiki.segger.com/ROMTableScan
    48. Cortex-A53 @ 0x00410000 (detected)
    49. CoreCTI @ 0x00420000 (detected)
    50. Debug architecture: ARMv8
    51. 6 code breakpoints, 4 data breakpoints
    52. Add. info (CPU temp. halted)
    53. CPU could not be halted
    54. Failed to temporarily halt CPU
    55. TotalIRLen = 4, IRPrint = 0x01
    56. JTAG chain detection found 1 devices:
    57. #0 Id: 0x5BA00477, IRLen: 04, CoreSight JTAG-DP
    58. DPv0 detected
    59. Scanning AP map to find all available APs
    60. AP[1]: Stopped AP scan as end of AP map has been reached
    61. AP[0]: APB-AP (IDR: 0x44770002)
    62. Iterating through AP map to find APB-AP to use
    63. AP[0]: APB-AP found
    64. Scanning ROMTbl @ 0x80000000
    65. [0]Comp[0] @ 0x00000000: ROM Table
    66. Scanning ROMTbl @ 0x00000000
    67. [1]Comp[0] @ 0x00001000: CSTF
    68. [1]Comp[1] @ 0x00002000: TPIU
    69. [1]Comp[2] @ 0x00003000: ETB
    70. [1]Comp[3] @ 0x00004000: ATBR
    71. [1]Comp[4] @ 0x00005000: CTI
    72. [1]Comp[5] @ 0x00006000: TSG
    73. [1]Comp[6] @ 0x00400000: ROM Table
    74. Scanning ROMTbl @ 0x00400000
    75. [2]Comp[0] @ 0x00410000: Cortex-A53
    76. [2]Comp[1] @ 0x00420000: CSS600-CTI
    77. Core found. Stopped ROM table scan: https://wiki.segger.com/ROMTableScan
    78. Cortex-A53 @ 0x00410000 (detected)
    79. CoreCTI @ 0x00420000 (detected)
    80. Debug architecture: ARMv8
    81. 6 code breakpoints, 4 data breakpoints
    82. Add. info (CPU temp. halted)
    83. CPU could not be halted
    84. Failed to temporarily halt CPU
    85. ****** Error: EDSCR[HDE]: Cannot enable halting debug mode
    86. Specific core setup failed.
    87. Cannot connect to target.
    Display All


    Now it says "EDSCR[HDE]: Cannot enable halting debug mode" and missing CPU features list.
    Looks like it can read registers but cannot execute commands, like "halt" command.
    I have prepared device to JTAG debug using SoC vendor instructions. I cannot understand what's going on - is it incomplete vendor's instructions, faulty connection or what? Please help me figure this out.
    JLink adapter firmware is up to date.