Cannot reprogram CY8CPROTO-062-4343W

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.
KoMa_4822621
Level 1
Level 1

I have successfully programmed and unprogrammed PSoC demos on the CY8CPROTO-062-4343W boards but once I program an aws_demo the board is bricked. The board runs the firmware but cannot be reprogrammed. I have tried this on 3 different boards with the same results. This thread discussed the same problem without providing a solution. BTW I have updated the adapter firmware tried the Cypress programmer as well.

Any help will be appreciated since I have had to order 3 new boards.

Log of errors

Open On-Chip Debugger 0.10.0+dev-4.1.0.1058 (2020-08-11-03:45)

Licensed under GNU GPL v2

For bug reports, read

  http://openocd.org/doc/doxygen/bugs.html

Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.

adapter speed: 2000 kHz

adapter srst delay: 25

adapter srst pulse_width: 25

** Auto-acquire enabled, use "set ENABLE_ACQUIRE 0" to disable

cortex_m reset_config sysresetreq

cortex_m reset_config sysresetreq

Info : Using CMSIS loader 'CY8C6xxA_SMIF' for bank 'psoc6_smif0_cm0' (footprint 14672 bytes)

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 = 1 TDO = 1 nTRST = 0 nRESET = 1

Info : CMSIS-DAP: Interface ready

Info : KitProg3: FW version: 2.10.878

Info : KitProg3: Pipelined transfers enabled

Info : VTarget = 3.325 V

Info : kitprog3: acquiring the device...

Error: kitprog3: failed to acquire the device

Info : clock speed 2000 kHz

Info : SWD DPIDR 0x6ba02477

Info : SWD DPIDR 0x6ba02477

Error: Failed to read memory at 0xe000ed00

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

Info : SWD DPIDR 0x6ba02477

Info : SWD DPIDR 0x6ba02477

Examination failed, GDB will be halted. Polling again in 100ms

Error: Failed to read memory at 0xe000ed00

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

Info : SWD DPIDR 0x6ba02477

Info : SWD DPIDR 0x6ba02477

Error: Failed to read memory at 0xe000ed00

Examination failed, GDB will be halted. Polling again in 300ms

Info : starting gdb server for psoc6.cpu.cm0 on 3333

Info : Listening on port 3333 for gdb connections

Info : starting gdb server for psoc6.cpu.cm4 on 3334

Info : Listening on port 3334 for gdb connections

***************************************

Info : SWD DPIDR 0x6ba02477

** Device is not present in the UDD

Error: Failed to read memory at 0x16000000

Error: mem2array: Read @ 0x16000000, w=4, cnt=1, failed

Info : SWD DPIDR 0x6ba02477

Error: Failed to read memory at 0x16002004

Error: mem2array: Read @ 0x16002004, w=4, cnt=1, failed

Error: Invalid FlashBoot: High version word of Flash Boot is zero

Info : SWD DPIDR 0x6ba02477

Error: Failed to read memory at 0x402020c4

Error: mem2array: Read @ 0x402020c4, w=4, cnt=1, failed

Error executing event examine-end on target psoc6.cpu.cm0:

/Applications/ModusToolbox/tools_2.2/openocd/bin/../scripts/mem_helper.tcl:6: Error:

in procedure 'program'

in procedure 'ocd_process_reset'

in procedure 'ocd_process_reset_inner' called at file "embedded:startup.tcl", line 279

in procedure 'cy_get_set_device_param' called at file "/Applications/ModusToolbox/tools_2.2/openocd/bin/../scripts/target/mxs40/psoc6_common.cfg", line 129

in procedure 'show_chip_protection' called at file "/Applications/ModusToolbox/tools_2.2/openocd/bin/../scripts/target/mxs40/cy_get_set_device_param.cfg", line 164

in procedure 'mrw' called at file "/Applications/ModusToolbox/tools_2.2/openocd/bin/../scripts/target/mxs40/cy_get_set_device_param.cfg", line 118

at file "/Applications/ModusToolbox/tools_2.2/openocd/bin/../scripts/mem_helper.tcl", line 6

Info : SWD DPIDR 0x6ba02477

Error: Failed to read memory at 0xe000ed00

Info : SWD DPIDR 0x6ba02477

Info : SWD DPIDR 0x6ba02477

Info : AP write error, reset will not halt

Info : SWD DPIDR 0x6ba02477

Info : SWD DPIDR 0x6ba02477

in procedure 'program'

Info : SWD DPIDR 0x6ba02477

Polling target psoc6.cpu.cm4 failed, trying to reexamine

Info : SWD DPIDR 0x6ba02477

Info : SWD DPIDR 0x6ba02477

Error: Failed to read memory at 0xe000ed00

Examination failed, GDB will be halted. Polling again in 100ms

** Program operation failed **

srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst

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

Info : SWD DPIDR 0x6ba02477

Info : SWD DPIDR 0x6ba02477

Error: Failed to read memory at 0xe000ed00

Examination failed, GDB will be halted. Polling again in 700ms

***************************************

Info : SWD DPIDR 0x6ba02477

** Device is not present in the UDD

Error: Failed to read memory at 0x16000000

Error: mem2array: Read @ 0x16000000, w=4, cnt=1, failed

Info : SWD DPIDR 0x6ba02477

Error: Failed to read memory at 0x16002004

Error: mem2array: Read @ 0x16002004, w=4, cnt=1, failed

Error: Invalid FlashBoot: High version word of Flash Boot is zero

Info : SWD DPIDR 0x6ba02477

Error: Failed to read memory at 0x402020c4

Error: mem2array: Read @ 0x402020c4, w=4, cnt=1, failed

Error executing event examine-end on target psoc6.cpu.cm0:

/Applications/ModusToolbox/tools_2.2/openocd/bin/../scripts/mem_helper.tcl:6: Error:

in procedure 'ocd_process_reset'

in procedure 'ocd_process_reset_inner' called at file "embedded:startup.tcl", line 279

in procedure 'cy_get_set_device_param' called at file "/Applications/ModusToolbox/tools_2.2/openocd/bin/../scripts/target/mxs40/psoc6_common.cfg", line 129

in procedure 'show_chip_protection' called at file "/Applications/ModusToolbox/tools_2.2/openocd/bin/../scripts/target/mxs40/cy_get_set_device_param.cfg", line 164

in procedure 'mrw' called at file "/Applications/ModusToolbox/tools_2.2/openocd/bin/../scripts/target/mxs40/cy_get_set_device_param.cfg", line 118

at file "/Applications/ModusToolbox/tools_2.2/openocd/bin/../scripts/mem_helper.tcl", line 6

Info : SWD DPIDR 0x6ba02477

Info : SWD DPIDR 0x6ba02477

Info : SWD DPIDR 0x6ba02477

Info : SWD DPIDR 0x6ba02477

Error: DP initialisation failed

Info : psoc6.dap: powering down debug domain...

Warn : Failed to power down Debug Domains

0 Likes
1 Solution

Hi Kobus,

We confirmed that the amazon-freertos 201910-MTBAFR1951 is setting some internal bits in the SFlash incorrectly, causing the issue you observed.

The newest release, amazon-freertos 202007-MTBAFR41 fixed this issue.

Here is the list of releases:

Tags · cypresssemiconductorco/amazon-freertos · GitHub

We are still working on a method to recover the boards flashed with the old version. If we find a way to do so, we will post here.

View solution in original post

0 Likes
27 Replies