PlatformIO Community

Unit test doesnt compyle zephyr:nrf52_dk

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

Thanks!

#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: https://drive.google.com/open?id=1oMN02EEyFfnJjHbqpi2bpnik1ptN2Use
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:

CONFIG_NEWLIB_LIBC=y