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

PSoC™ 4 Forum Discussions

D_Sd_3235936
Level 4
Level 4
25 sign-ins 50 questions asked 25 replies posted

I am using Psoc 4 with BLE (4200).

It resets unexpectedly and on boot show reset cause :  0

0 is none of the below: it is not WDT(1) , it is not SYS (8) , it is not SW (16)

#define CY_SYS_RESET_WDT_SHIFT          (0u)

#define CY_SYS_RESET_PROTFAULT_SHIFT    (3u)

#define CY_SYS_RESET_SW_SHIFT           (4u)

#define CY_SYS_RESET_WDT                ((uint32)1u << CY_SYS_RESET_WDT_SHIFT      )

#define CY_SYS_RESET_PROTFAULT          ((uint32)1u << CY_SYS_RESET_PROTFAULT_SHIFT)

#define CY_SYS_RESET_SW                 ((uint32)1u << CY_SYS_RESET_SW_SHIFT       )

can you tell me please what can it be?

0 Likes
5 Replies
Anonymous
Not applicable

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)

0 Likes

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.

  

Default: 0x0000

what is key?

is there an example for this steps?

Thanks.

0 Likes

CY_SET_REG16(CYREG_PWR_BOD_KEY, 0x3A71);

CY_SET_REG32(CYREG_PWR_BOD_KEY, 0x3A71);

all attempts fail, psoc 4 is stuck.

0 Likes

Hi Dima,

Could you share your project with us. So that we may do some review/debug for this project?

Thanks,

Ryan

0 Likes
Anonymous
Not applicable

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.

0 Likes