i2c chbios Pixhwak

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
Souhaiel
Posts: 1
Joined: Fri Oct 09, 2020 4:30 pm

i2c chbios Pixhwak

Postby Souhaiel » Sun Oct 11, 2020 5:04 pm

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 ?

User avatar
Giovanni
Site Admin
Posts: 13063
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 757 times
Been thanked: 636 times
Contact:

Re: i2c chbios Pixhwak

Postby Giovanni » Sun Oct 11, 2020 6:39 pm

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

User avatar
Edoardo1982
Posts: 4
Joined: Thu Aug 03, 2017 8:39 am
Been thanked: 3 times

Re: i2c chbios Pixhwak

Postby Edoardo1982 » Tue Oct 13, 2020 4:49 pm

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


Return to “ChibiOS/HAL”

Who is online

Users browsing this forum: No registered users and 2 guests