2020-07-18 03:35 AM
Hi, I am using bno055 with stm32f4 discovery board. I am trying to read chip ıd. HAL_IsDeviceReady function return HAL_OK but I can't read chip ID. Why is that? I tried to write my code or using library. Here is the code and stmstudio's return. (In cubemx I activated I2C1 PB9 PB8 pins)
2020-07-18 07:18 AM
Try the HAL_I2C_Mem_Read and HAL_I2C_Mem_Write functions for accessing the chip. HAL_I2C_Mem_Read is implemented with an I2C re-start after transmit, but your implementation sends an I2C stop.