Hello Samuli,
I think I have found the file defining the sectors
info for the bootloader. You can modify it as follows:
- Open the
mbed-os/tools/arm_pack_manager/index.json
file - Search for
STM32F411RETx
. You should find something like:
"name": "STM32F411RETx",
"processor": {
"Symmetric": {
"core": "CortexM4",
"fpu": "SinglePrecision",
"mpu": "Present",
"units": 1
}
},
"sectors": [
[
134217728,
16384
],
[
134283264,
65536
],
[
134348800,
131072
],
[
536836096,
528
],
[
536854528,
4
]
],
- Select the “sectors” section for copying and then search for
STM32F401RETx
. You should find something like:
"name": "STM32F401RETx",
"processor": {
"Symmetric": {
"core": "CortexM4",
"fpu": "SinglePrecision",
"mpu": "Present",
"units": 1
}
},
"sectors": null,
- Paste the “sectors” section from the
STM32F411RETx
here so it becomes:
"name": "STM32F401RETx",
"processor": {
"Symmetric": {
"core": "CortexM4",
"fpu": "SinglePrecision",
"mpu": "Present",
"units": 1
}
},
"sectors": [
[
134217728,
16384
],
[
134283264,
65536
],
[
134348800,
131072
],
[
536836096,
528
],
[
536854528,
4
]
],
- Save the file and compile the bootloader for the NUCLEO_F401RE target.
Best regards, Zoltan