-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 SPI Read Issue #13067
Comments
@fdcavalcanti PTAL |
Hello @fdcavalcanti I added a breakpoint in: Reading: Steps: Running code and get trans.* value, you will see: Note: 0xee is expected value: |
Hello @FelipeMdeO, let's figure this out. We'll start making sure there's no hardware issues.
|
Hello @fdcavalcanti 1 - 2 - I don't know if this the right way to share, but I did changes in fork from nuttx master: Below, my defconfig: |
I see no issue on C6 driver side. |
Hello @fdcavalcanti, How do you test in your side? |
Hello @fdcavalcanti. I tested using spi example and known slave device, in this situation it worked properly. So the issue is not in the drive. |
No problem! Good luck. |
Hello @fdcavalcanti , I am reopen this issue, I will explain. My issue happens when I tried use MFRC522 driver, this driver uses Using The ESP SPI example uses To do a proof, I changed the spi driver to In this way I was able to read MFRF522 FW Version. @fdcavalcanti can you check SPI_SEND in your side, please ? |
Hello, I was clear in my last explanation, do you need more information? |
Hi Felipe. I don't have this hardware to test.
Make sure the rest of the file is the same as the main branch. |
Hello @fdcavalcanti, Sorry, not yet. |
@FelipeMdeO I think you can use the spi tool to so this test. Just do the ordinary loop test, but using send instead of exchange command. |
Thank you for you suggestion @acassis, very nice. I did changes in spi_transfer.c to use SPI_SEND instead SPI_EXCHANGE in the spi tool. I will take a look better during next days. |
Actually the message was to Filipe Cavalcanti that doesn't have the board: |
Recommend checking if #13780 changed anything |
Description / Steps to reproduce the issue
Hello All,
I am porting MFRC522 rfid card reader to esp32 c6. During port test I am facing issue related SPI message read.
1 - Add breakpoint in mfrc522_getfwversion() function, - I did minor change in code, not necessary:
file: mfrc522.c
line 1160
2 - Run the code until it hits the breakpoint
3 - In my case I start logic analyze and hit "next" in the gdb.
Looking syslog msgs and results in logic Analyze We can see that the rfid IC answer 0xB2, but spi drive can't get this value.
Look images below:
On which OS does this issue occur?
[Linux]
What is the version of your OS?
Ubuntu 24
NuttX Version
master
Issue Architecture
[risc-v]
Issue Area
[Drivers]
Verification
The text was updated successfully, but these errors were encountered: