07-20-2020 02:01 PM - edited 07-20-2020 02:05 PM
Hello everyone. I am trying to use bno055 with stm32f4 but I can't read it. I tried very hard but it doesn't return anything. I used HAL_I2C_Mem_Read(&hi2c1,IMU_ADRESS,0x00, 1, id, 1,100) function. It is very urgent. What might be the problem? How can I solve it and is there anyone who has experience with using this sensor with the stm32f4 discovery board?
PS: I think there isn't any problem with the wiring because the HAL_IsDeviceReady function returns HAL_OK.
#bno055 #i2c #stm32f4
07-20-2020 04:14 PM
Hi,
Thanks for your inquiry.
Please refer to BNO055 quick start guide app note online at https://www.bosch-sensortec.com/media/boschsensortec/downloads/application_notes_1/bst-bno055-an007.... for more information. Please make sure you have set the right I2C slave address, added two 10K Ohms pull-up resistors on I2C bus and set STM32 MCU I2C clock frequency to 100KHz, etc.
Please use a USB logic analyzer to capture the I2C transactions for debugging. If there is still a problem, then please contact STM32 FAE for support.
Thanks.