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

SPI suspend not handled in blocking mode Receive #14

Open
rickou opened this issue Oct 27, 2024 · 2 comments
Open

SPI suspend not handled in blocking mode Receive #14

rickou opened this issue Oct 27, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request hal HAL-LL driver-related issue or pull-request. internal bug tracker Issue confirmed and reported into a ticket in the internal bug tracking system. spi SPI-related issue or pull-request spotted before customer Spotted and fixed internally before being pointed out by users but not published yet

Comments

@rickou
Copy link

rickou commented Oct 27, 2024

Hi,

After having trouble to receive big packet through SPI using HAL_SPI_Receive (clock @12mhz), I enabled the SPI_MASTER_RX_AUTOSUSP_ENABLE feature to avoid overflow.
But, now, i have another issue due to the fact this feature is not handled in the blocking form of Receive..

I know we should use DMA.
For whatever reason, the dev could wants to use the blocking version, which is almost not usable as is at high SPI frequencies (caused by other tasks/IRQ premption, or even slow CPU speeds)
So, it could be also good to add the SUSP bit clear in the blocking receive function too..
This way user is free to use DMA, IT or blocking receive functions

@ALABSTM ALABSTM added enhancement New feature or request hal HAL-LL driver-related issue or pull-request. spi SPI-related issue or pull-request labels Oct 28, 2024
@KRASTM
Copy link
Contributor

KRASTM commented Oct 29, 2024

Hello @rickou,

Thank you for the report.

In fact, this enhancement has already detected and implemented internally, and it will be available ASAP within the driver.

With regards,

@KRASTM KRASTM added the spotted before customer Spotted and fixed internally before being pointed out by users but not published yet label Oct 29, 2024
@KRASTM
Copy link
Contributor

KRASTM commented Oct 29, 2024

ST Internal Reference: 167877

@KRASTM KRASTM added the internal bug tracker Issue confirmed and reported into a ticket in the internal bug tracking system. label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hal HAL-LL driver-related issue or pull-request. internal bug tracker Issue confirmed and reported into a ticket in the internal bug tracking system. spi SPI-related issue or pull-request spotted before customer Spotted and fixed internally before being pointed out by users but not published yet
Projects
Development

No branches or pull requests

3 participants