Hello I have one simple question. I would like to use Banana PI like master I2C device which communicates with ATmega328. If I use bcm2835 library, which works at Raspberry PI well, it does not work for Banana. |
Banana sends register address to slave bcm2835_i2c_write(register, 1)
Banana waits for 10ms
Banana reads from slave 3 bytes bcm2835_i2c_read(buf,3)
After I see communication data at logical analyzer, it seems that Banana PI makes not one transfer with 3 byte reads, but three one byte reads. Example: bytes to read (0x20, 0x30, 0x40) is read like (0x20); (0x20); (0x20) all times it reads only first byte, stop communication and starts from begining...
What I am doing wrong?