MACRUM
(Toyomasa Watarai)
June 14, 2021, 1:31pm
2
Hi,
You can find some comment about the sectors
information in CMSIS device support pack here:
self._legacy_names = load(open(LocalPackLegacyNames))
except IOError:
self._legacy_names = {}
def _get_sectors(self, device):
"""Extract sector sizes from device FLM algorithm
Will return None if there is no algorithm, pdsc URL formatted in
correctly
:return: A list tuples of sector start and size
:rtype: [list]
"""
try:
pack = self._cache.pack_from_cache(device)
ret = []
for algo in device['algorithms']:
try:
flm = pack.open(
algo["file_name"]
.replace("\\\\", "/")
And CMSIS official document here:
https://www.keil.com/pack/doc/CMSIS/Pack/html/createPack_DFP.html#cp_FlashProgrammingAlgorithm
You can also find similar topic here:
Thanks a lot for your responses! I tried to add a custom target with the following steps:
Created the blinky example: mbed import mbed-os-example-blinky
Created a custom_targets.json with the following content:
{
"WOMOLIN_V2": {
"inherits": [
"MCU_STM32L476xG"
]
}
}
Generated the pin mapping files following the link to the README posted by @JohnnyK :
Inside mbed-os-example-blinky
cd mbed-os
python targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py -…
The STM32WLE5CC is not listed in the https://github.com/ARMmbed/mbed-os/blob/master/tools/arm_pack_manager/index.json
, but you can probably use (or copy and modify) STM32WL55JCIx config.