From 131e0fa2bf18bc03a9c12f00aaf747dc2b27db01 Mon Sep 17 00:00:00 2001 From: Hugues Kamba Date: Wed, 24 Feb 2021 22:30:40 +0000 Subject: [PATCH] CMake: Fix PSOC6 post build script Ensure the signing image ids are of type int. --- targets/TARGET_Cypress/scripts/PSOC6.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/targets/TARGET_Cypress/scripts/PSOC6.py b/targets/TARGET_Cypress/scripts/PSOC6.py index 75cf003fd9..e1ccc995bf 100644 --- a/targets/TARGET_Cypress/scripts/PSOC6.py +++ b/targets/TARGET_Cypress/scripts/PSOC6.py @@ -369,10 +369,10 @@ def parse_args(): "--boot-scheme", help="the boot scheme." ) sign_subcommand.add_argument( - "--cm0-img-id", help="the Cortex-M0 image ID." + "--cm0-img-id", type=int, help="the Cortex-M0 image ID." ) sign_subcommand.add_argument( - "--cm4-img-id", help="the Cortex-M4 image ID." + "--cm4-img-id", type=int, help="the Cortex-M4 image ID." ) sign_subcommand.add_argument( "--elf", required=True, help="the application ELF file."