Skip to content

Commit 169bf0f

Browse files
FRASTMmbolivar-nordic
authored andcommitted
tests: drivers: uart stm32 run uart_async api on f767 nucleo
This sets the dts of dma for using the uart 6 asynch api. The stm32f767 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_f767zi 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 39c8ba3 commit 169bf0f

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
};
8+
9+
&dma2 {
10+
status = "okay";
11+
};

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

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

0 commit comments

Comments
 (0)