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

NRF_ERROR_INTERNAL in pm_peer_new() with GCC 9.2.0

Hello,

I'm experiencing NRF_ERROR_INTERNAL from a call to pm_peer_new(). While further investigating into this, it turned out, that the p_bonding_data parameter was checkt to be 4 bytes aligned deeper in fds.c / write_enqueue(). According to GCC, the alignment of pm_peer_data_const_t is 2 (this compiles fine):

#include <peer_manager_types.h>

static_assert(alignof(pm_peer_data_bonding_t) == 2);

Is this a problem that only occurs with GCC?

best regards,

Torsten

SDK Version is 16.0.0

Related