FelipeMdeO opened a new issue, #13238:
URL: https://github.com/apache/nuttx/issues/13238

   ### 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 
@tiagojbalmeida, @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:
   
![image](https://github.com/user-attachments/assets/ca1f54f3-63b6-4f5c-891e-f00244113560)
   
   `spi_slave_hal_get_rcv_bitlen` should be called after 
`spi_slave_hal_storage_result`, we aren't doing it so `transfer_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.
   https://github.com/espressif/esp-idf/issues/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
   
   - [X] I have verified before submitting the report.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to