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.
Display All
With the following logfile:
Display All
Any clue what might be wrong ?
Best regards,
Ivo.
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
- ~$ JLinkExe -device CYPD317xx -if SWD -Log cy4532-ccg3pa.log -speed 2000 -autoconnect 1
- SEGGER J-Link Commander V6.88c (Compiled Dec 4 2020 19:04:45)
- DLL version V6.88c, compiled Dec 4 2020 19:04:32
- Connecting to J-Link via USB...O.K.
- Firmware: J-Link V9 compiled Dec 13 2019 11:14:50
- Hardware version: V9.30
- S/N: 609300812
- License(s): RDI, FlashBP, FlashDL, JFlash, GDB
- VTref=3.391V
- Device "CYPD317XX" selected.
- Connecting to target via SWD
- InitTarget() start
- InitTarget() end
- InitTarget() start
- InitTarget() end
- InitTarget() start
- InitTarget() end
- InitTarget() start
- InitTarget() end
- Cannot connect to target.
- J-Link>q
- ~$
With the following logfile:
Source Code: cy4532-ccg3pa.log
- T39C8F740 000:001.129 SEGGER J-Link V6.88c Log File
- T39C8F740 000:001.526 DLL Compiled: Dec 4 2020 19:04:32
- T39C8F740 000:001.543 Logging started @ 2021-02-26 09:40
- T39C8F740 000:001.558 - 1.565ms
- T39C8F740 000:001.598 JLINK_SetWarnOutHandler(...)
- T39C8F740 000:001.618 - 0.030ms
- T39C8F740 000:001.808 JLINK_OpenEx(...)
- T39C8F740 000:140.975 Firmware: J-Link V9 compiled Dec 13 2019 11:14:50
- T39C8F740 000:141.104 Decompressing FW timestamp took 111 us
- T39C8F740 000:147.297 Hardware: V9.30
- T39C8F740 000:147.306 S/N: 609300812
- T39C8F740 000:147.311 OEM: SEGGER
- T39C8F740 000:147.315 Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
- T39C8F740 000:148.108 TELNET listener socket opened on port 19021
- T39C8F740 000:148.151 WEBSRV Starting webserver
- T39C8F740 000:148.180 WEBSRV Webserver running on local port 19080
- T39C8F740 000:148.186 - 146.380ms returns "O.K."
- T39C8F740 000:148.214 JLINK_GetFirmwareString(...)
- T39C8F740 000:148.220 - 0.008ms
- T39C8F740 000:148.231 JLINK_GetHardwareVersion()
- T39C8F740 000:148.235 - 0.006ms returns 93000
- T39C8F740 000:148.242 JLINK_GetSN()
- T39C8F740 000:148.247 - 0.007ms returns 609300812
- T39C8F740 000:148.258 JLINK_GetOEMString(...)
- T39C8F740 000:148.267 JLINK_EMU_HasCapEx(0x00000026)
- T39C8F740 000:148.273 - 0.008ms returns 0
- T39C8F740 000:148.278 JLINK_EMU_GetProductId()
- T39C8F740 000:148.285 - 0.009ms
- T39C8F740 000:148.290 JLINK_GetHardwareVersion()
- T39C8F740 000:148.294 - 0.005ms returns 93000
- T39C8F740 000:148.297 JLINK_GetFirmwareString(...)
- T39C8F740 000:148.300 - 0.005ms
- T39C8F740 000:148.304 JLINK_GetEmuCaps()
- T39C8F740 000:148.307 - 0.004ms returns 0xB9FF7BBF
- T39C8F740 000:148.310 JLINK_GetEmuCaps()
- T39C8F740 000:148.313 - 0.004ms returns 0xB9FF7BBF
- T39C8F740 000:148.316 JLINK_GetHWStatus(...)
- T39C8F740 000:148.489 - 0.178ms returns 0
- T39C8F740 000:148.497 JLINK_EMU_HasCapEx(0x00000044)
- T39C8F740 000:148.501 - 0.005ms returns 1
- T39C8F740 000:148.505 JLINK_ReadEmuConfigMem(..., Off = 0x9A, NumBytes = 0x01)
- T39C8F740 000:148.508 - 0.005ms returns 0
- T39C8F740 000:148.519 JLINK_ExecCommand("device=CYPD317xx", ...).
- T39C8F740 000:153.248 XML file found at: /opt/SEGGER/JLink_V688c/JLinkDevices.xml
- T39C8F740 000:153.579 /opt/SEGGER/JLink_V688c/JLinkDevices.xml evaluated successfully.
- T39C8F740 000:157.759 Device "CYPD317XX" selected.
- T39C8F740 000:173.273 - 24.788ms returns 0x00
- T39C8F740 000:173.338 JLINK_EnableLog(...)
- T39C8F740 000:173.354 - 0.023ms
- T39C8F740 000:173.404 JLINK_GetEmuCaps()
- T39C8F740 000:173.425 - 0.032ms returns 0xB9FF7BBF
- T39C8F740 000:173.461 JLINK_TIF_GetAvailable(...)
- T39C8F740 000:173.635 - 0.192ms
- T39C8F740 000:173.676 JLINK_TIF_Select(JLINKARM_TIF_SWD)
- T39C8F740 000:174.590 - 0.942ms returns 0x00
- T39C8F740 000:174.672 JLINK_IsConnected()
- T39C8F740 000:174.699 - 0.039ms returns FALSE
- T39C8F740 000:174.735 JLINK_SetSpeed(8000)
- T39C8F740 000:174.878 - 0.166ms
- T39C8F740 000:174.932 JLINK_Connect()
- T39C8F740 000:176.348 InitTarget() start
- T39C8F740 000:176.400 J-Link Script File: Executing InitTarget()
- T39C8F740 001:683.687 InitTarget() end
- T39C8F740 001:744.871 InitTarget() start
- T39C8F740 001:744.942 J-Link Script File: Executing InitTarget()
- T39C8F740 003:251.173 InitTarget() end
- T39C8F740 003:251.253 - 3076.332ms returns 0xFFFFFFFF
- T39C8F740 003:251.298 JLINK_GetIdData(pIdData)
- T39C8F740 003:251.592 InitTarget() start
- T39C8F740 003:251.646 J-Link Script File: Executing InitTarget()
- T39C8F740 004:758.233 InitTarget() end
- T39C8F740 004:819.285 InitTarget() start
- T39C8F740 004:819.357 J-Link Script File: Executing InitTarget()
- T39C8F740 006:327.199 InitTarget() end
- T39C8F740 006:327.272 - 3075.983ms
- T39C8F740 007:234.284 JLINK_IsOpen()
- T39C8F740 007:234.364 - 0.096ms returns 0x01
- T39C8F740 007:243.491 JLINK_Close()
- T39C8F740 007:270.527 - 27.064ms
- T39C8F740 007:270.562
- T39C8F740 007:270.570 Closed
Best regards,
Ivo.