- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Labels:
-
PSoC 4 Architecture
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
CY_SET_REG16(CYREG_PWR_BOD_KEY, 0x3A71);
CY_SET_REG32(CYREG_PWR_BOD_KEY, 0x3A71);
all attempts fail, psoc 4 is stuck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Dima,
Could you share your project with us. So that we may do some review/debug for this project?
Thanks,
Ryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.