cancel
Showing results for 
Search instead for 
Did you mean: 

I2C connection is not established to BNO080 dev board

AR.7
Associate II

I am trying to run the demo code provided by for nucleo 411RE to BNO080. I am running it in the STM32CubeIDE , but the code was written for IAR IDE.....

I tried running that code after adding necessary file but when I try

ret = HAL_I2C_IsDeviceReady(&hi2c1,0x4A<<1, 1, 100);

the ret value is always 1. i.e the connection is not established .

SW2-0

SW4-0

SW6-0

I have set all the values to 0 for i2c communication.

Suggest me some idea?

1 REPLY 1
TDK
Guru

> Suggest me some idea?

Verify slave address is correct (default is 0x4B). Verify pins are being initialized in the correct AF mode. Verify pins on the board are available and exposed at the locations you think they are in the schematic or user manual. Verify external pullups on SDA/SCL are present. Verify target chip has power. Get a logic analyzer on the pins and see what's happening.

If you feel a post has answered your question, please click "Accept as Solution".