Cypress Programmer unable to connect PSoC 61 device

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
ravo
Level 5
Level 5
10 likes received 5 comments on blog 5 solutions authored

Dears,

I have problem using Cypress Programmer with MiniProg4

I would like to program CY8C6137BZI-F34 device.

Info : ** Target-config: cpu_CY8CKIT_062_BLE.cfg
Info : ** Probe-config: probe_miniprog4.tcl
Info : Open On-Chip Debugger 0.10.0+dev-3.0.0.665 (2020-03-20-10:13)
Info : Licensed under GNU GPL v2
Info : For bug reports, read
Info : http://openocd.org/doc/doxygen/bugs.html
Info : debug_level: 2
Info : adapter speed: 1500 kHz
Info : serial: xxxxxxxxxxxxxxxxx
Info : transport: swd
Info : rst type: soft
Info : efuse: off
Info : sflash restrict: 0
Info : adapter speed: 2000 kHz
Info : ** Auto-acquire enabled, use "set ENABLE_ACQUIRE 0" to disable
Info : cortex_m reset_config sysresetreq
Info : cortex_m reset_config sysresetreq
Info : none separate
Info : SFlash programming disallowed, see 'sflash_restrictions' command
Info : tcl server disabled
Info : Listening on port 4445 for telnet connections
Info : CMSIS-DAP: SWD Supported
Info : CMSIS-DAP: JTAG Supported
Info : CMSIS-DAP: FW Version = 2.0.0
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : KitProg3: FW version: 2.30.1155
Info : KitProg3: Pipelined transfers enabled
Info : VTarget = 3.293 V
Info : kitprog3: acquiring PSoC device...
Info : clock speed 2000 kHz
Info : SWD DPIDR 0x6ba02477
Info : SWD DPIDR 0x6ba02477
Error: Failed to read memory at 0xe000ed00
Info : Polling target psoc6.cpu.cm0 failed, trying to reexamine
Info : SWD DPIDR 0x6ba02477
Info : SWD DPIDR 0x6ba02477
Error: Failed to read memory at 0xe000ed00
Info : Examination failed, GDB will be halted. Polling again in 100ms
Info : Polling target psoc6.cpu.cm0 failed, trying to reexamine
Info : SWD DPIDR 0x6ba02477
Info : SWD DPIDR 0x6ba02477
Error: Failed to read memory at 0xe000ed00
Info : Examination failed, GDB will be halted. Polling again in 300ms
Info : Listening on port 3333 for gdb connections
Info : Listening on port 3334 for gdb connections
Info : accepting 'telnet' connection on tcp/4445
Info : Open On-Chip Debugger
Info : init_target
Info : ***************************************
Info : SWD DPIDR 0x6ba02477
Error: Failed to read memory at 0x16000000
Info : mem2array: Read @ 0x16000000, w=4, cnt=1, failed
Info : SWD DPIDR 0x6ba02477
Error: Failed to read memory at 0x16002004
Info : mem2array: Read @ 0x16002004, w=4, cnt=1, failed
Info : SWD DPIDR 0x6ba02477
Error: Failed to read memory at 0x40210500
Info : mem2array: Read @ 0x40210500, w=4, cnt=1, failed
Info : Error executing event examine-end on target psoc6.cpu.cm0:
Error: C:/Program Files (x86)/Cypress/Cypress Programmer 3.0/./openocd/scripts/target/psoc6_common.cfg:278: Error:
Error: in procedure 'init_target'
Error: in procedure 'ocd_process_reset'
Error: in procedure 'ocd_process_reset_inner' called at file "embedded:startup.tcl", line 270
Error: in procedure 'cy_get_set_device_param' called at file "C:/Program Files (x86)/Cypress/Cypress Programmer 3.0/./openocd/scripts/target/psoc6_common.cfg", line 221
Error: in procedure 'show_chip_protection' called at file "C:/Program Files (x86)/Cypress/Cypress Programmer 3.0/./openocd/scripts/target/cy_get_set_device_param.cfg", line 189
Error: in procedure 'mrw' called at file "C:/Program Files (x86)/Cypress/Cypress Programmer 3.0/./openocd/scripts/target/cy_get_set_device_param.cfg", line 146
Error: at file "C:/Program Files (x86)/Cypress/Cypress Programmer 3.0/./openocd/scripts/target/psoc6_common.cfg", line 278
Info : psoc6.cpu.cm4: hardware has 6 breakpoints, 4 watchpoints
Info : SWD DPIDR 0x6ba02477
Info : SWD DPIDR 0x6ba02477
Info : AP write error, reset will not halt
Info : SWD DPIDR 0x6ba02477
Info : SWD DPIDR 0x6ba02477
Error: in procedure 'init_target'
Info : SWD DPIDR 0x6ba02477
Info : psoc6.cpu.cm4: external reset detected
Error: cyp status: ERROR

when I manually select PSoC 64 platform it is working. But I suppose that this is wrong, because CY8C6137BZI-F34 is member of PSoC 61/62/63 platform group.

 

Log using PSoC 64 platform settings


Info : ** Target-config: cpu_CY8CPROTO-064-SB.cfg
Info : ** Probe-config: probe_miniprog4.tcl
Info : Open On-Chip Debugger 0.10.0+dev-3.0.0.665 (2020-03-20-10:13)
Info : Licensed under GNU GPL v2
Info : For bug reports, read
Info : http://openocd.org/doc/doxygen/bugs.html
Info : debug_level: 2
Info : adapter speed: 1500 kHz
Info : serial: xxxxxxxxxxxxxxxxx
Info : ** Main Flash size limited to 0xD0000 bytes
Info : adapter speed: 2000 kHz
Info : ** Using ACQUIRE_TIMEOUT: 15000 ms
Info : ** Using POWERUP_DELAY: 5000 ms
Info : ** TARGET_AP not defined, using 'sys_ap' by default
Info : ** Using TARGET_AP: sys_ap
Info : srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
Info : SFlash programming disallowed, see 'sflash_restrictions' command
Info : tcl server disabled
Info : Listening on port 4445 for telnet connections
Info : CMSIS-DAP: SWD Supported
Info : CMSIS-DAP: JTAG Supported
Info : CMSIS-DAP: FW Version = 2.0.0
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : KitProg3: FW version: 2.30.1155
Info : KitProg3: Pipelined transfers enabled
Info : VTarget = 3.293 V
Info : clock speed 2000 kHz
Info : SWD DPIDR 0x6ba02477
Info : ***************************************
Info : ** Use overriden Main Flash size, kb: 832
Info : ** Silicon: 0xE216, Family: 0x100, Rev.: 0x23 (B2)
Info : ** Detected Device: CY8C6137BZI-F34
Info : ** Flash Boot version: 1.20.1.42
Info : ***************************************
Info : accepting 'telnet' connection on tcp/4445
Info : Open On-Chip Debugger
Info : init_target
Info : SWD DPIDR 0x6ba02477
Info : Waiting up to 15.0 sec for the bootloader to open AP #0...
Info : Waiting up to 15.0 sec for the handshake from the target...
Info : No handshake from the target, continuing anyway
Info : flash 'psoc6' found at 0x10000000
Info : flash 'psoc6' found at 0x14000000
Info : #0 : psoc64_main_sysap (psoc6) at 0x10000000, size 0x000d0000, buswidth 4, chipwidth 4
Info : #1 : psoc64_work_sysap (psoc6) at 0x14000000, size 0x00008000, buswidth 4, chipwidth 4
Info : cyp status: OK
Info : cyp_get_mpn
Info : ** Detected device PN: CY8C6137BZI-F34 SiliconID: E216 Revision: 23 FamilyID: 100 DIE: PSoC6ABLE2

But it is slow... some 15sec delays...

Is it normal ?

Regards

Radim

0 Likes
1 Solution
Rakesh_Patrudu
Moderator
Moderator
Moderator
25 solutions authored 5 likes given 50 replies posted

Hi @ravo ,

Can you please give some additional information in which mode you are programming the device CY8C6137BZI-F34 with Cypress Programmer (please use CMSIS-DAP BULK mode) and please check why the target device in your log is showing CY8CKIT_062_BLE, which is something different device from the one you are using?

Since you are using Cypress Programmer 3.0, please install the latest version and kindly try programming your device and check.

Best Regards,
Rakesh

View solution in original post

8 Replies
Gautami_12
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 250 replies posted

Hi @ravo,

Can you please share the screenshot of Cypress Programmer when the error occurs?
Also if possible share the hex file so that we can try the same on our end.

Also please refer to the thread .

Warm Regards,
Gautami J

0 Likes

Dear @Gautami_12 ,

thanks for response. Here is screenshot. Detailed log is previous post.

ravo_0-1666161761023.png

If I select PSoC 64 then I am able to connect to device CY8C6137BZI-F34

ravo_1-1666161925638.png

Is it correct ?

Radim

0 Likes
Gautami_12
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 250 replies posted

Hi @ravo,

Can you please program a device using MiniProg4 and confirm if it is able to program the device?
Also if possible share the hex file so that we can try the same on our end.

Warm Regards,
Gautami J

0 Likes

Dear @Gautami_12, I can program with MiniProg4 another devices without any problem (tested for example with CY8C6247BZI-D54). And as I wrote earlier I can also program CY8C6137BZI-F34 but with manually switch platform to "PSoC 64" as shown on picture in previous post. Is it normal ?

The HEX file I will send later...

Radim

0 Likes
Rakesh_Patrudu
Moderator
Moderator
Moderator
25 solutions authored 5 likes given 50 replies posted

Hi @ravo ,

You are using Cypress Programmer to program the CY8C6137BZI-F34 device, and you also shared the log using PSoC 61/62/63. We have noticed that in the log the target device does not match the one that you are using. Since we can find that particular device (CY8C6137BZI-F34) in PSoC Programmer. So, please try programming the device using PSoC Programmer.

Rakesh_Patrudu_0-1667561761421.png

Best Regards,
Rakesh

0 Likes

Dear @Rakesh_Patrudu,

I am not able to use PSoC Programmer, because I have created HEX file using Modus Toolbox. And as Nikhil answer me in another thread https://community.infineon.com/t5/PSoC-6/PSoC-Programmer-Hex-File-parsing-failure/m-p/380011#M14505: "The hex file generated from ModusToolbox needs to be programmed via Cypress Programmer and is not supported on PSoC Programmer."

Maybe I did not understand you. If I read log file (for first id did not detect any device) but if I manually switch to PSoC 64 family it will detect correct device:

Info : SWD DPIDR 0x6ba02477 (same for both logs) 

but only as PSoC 64 it will continue see:

Info : ***************************************
Info : ** Use overriden Main Flash size, kb: 832
Info : ** Silicon: 0xE216, Family: 0x100, Rev.: 0x23 (B2)
Info : ** Detected Device: CY8C6137BZI-F34
Info : ** Flash Boot version: 1.20.1.42
Info : ***************************************

if switched to PSoC 61/62/63 it will halt on this:

Info : Polling target psoc6.cpu.cm0 failed, trying to reexamine

What else could be wrong ?

Regards

Radim

0 Likes
Rakesh_Patrudu
Moderator
Moderator
Moderator
25 solutions authored 5 likes given 50 replies posted

Hi @ravo ,

Can you please give some additional information in which mode you are programming the device CY8C6137BZI-F34 with Cypress Programmer (please use CMSIS-DAP BULK mode) and please check why the target device in your log is showing CY8CKIT_062_BLE, which is something different device from the one you are using?

Since you are using Cypress Programmer 3.0, please install the latest version and kindly try programming your device and check.

Best Regards,
Rakesh

Dear @Rakesh_Patrudu,

I am using  CMSIS-DAP - I hope that it is shown in LOG file. Today I just installed latest SW - Cypress Programmer 4.1.0 build 828

Now I am able to connect to PSoC device and Log is correct now.

Info : ** Target-config: cpu_CY8CKIT_062_BLE.cfg
Info : ** Probe-config: probe_miniprog4.tcl
Info : Open On-Chip Debugger 0.11.0+dev-4.4.0.2134 (2022-09-08-13:07)
Info : Licensed under GNU GPL v2
Info : For bug reports, read
Info : http://openocd.org/doc/doxygen/bugs.html
Info : debug_level: 2
Info : adapter speed: 1500 kHz
Info : serial: 140E16C401287400
Info : transport: swd
Info : rst type: soft
Info : efuse: off
Info : sflash restrict: 0
Info : adapter speed: 2000 kHz
Info : adapter srst delay: 25
Info : adapter srst pulse_width: 25
Info : ** Auto-acquire enabled, use "set ENABLE_ACQUIRE 0" to disable
Info : cortex_m reset_config sysresetreq
Info : none separate
Info : SFlash programming disallowed, see 'sflash_restrictions' command
Info : tcl server disabled
Info : Listening on port 4445 for telnet connections
Info : Using CMSIS-DAPv2 interface with VID:PID=0x04b4:0xf151, serial=140E16C401287400
Info : CMSIS-DAP: SWD supported
Info : CMSIS-DAP: JTAG supported
Info : CMSIS-DAP: Atomic commands supported
Info : CMSIS-DAP: FW Version = 2.0.0
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : KitProg3: FW version: 2.40.1241
Info : KitProg3: Pipelined transfers enabled
Info : KitProg3: Asynchronous USB transfers enabled
Info : VTarget = 3.294 V
Info : kitprog3: acquiring the device (mode: reset)...
Info : clock speed 2000 kHz
Info : SWD DPIDR 0x6ba02477
Info : [psoc6.cpu.cm4] Cortex-M4 r0p1 processor detected
Info : [psoc6.cpu.cm4] target has 6 breakpoints, 4 watchpoints
Info : [psoc6.cpu.cm4] external reset detected
Info : ***************************************
Info : ** Silicon: 0xE216, Family: 0x100, Rev.: 0x23 (B2)
Info : ** Detected Device: CY8C6137BZI-F34
Info : ** Detected Main Flash size, kb: 1024
Info : ** Flash Boot version: 1.20.1.42
Info : ** Chip Protection: NORMAL
Info : ***************************************
Info : gdb port disabled
Info : accepting 'telnet' connection on tcp/4445
Info : Open On-Chip Debugger
Info : init_target
Info : SWD DPIDR 0x6ba02477
Info : psoc6.cpu.cm4 halted due to debug-request, current mode: Thread
Info : xPSR: 0x01000000 pc: 0x00000f00 msp: 0x08047800
Info : Reading flash banks ...
Info : flash 'psoc6' found at 0x10000000
Info : flash 'psoc6' found at 0x14000000
Info : flash 'psoc6' found at 0x16000000
Info : flash 'psoc6_efuse' found at 0x90700000
Info : #0 : psoc6_main_cm4 (psoc6) at 0x10000000, size 0x00100000, buswidth 4, chipwidth 4
Info : #1 : psoc6_work_cm4 (psoc6) at 0x14000000, size 0x00008000, buswidth 4, chipwidth 4
Info : #2 : psoc6_super_cm4 (psoc6) at 0x16000000, size 0x00008000, buswidth 4, chipwidth 4
Info : #3 : psoc6_efuse_cm4 (psoc6_efuse) at 0x90700000, size 0x00000400, buswidth 1, chipwidth 1
Info : Flash banks detected
Info : cyp status: OK
Info : cyp_get_mpn
Info : ** Detected device PN: CY8C6137BZI-F34 SiliconID: E216 Revision: 23 FamilyID: 100 DIE: P
SoC6ABLE2

 

Thanks for help. Installing Cypress Programmer 4.1.0 seems that it helped me.

Best Regards

Radim

0 Likes