Have you tried PSoC Programmer?
Although I'm not sure if this tool can save your state, I think that it's worth trying.
You can download it from following URL. I recommend you to use the newest version.
After you install the program, start it with the board connected.
(I'm using Cypress's FM0+ S6E1C-Series Starter Kit, connected to my PC via USB-cable)
(1) AutoDetection - Off
(2) Device Family - S6E1Cxx
(3) Device (in my case) S6E1C32D0AGV20000
(4) From menu File > File Load...
Note: May be you can just select "Erase All Flash" at this point.
(5) Select your hex file with File Open Dialog
(6) Then from menu File > Program
(7) Program succeeded