This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

No more sensor data on enabling libc

Hi,

I'm just starting out with zephyr on a nrf52dk (nrf52832) and I'm in need of performing some math functions on the data output on a mpu6050.

The MPU6050 is spitting out data fine with the sample code, but when I include math.h it doesnt find the functions atan or sqrt. I found online to include newlib (CONFIG_NEWLIB_LIBC) in the config file, but as soon as I do that and reload the project in SEGGER there is no longer any data coming out of the mpu6050.

Can somebody guide me in the right direction on how to solve this? Am I missing some configurations settings? 

thanks in advance

Floor

Related