This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to light an LED to notify when a serious error has occurred?

I'm digging my way through the examples, SDK code, etc, and I'm curious if it's possible to light an LED if the nRF52832 is reaching an error status. This is mainly so I can quickly realize something went wrong and I don't waste time waiting for an event to happen.

From what I'm seeing, an error will work its way down to app_error_fault_handler, where the final log flush, etc, happens. Is it possible to reliably set a pin from here so that an LED can light up? Something such as adding: nrf_gpio_cfg_output( LED_ERROR ); nrf_gpio_pin_clear( LED_ERROR );

These methods appear under the "GPIO abstraction", so I'm wondering there is a more sure-fire (or brute-force) way to set that pin when my little nRF52832 is about to shut down.

Thanks!

Parents Reply Children
No Data
Related