Skip to content

STM32WB Index file missing #12149

@felipeLeast

Description

@felipeLeast

Hi everyone,

I was trying to port the mbed-bootloader project to my board when I stumble upon a problem regardin the board missing flash configuration on the index.json file. After a lot of research and trying I managed to create a configuration that worked for my flash. But as there's no documentation for this file I don't know for a fact that what I did is corret.

I'll be pasting at the end of this issue the lines added in the index.json and on the target.json files. Can anyone, preferebly from ST, confirm that is correct? I can commit it for the next version if it is, but if it's not can you include for next version and help me fix it?

Target(s) affected by this defect ?

NUCLEO_WB5RG

Toolchain(s) (name and version) displaying this defect ?

GCC_ARM

What version of Mbed-os are you using (tag or sha) ?

mbed-os-5.14.2

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

Mbed cli 1.10.0

How is this defect reproduced ?

Change index.json file to include:

"STM32WB55RG": {
        "algorithms": [
            {
                "default": true,
                "file_name": "CMSIS/Flash/STM32WBxx_1024.FLM", 
                "ram_size": null, 
                "ram_start": null, 
                "size": 1048576, 
                "start": 134217728
            }
        ], 
        "family": "STM32WB Series",
        "from_pack": {
            "pack": "STM32WBxx_DFP", 
            "url": "http://www.keil.com/pack", 
            "vendor": "Keil", 
            "version": "1.0.0"
        }, 
        "memories": {
            "IRAM1": {
                "access": {
                    "execute": false, 
                    "non_secure": false, 
                    "non_secure_callable": false, 
                    "peripheral": false, 
                    "read": true, 
                    "secure": false, 
                    "write": true
                }, 
                "default": true, 
                "size": 196608, 
                "start": 536870912, 
                "startup": false
            }, 
            "IRAM2": {
                "access": {
                    "execute": false, 
                    "non_secure": false, 
                    "non_secure_callable": false, 
                    "peripheral": false, 
                    "read": true, 
                    "secure": false, 
                    "write": true
                }, 
                "default": false, 
                "size": 65536, 
                "start": 268435456, 
                "startup": false
            }, 
            "IROM1": {
                "access": {
                    "execute": true, 
                    "non_secure": false, 
                    "non_secure_callable": false, 
                    "peripheral": false, 
                    "read": true, 
                    "secure": false, 
                    "write": false
                }, 
                "default": true, 
                "size": 1048576, 
                "start": 134217728, 
                "startup": true
            }
        }, 
        "name": "STM32WB55RG", 
        "processor": {
            "Symmetric": {
                "core": "CortexM4", 
                "fpu": "SinglePrecision", 
                "mpu": "Present", 
                "units": 1
            }
        }, 
        "sectors": [
            [
                134217728, 
                4096
            ], 
            [
                536833520, 
                528
            ], 
            [
                536838144, 
                8
            ]
        ], 
        "sub_family": "STM32WB55",
        "vendor": "STMicroelectronics:13"
    }, 

Change targets.json file on the NUCLEO_WB55RG target the following lines:

"STM32WB55RG": {
        [...]
        "components_add": ["FLASHIAP"],
        "device_name": "STM32WB55RG",
        "bootloader_supported": true
}

Thank you,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions