An issue in creating a read function for the BMI160 (Nordic nrf52832)
I've been developing with the nordic nrf52832 with the bmi160 sensor. I've been encountering issues when calling the self-defined function. I'm using Segger embedded studio.
Is there any hints on how to configure this function? Or is there any existing samples that I can study on?
Re: An issue in creating a read function for the BMI160 (Nordic nrf52832)
There is not enough information here to understand what else you may be doing wrong, but from what I can understand,
- the dev_id parameter of the BMI160 device struct should contain the I2C address of the BMI160 depending on it's connections to the NRF52832, either 0x68 or 0x69.
- the reg_addr should not be overwritten with 0xd8.
If you could share how the hardware is connected, and more code about how the NRF52832's peripherals are configured in software, I would be able to guide you here.