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

How to find the file pointed by p_file_name in app_error_handler?

I'm running app_error_handler with

SEGGER_RTT_printf(0,"\nerr_code %d on line %d file %d",error_code,line_num, p_file_name);

to print out what went wrong and where. Now, I find this an amazing tool in debugging issues with SoftDevice, but I have no clue how to figure out which file the pointer points to.

I know that you can find it out using Keil's debugger, but I'd rather not delve into it and it'd be much harder to replicate the issues while using debugger than it is actually running the device I'm developing and using it as intended.

So, where would I go about finding what file the pointer points to?

Related