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

Using Bosch Sensortec API on NRF52840

Hi guys,

I'm pretty new in embedded development without using an Arduino. I tried to use the sensor APIs of BMI270 and BMP388 recently, but didn't get it to work.

The problem is how to connect the TWI and SPI read/write functions to the API.

Does anyone of you has already used one of the Bosch Sensortec APIs and could help me with an example?

Thank you

Parents
  • Hi,

    I assume you are referring to the drivers in https://github.com/BoschSensortec/?

    The drivers have an API structure where you fill the name of the functions it should call for the given operations, see for instance bmi2_dev. You need to implement the SPI/TWI function read/write the registers in you own application, and pass the reference to this function in the API structure. You also needs to initialize the SPI/TWI peripherals for it to be ready for use by the Bosch drivers.

    I do not have any specific examples showing how to use this with our SDK, but if you tell us what you have done and what is not working, we can help you resolve the issues. Note that Bosch has their own community where you can get help with the drivers.

    Best regards,
    Jørgen

Reply
  • Hi,

    I assume you are referring to the drivers in https://github.com/BoschSensortec/?

    The drivers have an API structure where you fill the name of the functions it should call for the given operations, see for instance bmi2_dev. You need to implement the SPI/TWI function read/write the registers in you own application, and pass the reference to this function in the API structure. You also needs to initialize the SPI/TWI peripherals for it to be ready for use by the Bosch drivers.

    I do not have any specific examples showing how to use this with our SDK, but if you tell us what you have done and what is not working, we can help you resolve the issues. Note that Bosch has their own community where you can get help with the drivers.

    Best regards,
    Jørgen

Children
No Data
Related