Skip to content

Commit 9488727

Browse files
FRASTMmbolivar-nordic
authored andcommitted
tests: drivers: uart stm32 run uart_async api on f746 nucleo
This sets the dts of dma for using the uart 6 asynch api. The stm32f746 has a dma V1 with request 5 for Tx/Rx usart6 The Tx&Rx pins (PG14, PG9) of the usart6 are connected on the nucleo_f746zg board to pass the test The CONFIG_DCACHE=n must also be set to disable Dcache. Signed-off-by: Francois Ramu <[email protected]>
1 parent 169bf0f commit 9488727

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_DCACHE=n
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
&usart6 {
4+
dmas = <&dma2 7 5 0x28440 0x03>,
5+
<&dma2 2 5 0x28480 0x03>;
6+
dma-names = "tx", "rx";
7+
status = "okay";
8+
};
9+
10+
&dma2 {
11+
status = "okay";
12+
};

tests/drivers/uart/uart_async_api/src/test_uart.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(uart4))
4848
#elif defined(CONFIG_BOARD_NUCLEO_F429ZI) || \
4949
defined(CONFIG_BOARD_NUCLEO_F207ZG) || \
50-
defined(CONFIG_BOARD_NUCLEO_F767ZI)
50+
defined(CONFIG_BOARD_NUCLEO_F767ZI) || \
51+
defined(CONFIG_BOARD_NUCLEO_F746ZG)
5152
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(usart6))
5253
#elif defined(CONFIG_BOARD_FRDM_K82F)
5354
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(lpuart0))

0 commit comments

Comments
 (0)