From 890ea43477245028d777fb384560b08e38332912 Mon Sep 17 00:00:00 2001 From: Mathieu Kardous Date: Tue, 14 Nov 2023 17:08:52 -0500 Subject: [PATCH] use flash command for all extensions --- scripts/flashing/silabs_firmware_utils.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/scripts/flashing/silabs_firmware_utils.py b/scripts/flashing/silabs_firmware_utils.py index 01353ecd677abc..5e0a689f5a62f4 100755 --- a/scripts/flashing/silabs_firmware_utils.py +++ b/scripts/flashing/silabs_firmware_utils.py @@ -49,7 +49,6 @@ Do not reset device after flashing """ -import os import sys import firmware_utils @@ -134,18 +133,9 @@ def verify(self, image): def flash(self, image): """Flash image.""" - ext = os.path.splitext(image)[-1].lower() - - if ext == ".rps": - # rps load command for .rps files - arguments = ['rps', 'load'] - else: - # flash command for .s37 files - arguments = ['flash'] - return self.run_tool( 'commander', - [arguments, self.DEVICE_ARGUMENTS, image], + ['flash', self.DEVICE_ARGUMENTS, image], name='Flash') def reset(self):