Skip to content
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

[rtl872x] SPI hal: set sample delay for SPI0@25MHz #2784

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

XuGuohui
Copy link
Member

Problem

Under some circumstances, e.g. on the M.2 breakout board v0.5, the SPI0@25MHz may receive incorrect data on MISO.

Solution

Set the RX sample delay to 1 when SPI0's clock speed is set to 25MHz.

Example App

user/tests/wiring/spi_master_slave

References

N/A


Completeness

  • User is totes amazing for contributing!
  • Contributor has signed CLA (Info here)
  • Problem and Solution clearly stated
  • Run unit/integration/application tests on device
  • Added documentation
  • Added to CHANGELOG.md after merging (add links to docs and issues)

@XuGuohui XuGuohui requested a review from avtolstoy June 13, 2024 06:01
@XuGuohui XuGuohui added the 5.x label Jun 13, 2024
@XuGuohui XuGuohui added this to the 5.8.2 milestone Jun 13, 2024
@scott-brust scott-brust force-pushed the fix/rtl872x-spi0-sample-delay branch from 03903f9 to 680dcb8 Compare June 13, 2024 17:03
@scott-brust scott-brust merged commit 99206bc into develop Jun 13, 2024
1 of 11 checks passed
@scott-brust scott-brust deleted the fix/rtl872x-spi0-sample-delay branch June 13, 2024 17:03
@scott-brust scott-brust mentioned this pull request Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants