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

ESP32-C6: spi_loopback_dma example broken (but apparently not just the example) #2151

Closed
bjoernQ opened this issue Sep 12, 2024 · 1 comment · Fixed by #2152
Closed

ESP32-C6: spi_loopback_dma example broken (but apparently not just the example) #2151

bjoernQ opened this issue Sep 12, 2024 · 1 comment · Fixed by #2152
Assignees
Labels
bug Something isn't working chip:esp32c6 Issue related to ESP32-C6 chip status:needs-attention This should be prioritized
Milestone

Comments

@bjoernQ
Copy link
Contributor

bjoernQ commented Sep 12, 2024

Bug description

Running the example prints this on ESP32-C6

[0, 1, 2, 3, 4, 5, 6, 7, 8, 9] .. [73, 74, 75, 76, 77, 78, 79, 7a, 7b, 0]
[0, 1, 0, 0, 0, 0, 0, 1, 1, 1] .. [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[0, 2, 0, 0, 0, 0, 0, 1, 1, 1] .. [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]

So, it's failing after the first iteration

The tests don't fail because they only test one transfer

Seems the offending commit is b5f0246

To Reproduce

Run the example

Expected behavior

Example works as before

Environment

Chip type: esp32c6 (revision v0.0)
Crystal frequency: 40 MHz
Flash size: 4MB
Features: WiFi 6, BT 5
MAC address: 60:55:f9:f6:01:78

esp-hal commit 562c891

@bjoernQ bjoernQ added bug Something isn't working status:needs-attention This should be prioritized chip:esp32c6 Issue related to ESP32-C6 chip labels Sep 12, 2024
@bjoernQ bjoernQ added this to the 0.21.0 milestone Sep 12, 2024
@bugadani bugadani self-assigned this Sep 12, 2024
@Dominaezzz
Copy link
Collaborator

It's probably the DMA timing issue now that TX is done after RX. See #1856 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working chip:esp32c6 Issue related to ESP32-C6 chip status:needs-attention This should be prioritized
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants