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

What .h file to include in order to use app_error_fault_handler?

Hello, when migrating a project from nrf51 to S140 nrf52840, I got an

"Error: L6218E: Undefined symbol app_error_fault_handler (referred from softdevice_handler.o)."

error.

The "app_error_fault_handler" doesn't appear to be an "on the record API", by that I mean I can't find it anywhere in the S140 API documentation. Yet there is one defined in

pack130 root directory\components\libraries\util\app_error_weak.h

I'm not sure if it's the right file to include and add to the compilation chain. Shouldn't it be a macro defined somewhere, with a non-specific error-handling function inside? At least that's what it was like in nrf51.

What should I do now?

Related