I'm experiencing a new and very odd behaviour on compiling for the nRF52832dk that doesn't occur on the nRF5340dk.
It's happening on the final linking phase of an app build. The app uses C++, but as I say the build works fine on nRF5340DK:-
This happens building against NCS 1.4.0 and 1.5.0 and in Windows 10 and Ubuntu for building, and affects nRF52833dk, nRF52840dk and nRF52832dk builds.
I also had to edit nrf/subsys/bluetooth/gatt_dm.c to add #include <kernel.h> to get k_malloc. Very odd.
A separate app that doesn't use gatt_dm doesn't have this issue on any of the above boards or systems.
Any ideas gratefully received. I can't find any similar issues online.