Debugger failing to launch "error erasing flash with vFlashErase packet"

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

cross mob
CoCo_1816446
Level 4
Level 4
25 replies posted 10 replies posted 5 replies posted

I am using the CY8CKIT-062-WiFi-BT kit and WICED studio 6.2.

I am trying to debug the Scan snip. My make target is "snip.scan-CY8CKIT_062-debug download_apps download".

The board is in CMSIS-DAP mode.

However when I run the windows debug I get the following message.

pastedImage_1.png

I am just starting to learn WICED so bear with me if this is a noob question.

0 Likes
1 Solution

1. In the Debug configuration add the following commands in Halt parameter in Startup tab

monitor targets psoc6.cpu.cm4

monitor psoc6 reset_halt sysresetreq

monitor sleep 500

2. Untick the Load image

3. Go to Runtime Options

Tick the Set Breakpoint at: application_start

Tick the Resume tab

Create a debug make target and launch the debugger now. Attached is the screenshot of debug configuration working in SDK 6.2.1

pastedImage_0.png

View solution in original post

6 Replies
RaktimR_11
Moderator
Moderator
Moderator
500 replies posted 250 replies posted 100 replies posted

Have you set-up the debugger as mentioned in Re: Debugging the BCM943362WCD4_EVB ?

Yes I completed those steps but the error persists.

0 Likes

I have been able to reproduce the issue and we are internally tracking the same. I will update the thread once the issue is resolved.

lock attach
Attachments are accessible only for community members.

I have just come across the same error when trying to debug the uguitest2 app on the CY8CKIT_062. I followed the instructions in "Debugging the BCM943362WCD4_EVB". My make target is "ww101.04.07_uguitest2-CY8CKIT_062-debug download. After than, I run 433xx_Wi-Fi_Debug_Windows. The error says:

Error in final launch sequence

Failed to execute MI command:

load C:\\Users\\john\\Documents\\WICED-Studio-6.2\\43xxx_Wi-Fi\\build\\eclipse_debug\\last_built.elf

Error message from debugger back end:

Error erasing flash with vFlashErase packet

Error erasing flash with vFlashErase packet

0 Likes

1. In the Debug configuration add the following commands in Halt parameter in Startup tab

monitor targets psoc6.cpu.cm4

monitor psoc6 reset_halt sysresetreq

monitor sleep 500

2. Untick the Load image

3. Go to Runtime Options

Tick the Set Breakpoint at: application_start

Tick the Resume tab

Create a debug make target and launch the debugger now. Attached is the screenshot of debug configuration working in SDK 6.2.1

pastedImage_0.png

Had to clean and rebuild target and then RaktimR_11​ solution worked like a champ!

0 Likes