-
Notifications
You must be signed in to change notification settings - Fork 1k
Added the repeated-start feature in I2C driver #590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see just whitespaces changes.
Hi @uzi18, yes the second commit concerns style issue (aka whitespaces) only. it fixes some errors during buld on Travis. |
looks ok |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your proposal.
I have 1 question included in the review.
@jmchiappa any update on this? (I do not know if you came back from vacation 😉 ) |
Co-Authored-By: Frederic Pillon <[email protected]>
Co-Authored-By: Frederic Pillon <[email protected]>
Co-Authored-By: Frederic Pillon <[email protected]>
Hi @jmchiappa,
But 0xFFFF0000 is not a valid value to write to register. So I discussed with our I2C expert, and we finally reach a new proposal: Unfortunately F0 and F2 do not yet have those defines but it should come in the future, I tested this with I2C EEPROM 24LC256 and with Thermal sensor LM75 on NUCLEO_L476RG to be sure there is no regression. Test are passed. Would it be possible for you to test with your MMA8451 accelerometer ... if you get it ? |
@jmchiappa |
Hello Frédéric, |
OK. |
Hi, Number of test board : 2
Number of i2c devices : 2
I2C libraries : 3 Here is the list of tested configurations with their results : 1.6.1-JM + MMA + F411RE -> OK, no dead time between each i2c frame 1.6.1-ABO + MMA + F411RE -> OK, no dead time between each i2c frame So, I think that i2c driver behavior is different for each board. |
@jmchiappa |
@fpistm, right. Thank you for your support and I hope this feature will be available soon. |
Hi @jmchiappa, |
Hi @jmchiappa,
I now have high FPS on STM32L4. There is still one point I would like to clarify with you: |
Hi @ABOSTM, thank you for your quick fix, it sounds good.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting jmchiappa#1 to be merged
update on PR Added the repeated-start feature in I2C driver stm32duino#590
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jmchiappa and @ABOSTM
Fixes #583 |
Hello, will this also fix the same issue on the STM32F103? |
Probably. |
This solves the repeated-start issue #583 . Tested on F411RE using a MMA8451 accelerometer and OLED SSD1306 I2C peripherals. This seems to be ok but it's a little bit tricky.
It must hugely tested by the community with several I2C peripherals and several platforms.