scripts: west_commands: runners: nrf_common: add support for nRF54L

Add support for new Nordic family in west commands.

Signed-off-by: Witold Lukasik <witold.lukasik@nordicsemi.no>
This commit is contained in:
Witold Lukasik 2023-12-11 17:44:16 +01:00 committed by Fabio Baltieri
commit 13abdcccb3
2 changed files with 4 additions and 2 deletions

View file

@ -59,7 +59,7 @@ class NrfBinaryRunner(ZephyrBinaryRunner):
@classmethod
def do_add_parser(cls, parser):
parser.add_argument('--nrf-family',
choices=['NRF51', 'NRF52', 'NRF53', 'NRF91'],
choices=['NRF51', 'NRF52', 'NRF53', 'NRF54L', 'NRF91'],
help='''MCU family; still accepted for
compatibility only''')
parser.add_argument('--softreset', required=False,
@ -161,6 +161,8 @@ class NrfBinaryRunner(ZephyrBinaryRunner):
self.family = 'NRF52_FAMILY'
elif self.build_conf.getboolean('CONFIG_SOC_SERIES_NRF53X'):
self.family = 'NRF53_FAMILY'
elif self.build_conf.getboolean('CONFIG_SOC_SERIES_NRF54LX'):
self.family = 'NRF54L_FAMILY'
elif self.build_conf.getboolean('CONFIG_SOC_SERIES_NRF91X'):
self.family = 'NRF91_FAMILY'
else:

View file

@ -46,7 +46,7 @@ class NrfJprogBinaryRunner(NrfBinaryRunner):
# Translate the op
families = {'NRF51_FAMILY': 'NRF51', 'NRF52_FAMILY': 'NRF52',
'NRF53_FAMILY': 'NRF53', 'NRF91_FAMILY': 'NRF91'}
'NRF53_FAMILY': 'NRF53', 'NRF54L_FAMILY': 'NRF54L', 'NRF91_FAMILY': 'NRF91'}
cores = {'NRFDL_DEVICE_CORE_APPLICATION': 'CP_APPLICATION',
'NRFDL_DEVICE_CORE_NETWORK': 'CP_NETWORK'}