Programming PSOC6 - CY8CPROTO-064S1-SB

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

cross mob
lock attach
Attachments are accessible only for community members.
aditi1prakash
Level 1
Level 1
10 sign-ins 5 replies posted 5 sign-ins

Hello All,

I am trying to program a PSOC6 MCU board (CY8CPROTO-064S1-SB). I am able to successfully compile the software and start the flashing process.

However, the board shuts down after that. The terminal prints a message that there is an error during bootloader flow (image attached).

I get a warning message during the flash process that the board is pre-production version and the current software is incompatible (image attached).

Can someone please help me with this problem? Is there any work-around that I can use to successfully program the board?

ModusToolbox version - 2.3.1

Cysecuretools version - 3.1.0

I got a warning message to upgrade the firmware version during the flashing process, which I did from 1.27.707 to 2.21.1005. 

/*************************CONSOLE LOG************************************/

Open On-Chip Debugger 0.10.0+dev-4.2.0.1430 (2021-03-05-08:22)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
** Main Flash size limited to 0xD0000 bytes
adapter speed: 2000 kHz
adapter srst delay: 0
adapter srst pulse_width: 5
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
** Using POWERUP_DELAY: 5000 ms
** Using TARGET_AP: cm4_ap
** Using ACQUIRE_TIMEOUT: 15000 ms
** Auto-acquire enabled, use "set ENABLE_ACQUIRE 0" to disable
Info : Using CMSIS loader 'CY8C6xxx_SMIF_S25Hx512T' for bank 'psoc64_smif_cm4' (footprint 11612 bytes)
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
Warn : SFlash programming allowed for regions: USER, TOC, KEY
Info : CMSIS-DAP: SWD 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.21.1005
Info : KitProg3: Pipelined transfers enabled
Info : VTarget = 3.315 V
Info : kitprog3: acquiring the device (mode: reset)...
Info : clock speed 2000 kHz
Info : SWD DPIDR 0x6ba02477
***************************************
** Use overriden Main Flash size, kb: 832
** Silicon: 0xE262, Family: 0x100, Rev.: 0x24 (B3)
** Detected Device: CYB06447BZI-D54
** Flash Boot version: 4.0.0.9
Warn: Pre-production version of device is detected which is incompatible with this software
Warn: Please contact Cypress for new production parts
***************************************
Info : starting gdb server for psoc64.cpu.cm4 on 3333
Info : Listening on port 3333 for gdb connections
Info : Deferring arp_examine of psoc64.cpu.cm4
Info : Use arp_examine command to examine it manually!
Info : kitprog3: acquiring the device (mode: reset)...
Info : Waiting up to 15.0 sec for the bootloader to open AP #2...
Info : Waiting up to 15.0 sec for the handshake from the target...
Warn : No handshake from the target, continuing anyway
Info : psoc64.cpu.cm4: external reset detected
psoc64.cpu.cm4 halted due to debug-request, current mode: Thread
xPSR: 0x61000000 pc: 0x1600400c msp: 00000000
** Programming Started **
auto erase enabled
Info : Padding image section 0 at 0x1001ba6e with 402 bytes (bank write end alignment)

[ 6%] [# ] [ Erasing ]
[ 7%] [## ] [ Erasing ]
[ 10%] [### ] [ Erasing ]
[ 13%] [#### ] [ Erasing ]
[ 16%] [##### ] [ Erasing ]
[ 19%] [###### ] [ Erasing ]
[ 22%] [####### ] [ Erasing ]
[ 25%] [######## ] [ Erasing ]
[ 29%] [######### ] [ Erasing ]
[ 32%] [########## ] [ Erasing ]
[ 35%] [########### ] [ Erasing ]
[ 38%] [############ ] [ Erasing ]
[ 41%] [############# ] [ Erasing ]
[ 44%] [############## ] [ Erasing ]
[ 47%] [############### ] [ Erasing ]
[ 50%] [################ ] [ Erasing ]
[ 54%] [################# ] [ Erasing ]
[ 57%] [################## ] [ Erasing ]
[ 60%] [################### ] [ Erasing ]
[ 63%] [#################### ] [ Erasing ]
[ 66%] [##################### ] [ Erasing ]
[ 69%] [###################### ] [ Erasing ]
[ 72%] [####################### ] [ Erasing ]
[ 75%] [######################## ] [ Erasing ]
[ 79%] [######################### ] [ Erasing ]
[ 82%] [########################## ] [ Erasing ]
[ 85%] [########################### ] [ Erasing ]
[ 88%] [############################ ] [ Erasing ]
[ 91%] [############################# ] [ Erasing ]
[ 94%] [############################## ] [ Erasing ]
[ 97%] [############################### ] [ Erasing ]
[100%] [################################] [ Erasing ]

[ 26%] [######## ] [ Programming ]
[ 32%] [########## ] [ Programming ]
[ 45%] [############## ] [ Programming ]
[ 53%] [################ ] [ Programming ]
[ 72%] [####################### ] [ Programming ]
[ 79%] [######################### ] [ Programming ]
[100%] [################################] [ Programming ]
wrote 113664 bytes from file C:/../ModusPatch1/Hello_World/build/CY8CPROTO-064S1-SB/Debug/mtb-example-psoc6-hello-world.hex in 6.364500s (17.440 KiB/s)
** Programming Finished **
** Program operation completed successfully **
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
Info : Deferring arp_examine of psoc64.cpu.cm4
Info : Use arp_examine command to examine it manually!
Info : Waiting up to 15.0 sec for the bootloader to open AP #2...
Warn : psoc64.cpu.cm4: external resume detected
shutdown command invoked
Info : psoc64.dap: powering down debug domain...

/**********************************************************************************/

(Link to earlier issue - Solved: Re: Open OCD SWD/JTAG error for CY8CPROTO-064S1-SB... - Cypress Developer Community)

@Rakshith 

Sincerely,

Aditi Prakash

0 Likes
1 Solution

Hello @aditi1prakash ,

The issue is because of pre-production silicon being used. We recommend you to replace it with a production silicon by contacting your distributor / FAE. Let me know if the issue persists after this swap. 

Regards,
Dheeraj

View solution in original post

0 Likes
5 Replies
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Hello @aditi1prakash ,

Yes, this is failure of pre-production parts. They do not support the "swap" type bootloader. You need to get a production kit. 

You could continue to use this kit by downgrading cysecuretools to version 2.1.0. 

Hope this helps 🙂

Regards,
Dheeraj

0 Likes
lock attach
Attachments are accessible only for community members.
aditi1prakash
Level 1
Level 1
10 sign-ins 5 replies posted 5 sign-ins

Thank you @DheerajK_81,

I tried to flash the software using mbedOS with older cysecuretools version (2.1.0). That again has an exception in execution.

I have attached the image for the same. Is there an issue with the hardware of the board itself?

Also, I could observe that with the switch mode button I can only switch between two modes - DAPLink and Bulk mode but not the HID mode. However, I can switch between all 4 modes using the fw-loader terminal.

Regards,

Aditi Prakash

0 Likes

Hello @aditi1prakash ,

Can you let me know the version of pyocd you are using? As per the cysecuretools 2.1.0 dependencies I see pyocd version 0.27.3 mentioned. 

Please update pyocd to this version using the following command:

>> pip install pyocd==0.27.3

Let me know if it works after this.

Regards,
Dheeraj

0 Likes
lock attach
Attachments are accessible only for community members.

Hi @DheerajK_81 ,

I apologize for the delayed response.

The pyocd version being used by Modus toolbox is 0.27.3.

Regards, 

Aditi Prakash

0 Likes

Hello @aditi1prakash ,

The issue is because of pre-production silicon being used. We recommend you to replace it with a production silicon by contacting your distributor / FAE. Let me know if the issue persists after this swap. 

Regards,
Dheeraj

0 Likes