mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #15154 from rardiol/STM32WB55-BLE-HCI_size
STM32WB55 HCI driver: version dependent rom sizepull/15161/head
commit
07e119b467
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue