Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SDK File inclusion for app_error_weak.c

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

Parents Reply Children
  • 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

Related