01-13-2021 01:33 PM
Hi,
i am trying to read the trim values of the magnetometer. It is not described in the datasheet.
As far as I've read from the bmi160 driver firmware it has to be done via the internal bus. But I cannot not use the driver implementation since I am using nordic SPI transaction manager which does not allow the usage of the driver. Therefore, I would like to know the exact line of commands to write and the expected responses from the sensor.
Could you please show me where to find these informations.
Kind regards,
CW
Solved! Go to Solution.
01-14-2021 07:28 AM
Hi Sir:
Currently API code only is available. Please the following link to downloard BMI160+BMM150 drivers.
If you can't use it and want to write and read registers directly, recommend you to achieve your feature with API code first, and then read out all registers to re-write them or according to API code to write the corresponding registers one by one.
01-14-2021 10:24 AM
Sorry again, but this is not possible with the API code. Because the SPI master runs asynchronously. Is it not possible to get an exact sequence of bytes to send and receive to get the trim parameters?
kind regards,
CW
01-15-2021 02:39 AM - edited 01-15-2021 02:50 AM
Hi Sir:
Did you get the sensor data of BMI160? Did you only want to get trim values of BMM150?
If you want how to get trim registers, you can know these with BMM150 API code.
If you want to know how to write and read BMX160 registers directly, currently the related reference code is not official and offered.
Recommend you to achieve it according to API code or contact the local FAE to get more support.
01-15-2021 08:20 AM
Okay, how can I contact the local FAE?