Those bits are cleared by hardware for: XRES, POR, or a detected brown-out. Could any of those have happened? (Brown-out being the most likely)
I am trying to rad the PWR_BDY_KEY:
Bits Name Description
15 : 0 KEY16 To detect brown-outs firmware should do this on boot:
1. Set key= KEY16 ??
2. Set KEY16= 0x3A71
3. If key==0x3A71 this was a brown-out event.
what is key?
is there an example for this steps?
all attempts fail, psoc 4 is stuck.
Sorry, I have no idea
If no one on the forums can help you figure it out, try creating a case with the Cypress support engineers.
Could you share your project with us. So that we may do some review/debug for this project?