Skip to content

Commit bdef48f

Browse files
HoZHelkartben
authored andcommitted
boards: st: Enable BLE for nucleo_wb09ke & nucleo_wb05kz
Enable BLE feature for Nucleo-WB09KE and Nucleo-WB05KZ. Dedicate 32KB and 8KB at the end of flash memory to storage partition on Nucleo-WB09KE and Nucleo-WB05KZ respectively. Add ble tag to the both devices yaml file. Signed-off-by: Ali Hozhabri <[email protected]>
1 parent b2d4c2e commit bdef48f

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed

boards/st/nucleo_wb05kz/nucleo_wb05kz.dts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
zephyr,shell-uart = &usart1;
2424
zephyr,sram = &sram0;
2525
zephyr,flash = &flash0;
26+
zephyr,bt-c2h-uart = &usart1;
2627
};
2728

2829
leds: leds {
@@ -95,6 +96,10 @@
9596
slow-clock = <&clk_lse>;
9697
};
9798

99+
&bt_hci_wb0 {
100+
status = "okay";
101+
};
102+
98103
&usart1 {
99104
pinctrl-0 = <&usart1_tx_pa1 &usart1_rx_pb0>;
100105
pinctrl-names = "default";
@@ -116,3 +121,16 @@
116121
clocks = <&rcc STM32_CLOCK_BUS_APB1 (1 << 14)>,
117122
<&rcc STM32_SRC_SYSCLK SPI3_I2S3_SEL(3)>;
118123
};
124+
125+
&flash0 {
126+
partitions {
127+
compatible = "fixed-partitions";
128+
#address-cells = <1>;
129+
#size-cells = <1>;
130+
/* Set 8KB of storage at the end of 192KB flash */
131+
storage_partition: partition@2e000 {
132+
label = "storage";
133+
reg = <0x0002e000 DT_SIZE_K(8)>;
134+
};
135+
};
136+
};

boards/st/nucleo_wb05kz/nucleo_wb05kz.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ supported:
1616
- gpio
1717
- i2c
1818
- spi
19+
- bluetooth
1920
vendor: st

boards/st/nucleo_wb09ke/nucleo_wb09ke.dts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
zephyr,shell-uart = &usart1;
2424
zephyr,sram = &sram0;
2525
zephyr,flash = &flash0;
26+
zephyr,bt-c2h-uart = &usart1;
2627
};
2728

2829
leds: leds {
@@ -95,6 +96,10 @@
9596
slow-clock = <&clk_lse>;
9697
};
9798

99+
&bt_hci_wb0 {
100+
status = "okay";
101+
};
102+
98103
&usart1 {
99104
pinctrl-0 = <&usart1_tx_pa1 &usart1_rx_pb0>;
100105
pinctrl-names = "default";
@@ -116,3 +121,16 @@
116121
clocks = <&rcc STM32_CLOCK_BUS_APB1 (1 << 14)>,
117122
<&rcc STM32_SRC_SYSCLK SPI3_I2S3_SEL(3)>;
118123
};
124+
125+
&flash0 {
126+
partitions {
127+
compatible = "fixed-partitions";
128+
#address-cells = <1>;
129+
#size-cells = <1>;
130+
/* Set 32KB of storage at the end of 512KB flash */
131+
storage_partition: partition@78000 {
132+
label = "storage";
133+
reg = <0x00078000 DT_SIZE_K(32)>;
134+
};
135+
};
136+
};

boards/st/nucleo_wb09ke/nucleo_wb09ke.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ supported:
1616
- gpio
1717
- i2c
1818
- spi
19+
- bluetooth
1920
vendor: st

0 commit comments

Comments
 (0)