cancel
Showing results for 
Search instead for 
Did you mean: 

I can't read chip ID with I2C

MDoğr.1
Associate II

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)0693W000001t9JBQAY.png0693W000001t9J6QAI.png0693W000001t9IwQAI.png

1 REPLY 1
KnarfB
Principal III

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.