I can't read chip ID with I2C
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-07-18 3: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)
Labels:
- Labels:
-
I2C
-
STM32F4 Series
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-07-18 7: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.
