Skip to main content
MDoğr.1
Associate II
July 18, 2020
Question

I can't read chip ID with I2C

  • July 18, 2020
  • 1 reply
  • 1599 views

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

This topic has been closed for replies.

1 reply

KnarfB
Super User
July 18, 2020

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.