PlatformIO Community

Unit test doesnt compyle zephyr:nrf52_dk

Any idea whats this header file for thats missing and how I can get it?


#include <setjmp.h>
compilation terminated.
*** [.pio\build\nrf52_dk\UnityTestLib\unity.o] Error 1
============================================================================================ [FAILED] Took 5.05 seconds ============================================================================================

Test Environment Status Duration

  •   nrf52_dk       FAILED    00:00:05.049

====================================================================================== 1 failed, 0 succeeded in 00:00:05.049 ======================================================================================

Can you give a complete minimal PlatformIO project which reproduces the problem?

Hi Max, how could I send you a zipped projecy please?

Preferable as a repository in Github or a google drive upload, but really any upload method works.

ok here is the zip file:
a bit pity we cant attach it here

PlatformIO uses a unit testing framework called Unity. Unity is not compatible with the an internal C library implemented in the Zephyr framework. Instead, you can try to enable standard version of newlib C library in prj.conf file using the following config: