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.
Can you please tell me what to do to use the APIs.
What really would help, is an example with the NRF52840, so I can see how it works.
I think the biggest issue is the link to the SPI and I2C operations.
Thanks for your inquiry.
Sorry that we don't have sample codes for NRF52840 MCU for BMI270 and BMP388. However, the API source codes on the Github for BMI270 and BMP388 are generic C code that can be integrated into different MCUs. You only need to define register read function using I2C/SPI, register write function using I2C/SPI and delay function in your NRF52840. Then you should be able to use the API source codes of BMI270 and BMP388.
Please see the attached BMI270 Arduino sample code using SPI interface.