Skip to content

Commit 3c9d3b3

Browse files
djiatsaf-stcfriedt
authored andcommitted
samples: drivers: uart: async_api: update test configurations
- Deactivate cache to avoid the TX buffer being placed in a non-cacheable memory region for NUCLEO_F746ZG. - Add missing configuration in the overlay for STM32F3-DISCO. - Change USART1 to USART2 to avoid conflicts on NUCLEO_F103RB. Signed-off-by: Fabrice DJIATSA <[email protected]>
1 parent 7f8b74a commit 3c9d3b3

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

samples/drivers/uart/async_api/boards/nucleo_f103rb.overlay

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
dut: &usart1 {
8-
dmas = <&dma1 4 (STM32_DMA_PERIPH_TX | STM32_DMA_PRIORITY_HIGH)>,
9-
<&dma1 5 (STM32_DMA_PERIPH_RX | STM32_DMA_PRIORITY_HIGH)>;
7+
dut: &usart2 {
8+
dmas = <&dma1 7 (STM32_DMA_PERIPH_TX | STM32_DMA_PRIORITY_HIGH)>,
9+
<&dma1 6 (STM32_DMA_PERIPH_RX | STM32_DMA_PRIORITY_HIGH)>;
1010
dma-names = "tx", "rx";
1111
};
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+
/*
2+
* Copyright (c) 2025 STMicroelectronics
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
dut: &usart1 {
8+
dmas = <&dma1 4 STM32_DMA_PERIPH_TX>,
9+
<&dma1 5 STM32_DMA_PERIPH_RX>;
10+
dma-names = "tx", "rx";
11+
};

0 commit comments

Comments
 (0)