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
STM32F1 failed to compile with CONFIG_UART_ASYNC_API #34543
Comments
@roland-xz thank you for reporting this issue |
A quick fix is to exclude the CONFIG_SOC_SERIES_STM32F1X in the drivers/dma/dma_stm32.c
|
With this exception for the stm32f1x soc serie, the dma binding of the stm32 does not change : a channel (defined by the ref. Manual "Summary of DMA1 requests for each channel") and a slot (not used). In this configuration, it could be specified that slot equal channels, for convenience. So for testing the usart2, the nucleo_f103rb.overlay could be as follows:
|
@FRASTM Thanks a lot for the suggested fixes. Keen to see tests/drivers/uart/uart_mix_fifo_poll work next because it's close to what I want to do.
|
On the nucleo_f103rb, the usart 2 is the console, so that you cannot run test on it, but on usart3 or usart1
|
Thanks again@FRASTM. |
@roland-xz There is no STM32 specific documentation for this, but you can find the list of supported STM32 bindings here: |
@erwango Thanks for the links. |
Moving ticket from bug as enhancement as conclusion is DMA is not yet supported on STM32F1 and requires some implementation for support. cf #34666 |
Describe the bug
Testing nucleo_f103rb board, with my own code or the tests/drivers/uart/uart_async_api code, the compile fails.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Compile should pass.
Impact
annoyance
Logs and console output
as above
Environment (please complete the following information):
Additional context
I believe DMA_InitStruct.PeriphRequest is only used by SoCs that support dmamux. STM32F1 does not.
Adding the following seems to fix the problem.
The text was updated successfully, but these errors were encountered: