Can't DAP_Acquire success after PSoC4_WriteProtection

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

cross mob
chfe_4430606
Level 1
Level 1

Dear all,

I can't connect my chip by DAP_Acquire command after I set the fully protect for some flash row

Commands like this:

OpenPort MiniProg3/123456789ABC .

SetAcquireMode "Reset"

SetProtocol 8

SetProtocolClock 16

SetProtocolConnector 0

SetPowerVoltage 3.3

DAP_Acquire

PSoC4_WriteProtection 2 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255  255  255  255  0 0 0 0

DAP_ReleaseChip

ClosePort

After that, I try to reconnect with Chip but got some error message:

OpenPort MiniProg3/123456789ABC .

SetAcquireMode "Reset"

SetProtocol 8

SetProtocolClock 16

SetProtocolConnector 0

SetPowerVoltage 3.3

DAP_Acquire

E

PSoC device is not acquired! Check connection of the chip to the programmer

DAP_Acquire returned 80004005

80004005 OK

But after I replugging the MiniProg3 then DAP_Acquire will succeed.

Is it possible to let me no need to replugging the MiniProg3 after open fully protect?

Thank you!

Best Regards,

Chihao.

0 Likes
1 Solution
chfe_4430606
Level 1
Level 1

I already sovle my problem...

I entered one less command in above commands: HEX_ReadFile "fw.hex"

Just removed it, the second connected with chip will be success!

View solution in original post

0 Likes
2 Replies
chfe_4430606
Level 1
Level 1

Sorry, my chip model is CY8C4147AZI-S445.

0 Likes
chfe_4430606
Level 1
Level 1

I already sovle my problem...

I entered one less command in above commands: HEX_ReadFile "fw.hex"

Just removed it, the second connected with chip will be success!

0 Likes