Erase SFlash for PSoC4

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

cross mob
Lin_Qiang
Level 4
Level 4
5 likes given First like given 50 replies posted

The chip I am using is CY8C4146LQS-S423.
Is there any tool to erase SFlash of this chip? How to use it?

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
Lin_Qiang
Level 4
Level 4
5 likes given First like given 50 replies posted

Hi Rakshith,

Thank you very much for your support.
I modified and recompiled using "Visual Studio 2022" and was able to clear SFlash successfully.
But after the SFlash is cleared successfully, it seems that the PSoC4 chip program must be rewritten to run normally.
The compiled SFlash tool, I added the attachment, it is suitable for Miniprog4.

BestRegards

View solution in original post

0 Likes
6 Replies
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi @Lin_Qiang

Can you please let me know if this thread helps - PSoC 4 Clear SFlash Program 

Thanks and Regards,
Rakshith M B
0 Likes
Lin_Qiang
Level 4
Level 4
5 likes given First like given 50 replies posted

Hi Rakshith,

thank you for your reply.
But must MiniProg3 be used? My conditions only allow me to use MiniProg4.

BestRegards

0 Likes
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi @Lin_Qiang

In that case, you will have to modify the source slightly and create your tool. Can you please try modifying the ConnectToMiniProg3() function in the Form1.cs file and let me know if that works? PPCOM does support MiniProg4 as well. So you should be able to add MiniProg4.

Thanks and Regards,
Rakshith M B
0 Likes

Hi Rakshith,

thank you for your reply.
Okay, I try to modify it, can tell me what environment this tool is compiled in.

BestRegards

0 Likes

Hi Rakshith,

Although I modified it, I didn't quite understand how to compile it. Can a modified tool be provided?
In addition, is the default value of SFlash storage 0x00?

BestRegards

0 Likes
lock attach
Attachments are accessible only for community members.
Lin_Qiang
Level 4
Level 4
5 likes given First like given 50 replies posted

Hi Rakshith,

Thank you very much for your support.
I modified and recompiled using "Visual Studio 2022" and was able to clear SFlash successfully.
But after the SFlash is cleared successfully, it seems that the PSoC4 chip program must be rewritten to run normally.
The compiled SFlash tool, I added the attachment, it is suitable for Miniprog4.

BestRegards

0 Likes