-
Notifications
You must be signed in to change notification settings - Fork 3k
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
driver/i2c: STM32: I2C performance issue solved. #14808
driver/i2c: STM32: I2C performance issue solved. #14808
Conversation
@affrinpinhero-2356, thank you for your changes. |
Hi But I would expect more in this PR.
Then in each i2c_device.h; you could set something like:
So for default user, ALGO is disabled, and no explicit timing values are defined, If user makes an application that changes dynamically the frequency settings If user makes an application that changes the default settings Regards, |
And add few lines in https://github.com/ARMmbed/mbed-os/tree/master/targets/TARGET_STM#st-specific-implementation |
This pull request has automatically been marked as stale because it has had no recent activity. @ARMmbed/Team-ST-MCD, @ARMmbed/mbed-os-maintainers, please complete review of the changes to move the PR forward. Thank you for your contributions. |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
It was merged, please rebase |
6bdf48a
to
98dde59
Compare
For some targets, we have more system clock values defined. |
For STM32F3 for ex, I could propose?
|
@jeromecoutant Can we take this update with separate ticket ? |
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.
Non regression tests are failing with F303ZE and L476RG
Let me check the same. Can you paste the error. |
This commit solves issue related to i2c driver performance. With this commit delay in read write when using i2c timing algorithm is solved. Used flag mechanism which will check tim reg value and hz passed. Signed-off-by: Affrin Pinhero <[email protected]>
a63daf8
to
cb78629
Compare
In i2c_get_timing: => several I2C_PCLK_xxx can't be defined as for F3 or L4 Proposition: |
Modified already. Does it still cause errors? https://github.com/ARMmbed/mbed-os/pull/14808/files#diff-8669c41247ba3cd273836b6a4c4376b94293f4852ac54e47cd3c01b6c9c43c7aR1778-R1796 |
Is this good to start CI? |
@jeromecoutant is this good to start CI? |
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
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.
Just readme update to fix grammar. sorry for late request, I've noticed it just now
This commit modifies readme file. Descption for using I2C timing algorithm and how to enable and disable included. Signed-off-by: Affrin Pinhero <[email protected]>
cb78629
to
b559cec
Compare
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
This commit solves issue related to i2c driver performance.
With this commit delay in read write when using i2c timing
algorithm is solved. Used flag mechanism which will check
tim reg value and hz passed.
Depends on #14776
since not merged.
Impact of changes
Delay in I2C read write while using i2c timing algorithm is solved.
Migration actions required
Documentation
Pull request type
[x] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)
Test results
[] No Tests required for this change (E.g docs only update)
[x] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR
Reviewers