-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[BUG] ESP32C6 DevKitM spi issue #12897
Comments
Hi @FelipeMdeO , This feature is constantly tested by our internal CI and we found no related issues regarding SPI master. Let's try to debug to find the root cause of the issue you reported. First of all, please try the attached firmware. You can flash it with:
build_test_spi_master_esp32c6.zip You don't need to make any external connection ( That being said, some questions:
Finally, can you please enable the following configs:
and, on NuttX, run |
Hello @tmedicci , Which defconfig did you use? Which pins did you connect externally? Brown - CS PIN 19 |
About nxdiag output:
|
Hello @tmedicci, about test your firmware, It isn't work properly also, I cannot get spi signals properly, however Send and Receive are equal even it aren't connected one with other (MISO wasn't connected to MOSI), I think your version is running in loopback situation. Please look video attached: Screencast.from.2024-08-12.15-30-07.mp4 |
Yes, it's a loopback. You will not be able to measure anything, the pins are connected internally and the result was as expected: same content sent is successfully read.
I didn't get: in this test aren't you connecting MOSI with MISO? (pins 2 and 7 connected together) to test the loopback? If not, what is the slave device? |
Hello @tmedicci, my early tests I keep MISO ando MOSI "floating" only connected to my logic analyzer, I believe I should at least see the clocks, right? |
Oh, I see... Can you confirm that the loopback test is working as expected? (connecting pins 2 and 7) @eren-terzioglu , can you check about the clock line, please? |
Hello @tmedicci, @eren-terzioglu . I am facing issue using external loopback too. I connected directly, without "protoboard" and keep issue. |
Hi, |
We reproduced the issue, investigating it. Thanks for reporting. |
Hello @tmedicci and @eren-terzioglu . First of all thank for help. Just to organize my last posts: 1 - Difference between data sent and received by spi 2 - I can't see spi clock signals using a logic analyzer. |
Hello @eren-terzioglu |
@eren-terzioglu @tmedicci in fact the documentation is confusing: https://nuttx.apache.org/docs/latest/applications/system/spi/index.html it doesn't say we need to connect MOSI to MISO (it is obvious for us, but not for someone outside the project). Also the text is citing "I2C Build Configuration" that is not related to that matter. I'll submit a fix to the documentation. |
Done: #12913 |
Hello @xiaoxiang781216, this topic is about spi issue. It wasn't solved yet. I think this topic must be kept open. |
Created #12924 |
Let me reopen this issue and link to #12924 |
Description / Steps to reproduce the issue
Hello All,
I am trying use spi in esp32c6 DevKit M but I am facing issues.
I tried use default spi example, it fails some time, please look image below:
So I used logic analyzer to try debug whats happen and spi app has strange behavior. I cannot get clocks and cannot see MISO/MOSI bits.
Also, I implemented a app by myself and I had same behavior, I cannot see clocks and data using logic analyzer and oscilloscope.
Follow my app example:
Below, follow logic analyzer and oscilloscope captures:
Please, anyone can check it in your side?
On which OS does this issue occur?
[Linux]
What is the version of your OS?
Ubuntu 23.1
NuttX Version
master
Issue Architecture
[risc-v]
Issue Area
[Applications], [Drivers]
Verification
The text was updated successfully, but these errors were encountered: