-
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 Slave Driver Issue #13238
Comments
Hi Felipe. Can you share the app you've written to test it? |
Sure @fdcavalcanti.
You can use my .config also: |
@FelipeMdeO please do this on the slave device:
Run that program and check if the system fails. If it does, send here the log. |
Hello @fdcavalcanti, sorry for the delay. I am with same behavior. I will put details here:
Are you able to do it work in your side? |
Ok, thanks. |
@FelipeMdeO I've reviewed it and noticed two issues:
I can't dig deeper at the moment, but will get back to it when possible. |
Hello @fdcavalcanti. I am trying solve spi slave communication and I made some progress. However I am stucked in other issue, maybe you can help me. The CS pin was configure to generate IRQ in Rising edge: But I am getting IRQ in both edges. I solved this locally but I believe the final solution should be changing the HAL I changed Look whats happen: @tmedicci Can you help us looking better about this IRQ? |
Hi @FelipeMdeO , I didn't get what is the local solution (and what would be the proposed HAL solution). Can you better explain how you made it work locally? |
Hello @tmedicci, I am fixing driver step by step in my local machine, it isn't finished and need be improved. |
Description / Steps to reproduce the issue
Hello All,
I am trying to use 2 esp32c6 devkit m, one as master and one as slave.
Slave spi cannot work. I tried solve it by myself but I can't. Please @fdcavalcanti, @tmedicci , can you take a look?
I did custom app with open and read cmds, master doesn't receive data. I am using master branch. SPI 2, without DMA.
Please, look image below:
spi_slave_hal_get_rcv_bitlen
should be called afterspi_slave_hal_storage_result
, we aren't doing it sotransfer_size
always will be 0.I changed
spi_slave_hal_get_rcv_bitlen
position, but I faced other issues. I can give more details when you ask for.Just to FYI, to advance in my solution I need change esp_hal (I know, it is not a good idea, I did it only for testing), I opened a thread in esp-idf forum to try understand better hal.
espressif/esp-idf#14462
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: