Hi, it's probably a very dumb question, but i don't seem to find any details about it. In nrf52 SDK documentation, in Error Module section it says
The behavior of the error handler differs depending on whether the DEBUG flag is set: If the DEBUG flag is not set: When app_error_handler is invoked, the MCU is reset. If the DEBUG flag is set: When app_error_handler is invoked, the function parameters (error code, line number, and > > file name) are copied to global memory, interrupts are disabled, and the application enters an > infinite loop.
So how do i set the DEBUG flag ? Where do i find it ? is it set automatically when i use debug function ?
I'm programming in Keil v5, the code builds fine but i need to troubleshoot it.
Thanks !