Commit 7254a615 authored by Carles Cufi's avatar Carles Cufi Committed by Benjamin Cabé
Browse files

scripts: runners: nrf: Fix flashing of FLPR/PPR on nRF54H20

After commit aaefaad8, flashing of the FLPR and PPR cores in the nRF54H20
was broken due to those cores missing from the _get_core() function that
retrieves the core to program, triggering an exception. Fix it by
referencing those cores and mapping them to the application core.

Signed-off-by: default avatarCarles Cufi <carles.cufi@nordicsemi.no>
parent 187a8ad0
Loading
Loading
Loading
Loading
+2 −0
Changes for scripts/west_commands/runners/nrf_common.py: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -307,6 +307,8 @@ class NrfBinaryRunner(ZephyrBinaryRunner):
    def _get_core(self):
        if self.family in ('nrf54h', 'nrf92'):
            if (self.build_conf.getboolean('CONFIG_SOC_NRF54H20_CPUAPP') or
                self.build_conf.getboolean('CONFIG_SOC_NRF54H20_CPUFLPR') or
                self.build_conf.getboolean('CONFIG_SOC_NRF54H20_CPUPPR') or
                self.build_conf.getboolean('CONFIG_SOC_NRF9280_CPUAPP')):
                return 'Application'
            if (self.build_conf.getboolean('CONFIG_SOC_NRF54H20_CPURAD') or