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

dma tests fail with stm32wb55 and stm32l476 nucleo boards #29992

Closed
FRASTM opened this issue Nov 13, 2020 · 1 comment · Fixed by #30041
Closed

dma tests fail with stm32wb55 and stm32l476 nucleo boards #29992

FRASTM opened this issue Nov 13, 2020 · 1 comment · Fixed by #30041
Assignees
Labels
area: Tests Issues related to a particular existing or missing test bug The issue is a bug, or the PR is fixing a bug platform: STM32 ST Micro STM32 priority: medium Medium impact/importance bug

Comments

@FRASTM
Copy link
Collaborator

FRASTM commented Nov 13, 2020

Describe the bug
running tests/drivers/dma/chan_blen_transfer and tests/drivers/dma/loop_transfer fail
on nucleo_wb55rg when boards/nucleo_wb55rg.conf and boards/nucleo_wb55rg.overlay are added

running tests/drivers/dma/chan_blen_transfer fails
on nucleo_l476rg

(maybe others)

To Reproduce
Steps to reproduce the behavior:
.$ west build -p auto -b nucleo_wb55rg tests/drivers/dma/chan_blen_transfer/
See error

Running test suite dma_m2m_test
===================================================================
START - test_dma_m2m_chan0_burst8
Cannot get dma controller

    Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/dma/chan_blen_transfere

 FAIL - test_dma_m2m_chan0_burst8
===================================================================
START - test_dma_m2m_chan1_burst8
Cannot get dma controller

    Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/dma/chan_blen_transfere
                                                                                
 FAIL - test_dma_m2m_chan1_burst8                                               
===================================================================             
START - test_dma_m2m_chan0_burst16                                              
Cannot get dma controller                                                       
                                                                                
    Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/dma/chan_blen_transfere
                                                                                
 FAIL - test_dma_m2m_chan0_burst16                                              
===================================================================             
START - test_dma_m2m_chan1_burst16                                              
Cannot get dma controller                                                       
                                                                                
    Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/dma/chan_blen_transfere
                                                                                
 FAIL - test_dma_m2m_chan1_burst16                                              
===================================================================             
Test suite dma_m2m_test failed.                                                 
===================================================================             
PROJECT EXECUTION FAILED     

.$ west build -p auto -b nucleo_wb55rg tests/drivers/dma/loop_transfer/
See error

DMA memory to memory transfer started on DMAMUX_1                               
Preparing DMA Controller                                                        
Starting the transfer and waiting for 1 second                                  
TX data: The quick brown fox jumps over the lazy dog ....                       
block_size 48                                                                   
E: cannot configure the dma stream -1.                                          
ERROR: unfinished transfer                                                      
Each RX buffer should contain the full TX buffer string.                        
TX data: The quick brown fox jumps over the lazy dog ....                       
RX data Loop 0: The quick brown fox jumps over the lazy dog ....                
RX data Loop 1: The quick brown fox jumps over the lazy dog ....                
RX data Loop 2:                                                                 
RX data Loop 3:                                                                 
RX data Loop 4:                                                                 
Finished: DMA       

Expected behavior
tests PASSED

Additional context
master branch : a7aef46

@FRASTM FRASTM added the bug The issue is a bug, or the PR is fixing a bug label Nov 13, 2020
@FRASTM
Copy link
Collaborator Author

FRASTM commented Nov 13, 2020

tests/drivers/dma/loop_transfer/nucleo_wb55rg.conf :

CONFIG_DMA_LOOP_TRANSFER_DRV_NAME="DMAMUX_1"
CONFIG_DMA_LOOP_TRANSFER_CHANNEL_NR=1

tests/drivers/dma/loop_transfer/nucleo_wb55rg.overlay :

&dma1 {
	status = "okay";
};

&dma2 {
	status = "okay";
};

&dmamux1 {
	status = "okay";
};

@FRASTM FRASTM added the platform: STM32 ST Micro STM32 label Nov 13, 2020
@FRASTM FRASTM self-assigned this Nov 13, 2020
@FRASTM FRASTM added the area: Tests Issues related to a particular existing or missing test label Nov 13, 2020
@nashif nashif added the priority: medium Medium impact/importance bug label Nov 17, 2020
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 bug The issue is a bug, or the PR is fixing a bug platform: STM32 ST Micro STM32 priority: medium Medium impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants