-
Does zephyr provide support for brown out detection. are there any apis to enable and disable the same? The only thing I am able to find close to BOR is this. Can someone please help me how to enable and disable it for stm32h7. Or do I need to use HAL or something else? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Enable I'm not STM expart but here is the driver: |
Beta Was this translation helpful? Give feedback.
-
Yes, you have hwinfo_get_reset_cause() which gives you the reset cause |
Beta Was this translation helpful? Give feedback.
-
Thank for clarification @MaazSk |
Beta Was this translation helpful? Give feedback.
Thank for clarification @MaazSk
There is no zephyr API to change the option bytes in the stm32 flash as this is very specific to stm32 devices.
However there is a way to manipulate the Option Bytes through stm32Cube HAL driver layer. This is done as example, in the PR #79985 : define the OBInit.USERConfig and program with HAL_FLASHEx_OBProgram