Page 1 of 1

i2c chbios Pixhwak

Posted: Sun Oct 11, 2020 5:04 pm
by Souhaiel
Good day all Got myself a TFmini and have been working to get this going on PH4-mini with I2C bus . the transfer should be in this form :
start | addr | write | ack | repeat start | addr | read | ack |stop . so without stop bit in the middle . i try to do the transfer with i2cMastertanssmissionTimeout() . but did not worked i dont know why. the problem is i should send { 0x01 , 0x02 , 0x07 } and get the answer in the same transfer without a stop bit in the middle . any suggstion ?

Re: i2c chbios Pixhwak

Posted: Sun Oct 11, 2020 6:39 pm
by Giovanni
Hi,

Does the slave acknowledge the transmitted bytes?

If there is no acknowledge, make sure you pass the 7 bits of address aligned to right (without RW bit).

Giovanni

Re: i2c chbios Pixhwak

Posted: Tue Oct 13, 2020 4:49 pm
by Edoardo1982
Hi,
I2C HAL supports combined transaction on I2C.
PH4-mini uses I2Cv2, i tested it on a STM32F0 and everything works fine.

I2C logic analizer.png


Can you give more informations?

Edoardo