Skip to content

Commit 62f5386

Browse files
FRASTMkartben
authored andcommitted
samples: boards: st: build only this sample for stm32 boards
Makes the sample build only in automatic test CI Running on the nucleo_f411re board requires hsi enable Running on the nucleo_wba55cg can still output the console on the usart1 Tx even if the usart1Rx is used by the MCO output Signed-off-by: Francois Ramu <[email protected]>
1 parent 5ab95a7 commit 62f5386

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

samples/boards/st/mco/boards/nucleo_f411re.overlay

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
status = "okay";
99
};
1010

11+
/* Enable HSI as it will be output on MCO pin by this sample */
12+
&clk_hsi {
13+
status = "okay";
14+
};
15+
1116
/* see RefMan RM0383 */
1217
&mco1 {
1318
/* Select One of the line below for clock source */

samples/boards/st/mco/boards/nucleo_wba55cg.overlay

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88
&clk_lse {
99
status = "okay";
1010
};
11-
/* MCO use same pin like usart1 RX - disable usart */
11+
1212
/ {
1313
chosen {
14-
zephyr,bt-c2h-uart = &lpuart1;
15-
zephyr,uart-pipe = &lpuart1;
16-
zephyr,console = &lpuart1;
17-
zephyr,shell-uart = &lpuart1;
14+
zephyr,console = &usart1;
15+
zephyr,shell-uart = &usart1;
1816
};
1917
};
18+
2019
&usart1 {
21-
status = "disabled";
20+
/* Do not use the console RX pin : dedicated to the MCO */
21+
pinctrl-0 = <&usart1_tx_pb12 &analog_pa8>;
2222
};
2323

2424
&mco1 {

samples/boards/st/mco/sample.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ sample:
22
name: STM32 microcontroller clock output (MCO) example
33
tests:
44
sample.board.stm32.mco:
5+
build_only: true
56
platform_allow:
67
- nucleo_f411re
78
- nucleo_f446ze

0 commit comments

Comments
 (0)