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 slave issue (IDFGH-13574) #14462

Closed
3 tasks done
FelipeMdeO opened this issue Aug 29, 2024 · 0 comments
Closed
3 tasks done

ESP32 C6 SPI slave issue (IDFGH-13574) #14462

FelipeMdeO opened this issue Aug 29, 2024 · 0 comments
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally

Comments

@FelipeMdeO
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

Hello,

I am facing issue using esp32c6 spi 2 as slave.
During debug process I was confusing with void spi_slave_hal_store_result(spi_slave_hal_context_t *hal), please look image below:
image

I am not using dma, so I am running line:
spi_ll_read_buffer(hal->hw, hal->rx_buffer, hal->bitlen);

Look, uint32_t bitlen; ///< Expected maximum length of the transaction, in bits. but the variable update in function is: hal->rcv_bitlen = spi_ll_slave_get_rcv_bitlen(hal->hw);

I think the right parameter for spi_ll_read_buffer is hal->rcv_bitlen, look:
image

@espressif-bot espressif-bot added the Status: Opened Issue is new label Aug 29, 2024
@github-actions github-actions bot changed the title ESP32 C6 SPI slave issue ESP32 C6 SPI slave issue (IDFGH-13574) Aug 29, 2024
@espressif-bot espressif-bot added Status: Reviewing Issue is being reviewed and removed Status: Opened Issue is new labels Sep 6, 2024
@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: NA Issue resolution is unavailable and removed Status: Reviewing Issue is being reviewed labels Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

2 participants