The file nRF5_SDK_14.2.0_17b948a/components/libraries/util/app_error_weak.c
requires the following modification to correctly compile:
Add:
#include "app_util_platform.h"
Thanks,
-- Nat
The file nRF5_SDK_14.2.0_17b948a/components/libraries/util/app_error_weak.c
requires the following modification to correctly compile:
Add:
#include "app_util_platform.h"
Thanks,
-- Nat
Hi,
That is strange. I use the SDK daily, and have never had the need to include do that. I don't think I have seen other similar reports either. Can you please explain what happens if you don't include it? What does the compiler say? Are you sure you never changed anything to app_error_weak.c?
OK - I see what happened: I'm using a different 'logger' and have replaced nrf_log.h with my own version.
The SDK code: nrf_log.h includes sdk_common.h, which includes app_util.h which includes app_util_platform.h.
And app_error_weak.c gets the header included via nrf_log.h.
So, you're correct. Not an SDK problem.
I'll look a little harder next time ...
Thanks,
-- Nat