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

tests drivers Uart async on stm32 boards requires dma channels config. #32607

Merged
merged 1 commit into from
Mar 4, 2021

Conversation

FRASTM
Copy link
Collaborator

@FRASTM FRASTM commented Feb 24, 2021

This defines an overlay for the dma channels when executing the tests/drivers/uart/uart_async_api on stm32 nucleo boards:

  • disco_l475_iot1
    through overlay for this tests.

The DMA must be configured for the UART when asynch api is defined.

on disco_l475_iot1: UART 4 is used for testing : DMA 2 channel 3 & 5 and request 2 is selected (uart4 is already selected for this board)

UART Tx pin must be connected to UART Rx pin on the board.
It also helps when running the test on other stm32 boards or running other test (ex. tests/drivers/spi/spi_loopback) with dma on those boards.

Signed-off-by: Francois Ramu francois.ramu@st.com

This sets the dts of dma for using the uart asynch api.
The stm32l475 has a dmamux with request 2 for Tx/Rx usart4
The Tx&Rx pins (PA0, PA1) of the usart4 are connected
on the disco_l475_iot1 board to pass the test.


Signed-off-by: Francois Ramu <francois.ramu@st.com>
@FRASTM FRASTM requested a review from Mierunski as a code owner February 24, 2021 11:02
@github-actions github-actions bot added the area: Tests Issues related to a particular existing or missing test label Feb 24, 2021
@FRASTM
Copy link
Collaborator Author

FRASTM commented Feb 24, 2021

*** Booting Zephyr OS build zephyr-v2.5.0-368-g16677de24c1c  ***                
Running test suite uart_async_test                                              
===================================================================             
START - test_single_read_setup                                                  
 PASS - test_single_read_setup                                                  
===================================================================             
START - test_single_read                                                        
 PASS - test_single_read                                                        
===================================================================             
START - test_chained_read_setup                                                 
 PASS - test_chained_read_setup                                                 
===================================================================             
START - test_chained_read                                                       
 PASS - test_chained_read                                                       
===================================================================             
START - test_double_buffer_setup                                                
 PASS - test_double_buffer_setup                                                
===================================================================             
START - test_double_buffer                                                      
 PASS - test_double_buffer                                                      
===================================================================             
START - test_read_abort_setup                                                   
 PASS - test_read_abort_setup                                                   
===================================================================             
START - test_read_abort                                                         
 PASS - test_read_abort                                                         
===================================================================             
START - test_chained_write_setup                                                
 PASS - test_chained_write_setup                                                
===================================================================             
START - test_chained_write                                                      
 PASS - test_chained_write                                                      
===================================================================             
START - test_long_buffers_setup                                                 
 PASS - test_long_buffers_setup                                                 
===================================================================             
START - test_long_buffers                                                       
 PASS - test_long_buffers                                                       
===================================================================             
START - test_write_abort_setup                                                  
 PASS - test_write_abort_setup                                                  
===================================================================             
START - test_write_abort                                                        
 PASS - test_write_abort                                                        
===================================================================             
START - test_forever_timeout_setup                                              
 PASS - test_forever_timeout_setup                                              
===================================================================             
START - test_forever_timeout                                                    
 PASS - test_forever_timeout                                                    
===================================================================             
Test suite uart_async_test succeeded                                            
===================================================================             
PROJECT EXECUTION SUCCESSFUL   

@zephyrbot zephyrbot added the area: UART Universal Asynchronous Receiver-Transmitter label Feb 24, 2021
@zephyrbot zephyrbot requested a review from dcpleung February 24, 2021 13:58
@FRASTM
Copy link
Collaborator Author

FRASTM commented Feb 25, 2021

rebase
enable dma2 and usart6 in the board overlay dts

@erwango erwango added DNM This PR should not be merged (Do Not Merge) platform: STM32 ST Micro STM32 labels Mar 1, 2021
@FRASTM FRASTM force-pushed the uart_async_test branch from cc8d69d to 067fa2b Compare March 3, 2021 09:26
@FRASTM FRASTM requested a review from erwango as a code owner March 3, 2021 09:26
@FRASTM
Copy link
Collaborator Author

FRASTM commented Mar 3, 2021

adding a temporary patch to avoid using the cache of the stm32f7 when running the tests uart_async_api ( #31711)

@FRASTM
Copy link
Collaborator Author

FRASTM commented Mar 3, 2021

give the commit for the disco_l475_iot1 only

@erwango erwango removed the DNM This PR should not be merged (Do Not Merge) label Mar 3, 2021
@erwango erwango requested a review from galak March 3, 2021 15:06
@carlescufi carlescufi merged commit ef148f5 into zephyrproject-rtos:master Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Tests Issues related to a particular existing or missing test area: UART Universal Asynchronous Receiver-Transmitter platform: STM32 ST Micro STM32
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants