Skip to content

Commit 07e119b

Browse files
authored
Merge pull request #15154 from rardiol/STM32WB55-BLE-HCI_size
STM32WB55 HCI driver: version dependent rom size
2 parents 0d54dbc + 2a99cf6 commit 07e119b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

connectivity/drivers/ble/FEATURE_BLE/TARGET_STM32WB/HCIDriver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ class TransportDriver : public CordioHCITransportDriver {
514514
}
515515
break;
516516
case INFO_STACK_TYPE_BLE_HCI:
517-
if (MBED_ROM_SIZE > 0xE0000) {
517+
if (MBED_ROM_SIZE > (((p_wireless_info->VersionMajor > 1) || (p_wireless_info->VersionMinor >= 12)) ? 0xE1000 : 0xE0000)) {
518518
error("Wrong MBED_ROM_SIZE with HCI FW\n");
519519
}
520520
break;

targets/TARGET_STM/TARGET_STM32WB/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,14 @@ Default BLE FW in ST boards is **stm32wb5x_BLE_Stack_full_fw.bin**
126126
- Default "mbed_rom_size" in targets.json is then "0xCA000" (808K)
127127

128128
To optimize FLASH size, **stm32wb5x_BLE_HCILayer_fw.bin** is supported for MBED-OS use case
129-
- As explained in Release_Notes.html, this FW is flashed at @ 0x080E0000
130-
- Then "mbed_rom_size" can be updated to "0xE0000" (896K)
129+
- As explained in Release_Notes.html, this FW is flashed at @ 0x080E1000 for versions 1.12.0 and 1.12.1 and at @ 0x080E0000 for older versions
130+
- Then "mbed_rom_size" can be updated to "0xE1000" (900K) or "0xE0000" (896K)
131131

132132
Example in your local mbed_app.json:
133133
```
134134
"target_overrides": {
135135
"NUCLEO_WB55RG": {
136-
"target.mbed_rom_size": "0xE0000"
136+
"target.mbed_rom_size": "0xE1000"
137137
}
138138
```
139139

0 commit comments

Comments
 (0)