Merge pull request #15154 from rardiol/STM32WB55-BLE-HCI_size

STM32WB55 HCI driver: version dependent rom size
pull/15161/head
Martin Kojtal 2021-10-28 10:09:49 +01:00 committed by GitHub
commit 07e119b467
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -514,7 +514,7 @@ public:
}
break;
case INFO_STACK_TYPE_BLE_HCI:
if (MBED_ROM_SIZE > 0xE0000) {
if (MBED_ROM_SIZE > (((p_wireless_info->VersionMajor > 1) || (p_wireless_info->VersionMinor >= 12)) ? 0xE1000 : 0xE0000)) {
error("Wrong MBED_ROM_SIZE with HCI FW\n");
}
break;

View File

@ -126,14 +126,14 @@ Default BLE FW in ST boards is **stm32wb5x_BLE_Stack_full_fw.bin**
- Default "mbed_rom_size" in targets.json is then "0xCA000" (808K)
To optimize FLASH size, **stm32wb5x_BLE_HCILayer_fw.bin** is supported for MBED-OS use case
- As explained in Release_Notes.html, this FW is flashed at @ 0x080E0000
- Then "mbed_rom_size" can be updated to "0xE0000" (896K)
- 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
- Then "mbed_rom_size" can be updated to "0xE1000" (900K) or "0xE0000" (896K)
Example in your local mbed_app.json:
```
"target_overrides": {
"NUCLEO_WB55RG": {
"target.mbed_rom_size": "0xE0000"
"target.mbed_rom_size": "0xE1000"
}
```