[SOLVED] CY4532 (CCG3PA): Cannot connect to target.

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

  • [SOLVED] CY4532 (CCG3PA): Cannot connect to target.

    Hi,

    I'm trying to program a Cypress CCG3PA (CYPD3171) on the Cypress CY4532 EZ-PD CCG3PA EVK Main board.

    This works using Cypress' MiniProg4, but with J-Link, I'm getting a "Cannot connect to target." error.

    Source Code

    1. ~$ JLinkExe -device CYPD317xx -if SWD -Log cy4532-ccg3pa.log -speed 2000 -autoconnect 1
    2. SEGGER J-Link Commander V6.88c (Compiled Dec 4 2020 19:04:45)
    3. DLL version V6.88c, compiled Dec 4 2020 19:04:32
    4. Connecting to J-Link via USB...O.K.
    5. Firmware: J-Link V9 compiled Dec 13 2019 11:14:50
    6. Hardware version: V9.30
    7. S/N: 609300812
    8. License(s): RDI, FlashBP, FlashDL, JFlash, GDB
    9. VTref=3.391V
    10. Device "CYPD317XX" selected.
    11. Connecting to target via SWD
    12. InitTarget() start
    13. InitTarget() end
    14. InitTarget() start
    15. InitTarget() end
    16. InitTarget() start
    17. InitTarget() end
    18. InitTarget() start
    19. InitTarget() end
    20. Cannot connect to target.
    21. J-Link>q
    22. ~$
    Display All

    With the following logfile:

    Source Code: cy4532-ccg3pa.log

    1. T39C8F740 000:001.129 SEGGER J-Link V6.88c Log File
    2. T39C8F740 000:001.526 DLL Compiled: Dec 4 2020 19:04:32
    3. T39C8F740 000:001.543 Logging started @ 2021-02-26 09:40
    4. T39C8F740 000:001.558 - 1.565ms
    5. T39C8F740 000:001.598 JLINK_SetWarnOutHandler(...)
    6. T39C8F740 000:001.618 - 0.030ms
    7. T39C8F740 000:001.808 JLINK_OpenEx(...)
    8. T39C8F740 000:140.975 Firmware: J-Link V9 compiled Dec 13 2019 11:14:50
    9. T39C8F740 000:141.104 Decompressing FW timestamp took 111 us
    10. T39C8F740 000:147.297 Hardware: V9.30
    11. T39C8F740 000:147.306 S/N: 609300812
    12. T39C8F740 000:147.311 OEM: SEGGER
    13. T39C8F740 000:147.315 Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
    14. T39C8F740 000:148.108 TELNET listener socket opened on port 19021
    15. T39C8F740 000:148.151 WEBSRV Starting webserver
    16. T39C8F740 000:148.180 WEBSRV Webserver running on local port 19080
    17. T39C8F740 000:148.186 - 146.380ms returns "O.K."
    18. T39C8F740 000:148.214 JLINK_GetFirmwareString(...)
    19. T39C8F740 000:148.220 - 0.008ms
    20. T39C8F740 000:148.231 JLINK_GetHardwareVersion()
    21. T39C8F740 000:148.235 - 0.006ms returns 93000
    22. T39C8F740 000:148.242 JLINK_GetSN()
    23. T39C8F740 000:148.247 - 0.007ms returns 609300812
    24. T39C8F740 000:148.258 JLINK_GetOEMString(...)
    25. T39C8F740 000:148.267 JLINK_EMU_HasCapEx(0x00000026)
    26. T39C8F740 000:148.273 - 0.008ms returns 0
    27. T39C8F740 000:148.278 JLINK_EMU_GetProductId()
    28. T39C8F740 000:148.285 - 0.009ms
    29. T39C8F740 000:148.290 JLINK_GetHardwareVersion()
    30. T39C8F740 000:148.294 - 0.005ms returns 93000
    31. T39C8F740 000:148.297 JLINK_GetFirmwareString(...)
    32. T39C8F740 000:148.300 - 0.005ms
    33. T39C8F740 000:148.304 JLINK_GetEmuCaps()
    34. T39C8F740 000:148.307 - 0.004ms returns 0xB9FF7BBF
    35. T39C8F740 000:148.310 JLINK_GetEmuCaps()
    36. T39C8F740 000:148.313 - 0.004ms returns 0xB9FF7BBF
    37. T39C8F740 000:148.316 JLINK_GetHWStatus(...)
    38. T39C8F740 000:148.489 - 0.178ms returns 0
    39. T39C8F740 000:148.497 JLINK_EMU_HasCapEx(0x00000044)
    40. T39C8F740 000:148.501 - 0.005ms returns 1
    41. T39C8F740 000:148.505 JLINK_ReadEmuConfigMem(..., Off = 0x9A, NumBytes = 0x01)
    42. T39C8F740 000:148.508 - 0.005ms returns 0
    43. T39C8F740 000:148.519 JLINK_ExecCommand("device=CYPD317xx", ...).
    44. T39C8F740 000:153.248 XML file found at: /opt/SEGGER/JLink_V688c/JLinkDevices.xml
    45. T39C8F740 000:153.579 /opt/SEGGER/JLink_V688c/JLinkDevices.xml evaluated successfully.
    46. T39C8F740 000:157.759 Device "CYPD317XX" selected.
    47. T39C8F740 000:173.273 - 24.788ms returns 0x00
    48. T39C8F740 000:173.338 JLINK_EnableLog(...)
    49. T39C8F740 000:173.354 - 0.023ms
    50. T39C8F740 000:173.404 JLINK_GetEmuCaps()
    51. T39C8F740 000:173.425 - 0.032ms returns 0xB9FF7BBF
    52. T39C8F740 000:173.461 JLINK_TIF_GetAvailable(...)
    53. T39C8F740 000:173.635 - 0.192ms
    54. T39C8F740 000:173.676 JLINK_TIF_Select(JLINKARM_TIF_SWD)
    55. T39C8F740 000:174.590 - 0.942ms returns 0x00
    56. T39C8F740 000:174.672 JLINK_IsConnected()
    57. T39C8F740 000:174.699 - 0.039ms returns FALSE
    58. T39C8F740 000:174.735 JLINK_SetSpeed(8000)
    59. T39C8F740 000:174.878 - 0.166ms
    60. T39C8F740 000:174.932 JLINK_Connect()
    61. T39C8F740 000:176.348 InitTarget() start
    62. T39C8F740 000:176.400 J-Link Script File: Executing InitTarget()
    63. T39C8F740 001:683.687 InitTarget() end
    64. T39C8F740 001:744.871 InitTarget() start
    65. T39C8F740 001:744.942 J-Link Script File: Executing InitTarget()
    66. T39C8F740 003:251.173 InitTarget() end
    67. T39C8F740 003:251.253 - 3076.332ms returns 0xFFFFFFFF
    68. T39C8F740 003:251.298 JLINK_GetIdData(pIdData)
    69. T39C8F740 003:251.592 InitTarget() start
    70. T39C8F740 003:251.646 J-Link Script File: Executing InitTarget()
    71. T39C8F740 004:758.233 InitTarget() end
    72. T39C8F740 004:819.285 InitTarget() start
    73. T39C8F740 004:819.357 J-Link Script File: Executing InitTarget()
    74. T39C8F740 006:327.199 InitTarget() end
    75. T39C8F740 006:327.272 - 3075.983ms
    76. T39C8F740 007:234.284 JLINK_IsOpen()
    77. T39C8F740 007:234.364 - 0.096ms returns 0x01
    78. T39C8F740 007:243.491 JLINK_Close()
    79. T39C8F740 007:270.527 - 27.064ms
    80. T39C8F740 007:270.562
    81. T39C8F740 007:270.570 Closed
    Display All
    Any clue what might be wrong ?

    Best regards,

    Ivo.
  • Hi Ivo,
    just to rule this out:
    Could you please give the latest version of the J-Link Software Pack a try?
    segger.com/downloads/jlink#J-L…twareAndDocumentationPack

    Could you please send us a J-Link log file? How to enable:
    wiki.segger.com/J-Link_DLL#Enable_J-Link_Log_File

    Best regards,
    Fabian
    Please read the forum rules before posting: Forum Rules

    Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/


    Or you can contact us via e-mail.
  • Hi,
    As you also contacted us via the Support System, we will close this thread here.

    Best regards,
    Fabian
    Please read the forum rules before posting: Forum Rules

    Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/


    Or you can contact us via e-mail.