Page 1 of 1

Repeated Start on I2C?

Posted: Mon Sep 15, 2014 6:57 am
by nikhil
Hello,

I am trying to work with MPL3115A2 (https://www.sparkfun.com/products/11084) barometric sensor with STM32F4 and Chibios 2.6.5
As per the datasheet this sensor requires repeated start I2C. I would like to know if this is supported by chibios. If not is there any way I can work around this to solve the issue?

--
Nikhil

Re: Repeated Start on I2C?

Posted: Mon Sep 15, 2014 7:54 am
by Giovanni
Hi,

As far I know this dual address mode is not supported by the driver. You may try some I2C software implementation, it is not an application that requires high performance of the bus.

Giovanni

Re: Repeated Start on I2C?

Posted: Tue Sep 16, 2014 10:06 am
by alan5
I interfaced this sensor to a STM32L1 some time ago and don't recall any issues.
The code here might be of some help to you: https://github.com/alanbarr/ChibiOS_Sensors/tree/master/MPL3115A2

Re: Repeated Start on I2C?

Posted: Tue Sep 16, 2014 10:58 am
by nikhil
Great! I will try it out.

Thanks

--
Nikhil

Re: Repeated Start on I2C?

Posted: Fri Sep 19, 2014 10:21 am
by nikhil
It worked as it is. One should use 7 bit Slave address.

Thanks

--
Nikhil