Miss shift i2c slave address in i2c_sifive #25713
Labels
area: I2C
area: RISCV
RISCV Architecture (32-bit & 64-bit)
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Stale
Describe the bug
I try to run an example that connect hifive_revb with adxl345 sensor with renode simulate platform. I create overlay file for
hifive_revb
boardhifive1_revb.overlay:
Here is my renode platform description:
When start renode simulation, zephyr console show these error:
And here is the log from renode console:
As my understand that zephyr try to communicate with i2c slave at address 0x29 but it did not register on renode system.
After investigate I found that i2c_sifive driver does not left shift slave add 1 bit.
zephyr/drivers/i2c/i2c_sifive.c
Lines 88 to 95 in 48af970
I think the correct way is:
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: