Skip to content

Commit 0faddb3

Browse files
committed
zephyr/boards/nucleo_wb55rg: Enable BLE, I2C, SPI and add filesystem.
Bluetooth works well now on this board, so enable all supported features. Also increase the MicroPython GC heap size to make use of the available RAM. Unfortunately the filesystem does not match the stm32 port's NUCLEO_WB55 configuration. That's not possible to do because stm32 uses a 512 byte flash erase size, while zephyr uses 4096 bytes. But at least here in zephyr there's now a sizable and usable filesystem. Signed-off-by: Damien George <[email protected]>
1 parent 35880d4 commit 0faddb3

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
CONFIG_NETWORKING=n
2+
3+
# Hardware features
4+
CONFIG_FLASH=y
5+
CONFIG_FLASH_MAP=y
6+
CONFIG_I2C=y
7+
CONFIG_SPI=y
8+
9+
# Bluetooth
210
CONFIG_BT=y
311
CONFIG_BT_DEVICE_NAME_DYNAMIC=y
12+
CONFIG_BT_GATT_DYNAMIC_DB=y
413
CONFIG_BT_PERIPHERAL=y
514
CONFIG_BT_CENTRAL=y
15+
CONFIG_BT_GATT_CLIENT=y
16+
CONFIG_BT_L2CAP_TX_MTU=252
17+
CONFIG_BT_BUF_ACL_RX_SIZE=256
18+
CONFIG_BT_GATT_ENFORCE_SUBSCRIPTION=n
19+
20+
# MicroPython config
21+
CONFIG_MICROPY_HEAP_SIZE=131072
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright (c) 2025 Damien P. George
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* Delete the defined partitions and create bigger one for storage. */
8+
/delete-node/ &slot1_partition;
9+
/delete-node/ &scratch_partition;
10+
/delete-node/ &storage_partition;
11+
&flash0 {
12+
partitions {
13+
compatible = "fixed-partitions";
14+
#address-cells = <1>;
15+
#size-cells = <1>;
16+
17+
/* Storage slot: 424 KiB placed after slot0_partition. */
18+
storage_partition: partition@70000 {
19+
label = "storage";
20+
reg = <0x00070000 DT_SIZE_K(424)>;
21+
};
22+
};
23+
};

0 commit comments

Comments
 (0)