Commit ec9dc5d7 authored by Gerard Marull-Paretas's avatar Gerard Marull-Paretas Committed by Henrik Brix Andersen
Browse files

scripts: west: runners: nrf: fix UICR check



uicr_ranges dictionary entries did not contain the `_FAMILY` suffix, now
used by self.family variable, resulting in an always false check.

Signed-off-by: default avatarGerard Marull-Paretas <gerard@teslabs.com>
parent c181dcce
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -178,9 +178,9 @@ class NrfBinaryRunner(ZephyrBinaryRunner):
        # A map from SoCs which need this check to their UICR address
        # ranges. If self.family isn't in here, do nothing.
        uicr_ranges = {
            'NRF53': ((0x00FF8000, 0x00FF8800),
            'NRF53_FAMILY': ((0x00FF8000, 0x00FF8800),
                             (0x01FF8000, 0x01FF8800)),
            'NRF91': ((0x00FF8000, 0x00FF8800),),
            'NRF91_FAMILY': ((0x00FF8000, 0x00FF8800),),
        }

        if self.family not in uicr_ranges: