I am using the nRF52840-dongle. I tried to create and application with the i2c library for bme280 sensor. When I run the following I get the error in linking step that there is undefined reference for i2c_read_reg and i2c_write_reg.
make BOARD=nrf52840dongle -C examples/myapplication
RIOT/examples/myapplication/bin/nrf52840dongle/bmx280/bmx280.o: in function
_read_reg': /RIOT/drivers/bmx280/bmx280.c:102: undefined reference toi2c_read_reg’
I have checked weather i2c.h is included in the application via bmx280.h—>it is included following the makefiles i2c defination. Also the sources should be compilled for i2c.c via some of the
"make" -C /RIOT/drivers/periph_common
What exactly causes such error?