Hi,
i have communication problem with slave device using fallback (bit bang) i2c driver. After some investigations, i identified problem in i2c_lld_master_transmit_timeout function - if rxbytes != 0 master after restart condition does not send slave address with read flag. Using corrected code in attachment, problem was fixed
Chibios version - 17.6.0,
GCC version - 6.3 2017q1,
Custom board,
I2C master - STM32F030x6
I2C slave - MLX90614 with PEC using
I2C fallback driver bug Topic is solved
I2C fallback driver bug Topic is solved
- Attachments
-
- hal_i2c_lld.c.zip
- (2.69 KiB) Downloaded 138 times
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
Re: I2C fallback driver bug
Hi,
Thank you, that driver has never been tested, I had to switch to other things, so I appreciate any feedback.
Fixed as bug #900.
Giovanni
Thank you, that driver has never been tested, I had to switch to other things, so I appreciate any feedback.
Fixed as bug #900.
Giovanni
Who is online
Users browsing this forum: No registered users and 8 guests