Infineon: Add support for cyw20829 b0 revision of device, update libs versions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
deleted file mode 100644
index 61330b6..0000000
--- a/.gitlab-ci.yml
+++ /dev/null
@@ -1,5445 +0,0 @@
-stages:
-  - mtb_bootloader_solution
-  - cyw20829_build
-  - build_blinky
-  - build_mcuboot_smif
-  - build_mcuboot
-  - cyw20829_test
-  - 512k_swap_tests
-  - 1m_swap_tests
-  - 2m_swap_tests
-  - 512k_overwrite_tests
-  - 1m_overwrite_tests
-  - 2m_overwrite_tests
-  - mcuboot_simulator
-  - code_quality_check
-
-variables:
-  # MCUBoot/Bootloader test selectors. Can be overwriten by CI variables.
-  # TWO_TESTS - minimal boot/upgrade positive tests
-  # THREE_TESTS - two positive and one negative test
-  # SMOKE - short basic tests with swap (optional)
-  # OVERNIGHT - extended tests for overnight pipeline
-  # ALL - complete set of all suite tests
-  # CUSTOM - manualy selected tests in MCUBoot suite repository
-
-    TEST_SWAP:              '-m smoke'
-    TEST_SWAP_RELEASE:      '-m two_tests'
-
-    TEST_OVERWRITE:         '-m smoke'
-    TEST_OVERWRITE_RELEASE: '-m two_tests'
-
-    TEST_RBC:               '-m rbc_all'
-    TEST_RBC_RELEASE:       '-m rbc_overnight'
-
-    TEST_CUSTOM_FLASHMAP:   '-m custom_flashmap'
-
-  # Change value of COV variable, like `COV: 1` to run coverity tests only
-    COV: 0
-
-  # Run default CI pipeline, insted of quick CI triggered by CySecureTools and SecureBoot test suite
-    CIVAR_MICRO_TEST: 0
-
-  # Skip all following tests after N fails (or set to zero to run the full scope of tests anyway)
-    MAXFAIL: 1
-
-  # Enable Bootstrap by default
-    BOOTSTRAP: 1
-
-  # Disable Explorer platform for MCUBoot 1.8.3 branch only
-    CIVAR_EXPLORER_DISABLED: 1
-
-  # Fault injection hardening mode
-  # Possible values:
-  # OFF     - disabled
-  # LOW     - minimal configuration
-  # MEDIUM  - basic configuration
-  # HIGH    - full configuration
-    FIH_PROFILE: MEDIUM
-
-  # CYW20829 assets for SecureBoot test suite
-    CIVAR_20829_OPENOCD: '4.4.0.2121' # CYW208xx_SMIF.FLM flash-loader file taken from 4.3.0.1746 version
-    CIVAR_20829_BOOTROM: '1.0.0.7120'
-
-  # Branch or tag seletct for test suite
-    TEST_BRANCH_PSOC6: ci/mcuboot_1.8.3_tc2
-    TEST_BRANCH_20829: ci/mcuboot_1.8.3_tc2
-    TEST_BRANCH_BSE: develop
-
-  # Branch or tag with cysecuretools for 20829
-    CY_SECURETOOLS_BRANCH: CYSECURETOOLS_4.1.0_RC2
-    TESTAPPS_CYW20829_BRANCH: testapps_cyw20829
-
-  # Branch with CppCheck scripts and config
-    CPPCHECK_BRANCH: pr/cypress-mcuboot-cppcheck
-
-  # Brach with Coverity scripts and confings
-    COVERITY_BRANCH: feature/add-active-violetions-check
-
-  # Default git strategies
-    GIT_STRATEGY: clone
-    GIT_SUBMODULE_STRATEGY: none
-
-  # DO NOT EDIT. Internal CI runner tools path
-    OBJCOPY_PATH: C:/Users/fw_security/ModusToolbox/tools_2.3/gcc/bin/arm-none-eabi-objcopy
-# OPENOCD 1430 (from MTB 2.3) doesn`t work correctly with mcuboot test suite
-#    OPENOCD_PATH: C:/Users/fw_security/ModusToolbox/tools_2.0/openocd
-#    TOOLCHAIN_PATH: C:/Users/cydesigner/ModusToolbox/tools_2.3/gcc
-#    TOOLCHAIN_PATH: /Applications/ModusToolbox/tools_2.0/gcc-7.2.1
-#    TOOLCHAIN_PATH: /home/fw-security/ModusToolbox/tools_2.3/gcc
-
-  # PSoC 061 Processor module voltage via MiniProg4. Working values is 1700 - 3600 mV basing on 002-21414 datasheet
-    CIVAR_VOLTAGE_061_512K: 3300 # Default value like in PSoC 062 kits
-
-######################################################################################################################################
-###########################  M O D U S T O O L B O X   B O O T L O A D E R   S O L U T I O N   B U I L D  ############################
-######################################################################################################################################
-
-.mtb_bootloader_solution:
-  stage: mtb_bootloader_solution
-  needs: []
-  except:
-    variables:
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $CIVAR_MICRO_TEST != "0"
-      - $CIVAR_EXPLORER_DISABLED !="0"
-  variables:
-    CE_NAME: Bootloader_Solution
-    BOOTLOADER_PRJ_FOLDER: bootloader
-    BLINKY_PRJ_FOLDER: blinky
-    CE_KIT: CY8CPROTO-062-4343W
-  artifacts:
-    expire_in: 4 weeks
-    paths:
-      - ${CE_NAME}/${BOOTLOADER_PRJ_FOLDER}/build/${CE_KIT}/Debug/mtb-example-bootloader-solution.hex
-      - ${CE_NAME}/${BLINKY_PRJ_FOLDER}/build/${CE_KIT}/Debug/blinky.hex
-  script:
-    - env
-
-    - echo "# Update Bootloader Solution branch in manifest, if it's not a 'develop'"
-    - bash -c '[ ${TEST_BRANCH_BSE} != "develop" ] && cat ${CI_PROJECT_DIR}/boot/cypress/manifests/custom-ce-manifest.xml | sed -e "s/develop/${TEST_BRANCH_BSE}/" | tee ${CI_PROJECT_DIR}/boot/cypress/manifests/custom-ce-manifest.xml || true'
-
-    - echo "# Create Modus Toolbox project using manifest from MCUBoot repository"
-    - bash -c 'echo CyRemoteManifestOverride=${CI_PROJECT_DIR}/boot/cypress/manifests/mtb-super-manifest-fv2-test-ce-mcuboot.xml ${CE_TOOLS}/project-creator/project-creator-cli --board-id ${CE_KIT} --board-uri http://git-ore.aus.cypress.com/repo-staging/TARGET_${CE_KIT} --board-commit latest-v3.X --app-id mtb-example-bootloader-solution --app-uri http://git-ore.aus.cypress.com/wpp/ce/mtb/mtb-example-bootloader-solution/ --app-commit ${TEST_BRANCH_BSE} --cypress-tools ${CE_TOOLS} --target-dir ${CI_PROJECT_DIR} --user-app-name ${CE_NAME} --output-for-machine --use-modus-shell'
-    - bash -c      'CyRemoteManifestOverride=${CI_PROJECT_DIR}/boot/cypress/manifests/mtb-super-manifest-fv2-test-ce-mcuboot.xml ${CE_TOOLS}/project-creator/project-creator-cli --board-id ${CE_KIT} --board-uri http://git-ore.aus.cypress.com/repo-staging/TARGET_${CE_KIT} --board-commit latest-v3.X --app-id mtb-example-bootloader-solution --app-uri http://git-ore.aus.cypress.com/wpp/ce/mtb/mtb-example-bootloader-solution/ --app-commit ${TEST_BRANCH_BSE} --cypress-tools ${CE_TOOLS} --target-dir ${CI_PROJECT_DIR} --user-app-name ${CE_NAME} --output-for-machine --use-modus-shell'
-
-    - cd ${CE_NAME}
-    - pushd ${BOOTLOADER_PRJ_FOLDER}
-
-    - echo "# Change MCUBoot branch in deps/mcuboot.mtb dependency file (mtb_shared), if it's not a 'develop'"
-# Powershell echo format (obsolete example)
-#    - echo http://devops-git.aus.cypress.com/repo/cy_mcuboot_project/cy_mcuboot#$env:CI_BUILD_REF#$"$"ASSET_REPO$"$"/mcuboot/develop > deps/mcuboot.mtb
-    - bash -c '[ $CI_BUILD_REF_NAME != "develop" ] && echo http://devops-git.aus.cypress.com/repo/cy_mcuboot_project/cy_mcuboot#$CI_BUILD_REF#$\$ASSET_REPO$\$/mcuboot/develop > deps/mcuboot.mtb || true'
-    - bash -c '[ $CI_BUILD_REF_NAME != "develop" ] && make getlibs || true'
-
-    - echo "# Check MCUBoot and Bootloader Solution commits for build'"
-    - git --git-dir ../mtb_shared/mcuboot/develop/.git rev-parse HEAD
-    - git ls-remote http://git-ore.aus.cypress.com/wpp/ce/mtb/mtb-example-bootloader-solution.git ${TEST_BRANCH_BSE}
-
-    - make build -j4
-    - popd
-    - pushd ${BLINKY_PRJ_FOLDER}
-    - make build -j4
-
-
-lin_gcc_mtb_bootloader_solution:
-  extends: .mtb_bootloader_solution
-  tags:
-    - FWS_LIN_BUILD
-  variables:
-    CE_TOOLS: /home/fw-security/ModusToolbox/tools_2.4
-    TOOLCHAIN: GCC_ARM
-
-lin_arm_mtb_bootloader_solution:
-  extends: .mtb_bootloader_solution
-  tags:
-    - FWS_LIN_BUILD
-  variables:
-    CE_TOOLS: /home/fw-security/ModusToolbox/tools_2.4
-    TOOLCHAIN: ARM
-    CY_COMPILER_PATH: '/opt/arm/6.18'
-  before_script:
-    - echo "# Setup ARM C compiller license'"
-    - export ARMLMD_LICENSE_FILE=3500@auclal11.auc.infineon.com,3500@auclal12.auc.infineon.com,3500@auclal13.auc.infineon.com:27000@licsk1019.infineon.com
-
-mac_gcc_mtb_bootloader_solution:
-  extends: .mtb_bootloader_solution
-  tags:
-    - FWS_MAC_BUILD
-  variables:
-    CE_TOOLS: /Applications/ModusToolbox/tools_2.4
-    CY_TOOLS_PATHS: /Applications/ModusToolbox/tools_2.4
-    TOOLCHAIN: GCC_ARM
-
-win_gcc_mtb_bootloader_solution:
-  extends: .mtb_bootloader_solution
-  tags:
-    - FWS_WIN_BUILD
-  variables:
-    CE_TOOLS: C:/Users/fw-security/ModusToolbox/tools_2.4
-    TOOLCHAIN: GCC_ARM
-  before_script:
-    - echo "# Change output file format from Unicode to ASCII for Powershell'"
-    - $PSDefaultParameterValues = @{"Out-File:Encoding"="ASCII"}
-
-win_iar_mtb_bootloader_solution:
-  extends: .mtb_bootloader_solution
-  tags:
-    - FWS_WIN_BUILD
-  variables:
-    CE_TOOLS: C:/Users/fw-security/ModusToolbox/tools_2.4
-    TOOLCHAIN: IAR
-    CY_COMPILER_PATH: 'C:/Program Files/IAR Systems/Embedded Workbench 9.0/arm'
-  before_script:
-    - echo "# Change output file format from Unicode to ASCII for Powershell'"
-    - $PSDefaultParameterValues = @{"Out-File:Encoding"="ASCII"}
-
-win_arm_mtb_bootloader_solution:
-  extends: .mtb_bootloader_solution
-  tags:
-    - FWS_WIN_BUILD
-  variables:
-    CE_TOOLS: C:/Users/fw-security/ModusToolbox/tools_2.4
-    TOOLCHAIN: ARM
-    CY_COMPILER_PATH: 'C:/Program\ Files/ArmCompilerforEmbedded6.18'
-  before_script:
-    - echo "# Change output file format from Unicode to ASCII for Powershell'"
-    - $PSDefaultParameterValues = @{"Out-File:Encoding"="ASCII"}
-
-######################################################################################################################################
-######################################################  2 0 8 2 9   B U I L D  #######################################################
-######################################################################################################################################
-
-.cyw20829_build_mcuboot:
-  stage: cyw20829_build
-  tags:
-#    - FWS_LIN_BUILD
-    - FWS_MAC_BUILD
-#    - PCVP30_WIN_BUILD
-  variables:
-#    TOOLCHAIN_PATH: /home/fw-security/ModusToolbox/tools_2.3/gcc
-    TOOLCHAIN_PATH: /Applications/ModusToolbox/tools_2.3/gcc
-#    TOOLCHAIN_PATH: C:/Users/PCVP30User/ModusToolbox/tools_2.4/gcc
-  needs: []
-  artifacts:
-    expire_in: 4 weeks
-    paths:
-      - boot/cypress/MCUBootApp/out/CYW20829/Debug/MCUBootApp.elf
-      - boot/cypress/MCUBootApp/out/CYW20829/Debug/*.hex
-      - boot/cypress/MCUBootApp/out/CYW20829/Debug/*.bin
-
-      - boot/cypress/MCUBootApp/out/CYW20829/Release/MCUBootApp.elf
-      - boot/cypress/MCUBootApp/out/CYW20829/Release/*.hex
-      - boot/cypress/MCUBootApp/out/CYW20829/Release/*.bin
-
-      - boot/cypress/BlinkyApp/out/CYW20829/Debug/boot/BlinkyApp.elf
-      - boot/cypress/BlinkyApp/out/CYW20829/Debug/boot/*.hex
-      - boot/cypress/BlinkyApp/out/CYW20829/Debug/boot/*.bin
-      - boot/cypress/BlinkyApp/out/CYW20829/Debug/upgrade/BlinkyApp.elf
-      - boot/cypress/BlinkyApp/out/CYW20829/Debug/upgrade/*.hex
-      - boot/cypress/BlinkyApp/out/CYW20829/Debug/upgrade/*.bin
-
-      - boot/cypress/BlinkyApp/out/CYW20829/Release/boot/BlinkyApp.elf
-      - boot/cypress/BlinkyApp/out/CYW20829/Release/boot/*.hex
-      - boot/cypress/BlinkyApp/out/CYW20829/Release/boot/*.bin
-      - boot/cypress/BlinkyApp/out/CYW20829/Release/upgrade/BlinkyApp.elf
-      - boot/cypress/BlinkyApp/out/CYW20829/Release/upgrade/*.hex
-      - boot/cypress/BlinkyApp/out/CYW20829/Release/upgrade/*.bin
-
-      - boot/cypress/keys/encrypt_key.bin
-      - boot/cypress/keys/priv_oem_0.pem
-      - boot/cypress/keys/pub_oem_0.pem
-      - boot/cypress/packets/debug_cert.bin
-
-  script:
-    - env
-    - '[ ! -z $REPO ] && git remote add remote_repo $REPO'
-    - '[ ! -z $REPO ] && git fetch remote_repo'
-    - '[ ! -z $REPO ] && git checkout -b remote_branch remote_repo/$BRANCH'
-    - '[ ! -z $REPO ] && echo "Using remote branch commit:"'
-    - '[   -z $REPO ] && echo "Using current branch commit:"'
-
-    - git rev-parse HEAD
-    - git submodule deinit --all -f
-    - git submodule sync --recursive
-    - git submodule update --init --recursive
-
-    - python -V
-    - virtualenv venv
-    - source venv/bin/activate
-#    - ./venv/scripts/activate.ps1
-    - python -V
-
-    - pip install --upgrade --force-reinstall git+http://git-ore.aus.cypress.com/repo/cysecuretools.git@${CY_SECURETOOLS_BRANCH}
-    - pip install --upgrade --force-reinstall git+http://git-ore.aus.cypress.com/repo/cysecuretools.git@${TESTAPPS_CYW20829_BRANCH}
-    - cysecuretools -v version
-
-    - cd boot/cypress
-    - cysecuretools -t cyw20829 init --testapps
-    - python ./scripts/rbc_policy_and_cert_revision_modify.py
-    - cysecuretools -t cyw20829 -p policy/policy_secure.json create-key --aes
-    - cysecuretools -t cyw20829 -p policy/policy_secure.json create-key -k 0
-    - cysecuretools -t cyw20829 -p policy/policy_secure.json debug-certificate -t packets/debug_cert.json -o packets/debug_cert.bin -k 0
-
-    - echo make app BUILDCFG=Debug   ENC_IMG=${CIVAR_ENCRYPT} LCS=${CIVAR_LCS} APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=CYW20829 CYW20829_PSVP=1 FLASH_MAP=${CIVAR_FLASH_MAP}
-    -      make app BUILDCFG=Debug   ENC_IMG=${CIVAR_ENCRYPT} LCS=${CIVAR_LCS} APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=CYW20829 CYW20829_PSVP=1 FLASH_MAP=${CIVAR_FLASH_MAP}
-    -      make app BUILDCFG=Release ENC_IMG=${CIVAR_ENCRYPT} LCS=${CIVAR_LCS} APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=CYW20829 CYW20829_PSVP=1 FLASH_MAP=${CIVAR_FLASH_MAP}
-
-    - echo make app BUILDCFG=Debug   IMG_TYPE=BOOT    ENC_IMG=${CIVAR_ENCRYPT} APP_DEFAULT_POLICY=${CIVAR_POLICY} APP_NAME=BlinkyApp PLATFORM=CYW20829 FLASH_MAP=${CIVAR_FLASH_MAP} IMG_ID=1
-    -      make app BUILDCFG=Debug   IMG_TYPE=BOOT    ENC_IMG=${CIVAR_ENCRYPT} APP_DEFAULT_POLICY=${CIVAR_POLICY} APP_NAME=BlinkyApp PLATFORM=CYW20829 FLASH_MAP=${CIVAR_FLASH_MAP} IMG_ID=1
-    -      make app BUILDCFG=Debug   IMG_TYPE=UPGRADE ENC_IMG=${CIVAR_ENCRYPT} APP_DEFAULT_POLICY=${CIVAR_POLICY} APP_NAME=BlinkyApp PLATFORM=CYW20829 FLASH_MAP=${CIVAR_FLASH_MAP} IMG_ID=1
-    -      make app BUILDCFG=Release IMG_TYPE=BOOT    ENC_IMG=${CIVAR_ENCRYPT} APP_DEFAULT_POLICY=${CIVAR_POLICY} APP_NAME=BlinkyApp PLATFORM=CYW20829 FLASH_MAP=${CIVAR_FLASH_MAP} IMG_ID=1
-    -      make app BUILDCFG=Release IMG_TYPE=UPGRADE ENC_IMG=${CIVAR_ENCRYPT} APP_DEFAULT_POLICY=${CIVAR_POLICY} APP_NAME=BlinkyApp PLATFORM=CYW20829 FLASH_MAP=${CIVAR_FLASH_MAP} IMG_ID=1
-
-  after_script:
-    - deactivate
-    - rm -rf ./venv
-
-
-mac_20829_mcuboot_normal_swap_shared:
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CIVAR_ENCRYPT: 0
-    CIVAR_LCS: NORMAL_NO_SECURE
-    CIVAR_POLICY:  ./policy/policy_no_secure.json
-    CIVAR_FLASH_MAP: ./platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_swap_shared_psvp.json
-  extends: .cyw20829_build_mcuboot
-
-
-mac_20829_mcuboot_secure_swap_shared:
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CIVAR_ENCRYPT: 1
-    CIVAR_LCS: SECURE
-    CIVAR_POLICY:  ./policy/policy_no_secure.json
-    CIVAR_FLASH_MAP: ./platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_swap_shared_psvp.json
-  extends: .cyw20829_build_mcuboot
-
-
-mac_20829_mcuboot_normal_swap:
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CIVAR_ENCRYPT: 0
-    CIVAR_LCS: NORMAL_NO_SECURE
-    CIVAR_POLICY:  ./policy/policy_no_secure.json
-    CIVAR_FLASH_MAP: ./platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_swap_single_psvp.json
-  extends: .cyw20829_build_mcuboot
-
-mac_20829_mcuboot_normal_swap_fih_high:
-  only:
-    - schedules
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CIVAR_ENCRYPT: 0
-    CIVAR_LCS: NORMAL_NO_SECURE
-    CIVAR_POLICY:  ./policy/policy_no_secure.json
-    CIVAR_FLASH_MAP: ./platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_swap_single_psvp.json
-    FIH_PROFILE: 'HIGH'
-  extends: .cyw20829_build_mcuboot
-
-
-mac_20829_mcuboot_secure_swap:
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CIVAR_ENCRYPT: 0
-    CIVAR_LCS: SECURE
-    CIVAR_POLICY:  ./policy/policy_secure.json
-    CIVAR_FLASH_MAP: ./platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_swap_single_psvp.json
-  extends: .cyw20829_build_mcuboot
-
-
-mac_20829_mcuboot_secure_rollback_swap:
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CIVAR_ENCRYPT: 0
-    CIVAR_LCS: SECURE
-    CIVAR_POLICY:  ./policy/policy_reprovisioning_secure.json
-    CIVAR_FLASH_MAP: ./platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_swap_single_psvp.json
-  extends: .cyw20829_build_mcuboot
-
-
-mac_20829_mcuboot_secure_encrypt_swap:
-  except:
-    variables:
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CIVAR_ENCRYPT: 1
-    CIVAR_LCS: SECURE
-    CIVAR_POLICY:  ./policy/policy_secure.json
-    CIVAR_FLASH_MAP: ./platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_swap_single_psvp.json
-  extends: .cyw20829_build_mcuboot
-
-mac_20829_mcuboot_secure_encrypt_swap_fih_off:
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CIVAR_ENCRYPT: 1
-    CIVAR_LCS: SECURE
-    CIVAR_POLICY:  ./policy/policy_secure.json
-    CIVAR_FLASH_MAP: ./platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_swap_single_psvp.json
-    FIH_PROFILE: 'OFF'
-  extends: .cyw20829_build_mcuboot
-
-mac_20829_mcuboot_secure_encrypt_rollback_swap:
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CIVAR_ENCRYPT: 1
-    CIVAR_LCS: SECURE
-    CIVAR_POLICY:  ./policy/policy_reprovisioning_secure.json
-    CIVAR_FLASH_MAP: ./platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_swap_single_psvp.json
-  extends: .cyw20829_build_mcuboot
-
-
-mac_20829_mcuboot_normal_overwrite:
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CIVAR_ENCRYPT: 0
-    CIVAR_LCS: NORMAL_NO_SECURE
-    CIVAR_POLICY:  ./policy/policy_no_secure.json
-    CIVAR_FLASH_MAP: ./platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_overwrite_single_psvp.json
-  extends: .cyw20829_build_mcuboot
-
-
-mac_20829_mcuboot_secure_overwrite:
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CIVAR_ENCRYPT: 0
-    CIVAR_LCS: SECURE
-    CIVAR_POLICY:  ./policy/policy_secure.json
-    CIVAR_FLASH_MAP: ./platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_overwrite_single_psvp.json
-  extends: .cyw20829_build_mcuboot
-
-
-mac_20829_mcuboot_secure_rollback_overwrite:
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CIVAR_ENCRYPT: 0
-    CIVAR_LCS: SECURE
-    CIVAR_POLICY:  ./policy/policy_reprovisioning_secure.json
-    CIVAR_FLASH_MAP: ./platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_overwrite_single_psvp.json
-  extends: .cyw20829_build_mcuboot
-
-  
-mac_20829_mcuboot_secure_rollback_overwrite_fih_low:
-  except:
-    variables:
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CIVAR_ENCRYPT: 0
-    CIVAR_LCS: SECURE
-    CIVAR_POLICY:  ./policy/policy_reprovisioning_secure.json
-    CIVAR_FLASH_MAP: ./platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_overwrite_single_psvp.json
-    FIH_PROFILE: 'LOW'
-  extends: .cyw20829_build_mcuboot
-
-mac_20829_mcuboot_secure_encrypt_overwrite:
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CIVAR_ENCRYPT: 1
-    CIVAR_LCS: SECURE
-    CIVAR_POLICY:  ./policy/policy_secure.json
-    CIVAR_FLASH_MAP: ./platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_overwrite_single_psvp.json
-  extends: .cyw20829_build_mcuboot
-
-
-mac_20829_mcuboot_secure_encrypt_rollback_overwrite:
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CIVAR_ENCRYPT: 1
-    CIVAR_LCS: SECURE
-    CIVAR_POLICY:  ./policy/policy_reprovisioning_secure.json
-    CIVAR_FLASH_MAP: ./platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_overwrite_single_psvp.json
-  extends: .cyw20829_build_mcuboot
-
-
-######################################################################################################################################
-#################################################### C O M M O N   E X T E N D S #####################################################
-######################################################################################################################################
-
-.build_blinky:
-  retry:
-    max: 0
-  tags:
-    - FWS_LIN_BUILD
-  needs: []
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    TOOLCHAIN_PATH: /home/fw-security/ModusToolbox/tools_2.3/gcc
-  artifacts:
-    expire_in: 4 weeks
-    paths:
-        #IMG_ID=1
-      - boot/cypress/BlinkyApp/out/${PSOC^^}/Debug/boot/BlinkyApp.elf
-      - boot/cypress/BlinkyApp/out/${PSOC^^}/Release/boot/BlinkyApp.elf
-      - boot/cypress/BlinkyApp/out/${PSOC^^}/Debug/upgrade/BlinkyApp.elf
-      - boot/cypress/BlinkyApp/out/${PSOC^^}/Release/upgrade/BlinkyApp.elf
-      - boot/cypress/BlinkyApp/out/${PSOC^^}/Debug/boot/BlinkyApp.hex
-      - boot/cypress/BlinkyApp/out/${PSOC^^}/Release/boot/BlinkyApp.hex
-      - boot/cypress/BlinkyApp/out/${PSOC^^}/Debug/upgrade/BlinkyApp_upgrade.hex
-      - boot/cypress/BlinkyApp/out/${PSOC^^}/Release/upgrade/BlinkyApp_upgrade.hex
-        #IMG_ID=2
-      #- boot/cypress/BlinkyApp/out.id2/${PSOC^^}/Debug/boot/BlinkyApp.elf
-      #- boot/cypress/BlinkyApp/out.id2/${PSOC^^}/Release/boot/BlinkyApp.elf
-      #- boot/cypress/BlinkyApp/out.id2/${PSOC^^}/Debug/upgrade/BlinkyApp.elf
-      #- boot/cypress/BlinkyApp/out.id2/${PSOC^^}/Release/upgrade/BlinkyApp.elf
-      #- boot/cypress/BlinkyApp/out.id2/${PSOC^^}/Debug/boot/BlinkyApp.hex
-      #- boot/cypress/BlinkyApp/out.id2/${PSOC^^}/Release/boot/BlinkyApp.hex
-      #- boot/cypress/BlinkyApp/out.id2/${PSOC^^}/Debug/upgrade/BlinkyApp_upgrade.hex
-      #- boot/cypress/BlinkyApp/out.id2/${PSOC^^}/Release/upgrade/BlinkyApp_upgrade.hex
-  script:
-    - env
-    - '[ ! -z $REPO ] && git remote add remote_repo $REPO'
-    - '[ ! -z $REPO ] && git fetch remote_repo'
-    - '[ ! -z $REPO ] && git checkout -b remote_branch remote_repo/$BRANCH'
-    - '[ ! -z $REPO ] && echo "Using remote branch commit:"'
-    - '[   -z $REPO ] && echo "Using current branch commit:"'
-    - git rev-parse HEAD
-    - git submodule deinit --all -f
-    - git submodule update --init --recursive
-    - cd boot/cypress
-    - echo make app APP_NAME=BlinkyApp BUILDCFG=Debug   IMG_TYPE=BOOT    PLATFORM=${PSOC^^} IMG_ID=${IMG_ID} FLASH_MAP=${JSON}
-    -      make app APP_NAME=BlinkyApp BUILDCFG=Debug   IMG_TYPE=BOOT    PLATFORM=${PSOC^^} IMG_ID=${IMG_ID} FLASH_MAP=${JSON}
-    -      make app APP_NAME=BlinkyApp BUILDCFG=Debug   IMG_TYPE=UPGRADE PLATFORM=${PSOC^^} IMG_ID=${IMG_ID} FLASH_MAP=${JSON}
-    -      make app APP_NAME=BlinkyApp BUILDCFG=Release IMG_TYPE=BOOT    PLATFORM=${PSOC^^} IMG_ID=${IMG_ID} FLASH_MAP=${JSON}
-    -      make app APP_NAME=BlinkyApp BUILDCFG=Release IMG_TYPE=UPGRADE PLATFORM=${PSOC^^} IMG_ID=${IMG_ID} FLASH_MAP=${JSON}
-
-
-.build_mcuboot:
-  retry:
-    max: 0
-  tags:
-    - FWS_LIN_BUILD
-  needs: []
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    TOOLCHAIN_PATH: /home/fw-security/ModusToolbox/tools_2.3/gcc
-  artifacts:
-    expire_in: 4 weeks
-    paths:
-      - boot/cypress/MCUBootApp/out/${PSOC^^}/Debug/MCUBootApp.hex
-      - boot/cypress/MCUBootApp/out/${PSOC^^}/Release/MCUBootApp.hex
-  script:
-# HTTP 1.1 workaround for `error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)`
-#    - git config --global http.version HTTP/1.1
-#    - git config http.postBuffer 1048576000
-#    - git config http.postBuffer
-    - env
-    - '[ ! -z $REPO ] && git remote add remote_repo $REPO'
-    - '[ ! -z $REPO ] && git fetch remote_repo'
-    - '[ ! -z $REPO ] && git checkout -b remote_branch remote_repo/$BRANCH'
-    - '[ ! -z $REPO ] && echo "Using remote branch commit:"'
-    - '[   -z $REPO ] && echo "Using current branch commit:"'
-    - git rev-parse HEAD
-    - git submodule deinit --all -f
-    - git submodule update --init --recursive
-    - cd boot/cypress
-    - echo make app APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=${PSOC^^} BUILDCFG=Debug   ENC_IMG=${ENCRYPT} FLASH_MAP=${JSON} USE_BOOTSTRAP=${BOOTSTRAP} ${DEVICE_MPN}
-    -      make app APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=${PSOC^^} BUILDCFG=Debug   ENC_IMG=${ENCRYPT} FLASH_MAP=${JSON} USE_BOOTSTRAP=${BOOTSTRAP} ${DEVICE_MPN}
-    -      make app APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=${PSOC^^} BUILDCFG=Release ENC_IMG=${ENCRYPT} FLASH_MAP=${JSON} USE_BOOTSTRAP=${BOOTSTRAP} ${DEVICE_MPN}
-
-
-# Explorer MCUBoot build job template
-explorer_mcuboot_template:
-  stage: build_mcuboot
-  tags:
-    - FWS_LIN_BUILD
-  needs: []
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-      - $CIVAR_EXPLORER_DISABLED !="0"
-  variables:
-    TOOLCHAIN_PATH: /home/fw-security/ModusToolbox/tools_2.3/gcc
-    JSON: ./platforms/cy_flash_pal/flash_explorer/flashmap/explorer_swap_single_psvp.json
-    PSOC: EXPLORER
-    ENCRYPT: 0
-  artifacts:
-    expire_in: 4 weeks
-    paths:
-      - boot/cypress/MCUBootApp/out/${PSOC^^}/Debug/MCUBootApp.hex
-      - boot/cypress/MCUBootApp/out/${PSOC^^}/Release/MCUBootApp.hex
-  script:
-    - env
-    - '[ ! -z $REPO ] && git remote add remote_repo $REPO'
-    - '[ ! -z $REPO ] && git fetch remote_repo'
-    - '[ ! -z $REPO ] && git checkout -b remote_branch remote_repo/$BRANCH'
-    - '[ ! -z $REPO ] && echo "Using remote branch commit:"'
-    - '[   -z $REPO ] && echo "Using current branch commit:"'
-    - git rev-parse HEAD
-    - git submodule deinit --all -f
-    - git submodule update --init --recursive
-    - cd boot/cypress
-    - echo make app APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=${PSOC^^} BUILDCFG=Debug   ENC_IMG=${ENCRYPT} FLASH_MAP=${JSON} USE_BOOTSTRAP=${BOOTSTRAP}
-    -      make app APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=${PSOC^^} BUILDCFG=Debug   ENC_IMG=${ENCRYPT} FLASH_MAP=${JSON} USE_BOOTSTRAP=${BOOTSTRAP}
-    -      make app APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=${PSOC^^} BUILDCFG=Release ENC_IMG=${ENCRYPT} FLASH_MAP=${JSON} USE_BOOTSTRAP=${BOOTSTRAP}
-
-
-.tests_common:
-  retry:
-    max: 1
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  artifacts:
-    when: always
-    expire_in: 12 weeks
-    paths:
-      - fwsecurity_test/secure_boot/_logs/**/*
-  script:
-    - ls "env:"
-    - python -V
-    - virtualenv venv
-    - ./venv/Scripts/activate.ps1
-    - python -V
-    - git clone https://gitlab.auc.infineon.com/repo/fwsecurity_test.git --single-branch -b $TEST_BRANCH_PSOC6
-    - git rev-parse HEAD
-    - cd fwsecurity_test
-    - pip install --upgrade --force-reinstall -r requirements.txt
-    - cd secure_boot
-    - pip install --upgrade --force-reinstall -r secure_boot_req.txt
-    - python -m pytest -s $ENV:TEST_SELECT --maxfail=$ENV:MAXFAIL
-#    - python -m pytest -s -k test_slot_1_progr --exitfirst
-## Autoremoved by global gitlab variable `GIT_STRATEGY = CLONE`
-#  after_script:
-#    - ./venv/Scripts/deactivate
-#    - rm -r venv
-
-
-.061_512k_common:
-  tags:
-    - MCUBOOT_TEST_061_512K_PM_COMMON
-#    - TRBO_LAPTOP
-  variables:
-    OPENOCD_PATH: C:/Users/fw_security/ModusToolbox/tools_2.0/openocd
-    CI_SERIAL_PORT: COM255
-    TARGET_ID: 0C0515B202200400
-#    CI_SERIAL_PORT: COM29
-#    TARGET_ID: 110611C401287400
-  before_script:
-    - C:/Users/fw_security/ModusToolbox/tools_2.0/openocd/bin/openocd -s "scripts" -f "interface/kitprog3.cfg" -c "set ENABLE_CM0 0; set ENABLE_ACQUIRE 1" -c "transport select swd" -f "target/psoc6.cfg" -c "cmsis_dap_serial ${ENV:TARGET_ID}; kitprog3 power_config on ${ENV:CIVAR_VOLTAGE_061_512K}; init; shutdown"
-  after_script:
-    - C:/Users/fw_security/ModusToolbox/tools_2.0/openocd/bin/openocd -s "scripts" -f "interface/kitprog3.cfg" -c "set ENABLE_CM0 0; set ENABLE_ACQUIRE 1" -c "transport select swd" -f "target/psoc6.cfg" -c "cmsis_dap_serial ${ENV:TARGET_ID}; kitprog3 power_config off"
-  extends: .tests_common
-
-#Enable reserved 062S3 kit for SWAP encryption tests
-.512k_swap:
-  stage: 512k_swap_tests
-  tags:
-    - MCUBOOT_TEST_512K_ENCRYPT_SWAP
-  variables:
-    OPENOCD_PATH: C:/Users/fw_security/ModusToolbox/tools_2.0/openocd
-    CI_SERIAL_PORT: COM181
-    TARGET_ID: 18160C1C02179400
-    TEST_ENCRYPT: 0
-  extends: .tests_common
-
-#BOOT_SWAP_TYPE_REVERT FAIL (DISABLE THIS KIT)
-#https://devops-git.aus.cypress.com/repo/cy_mcuboot_project/cy_mcuboot/-/jobs/7432044
-...512k_swap:
-  stage: 512k_swap_tests
-  tags:
-    - MCUBOOT_TEST_512K_SWAP
-  variables:
-    OPENOCD_PATH: C:/Users/fw_security/ModusToolbox/tools_2.0/openocd
-    CI_SERIAL_PORT: COM51
-    TARGET_ID: 1D1E1523012A8400
-    TEST_ENCRYPT: 0
-  extends: .tests_common
-
-.1m_wifi_bt_swap:
-  stage: 1m_swap_tests
-  tags:
-    - MCUBOOT_TEST_1M_SWAP
-  variables:
-    OPENOCD_PATH: C:/Users/fw_security/ModusToolbox/tools_2.0/openocd
-    CI_SERIAL_PORT: COM41
-    TARGET_ID: 0C25186C03227400
-    TEST_ENCRYPT: 0
-  extends: .tests_common
-
-.1m_ble_swap:
-  stage: 1m_swap_tests
-  tags:
-    - MCUBOOT_TEST_1M_BLE_SWAP
-  variables:
-    OPENOCD_PATH: C:/Users/fw_security/ModusToolbox/tools_2.0/openocd
-    CI_SERIAL_PORT: COM211
-    TARGET_ID: 140D0F7E01051400
-    TEST_ENCRYPT: 0
-  extends: .tests_common
-
-.063_1m_swap:
-  stage: 1m_swap_tests
-  tags:
-    - MCUBOOT_TEST_416045_SWAP
-#   - MCUBOOT_TEST_063_BLE_ENCRYPT_SWAP / COM207 (Reserved for Swap Encrypt)
-  variables:
-    OPENOCD_PATH: C:/Users/fw_security/ModusToolbox/tools_2.0/openocd
-    CI_SERIAL_PORT: COM201
-    TARGET_ID: 091208F302098400
-    TEST_ENCRYPT: 0
-  extends: .tests_common
-
-.2m_swap:
-  stage: 2m_swap_tests
-  tags:
-    - MCUBOOT_TEST_2M_SWAP
-  variables:
-    OPENOCD_PATH: C:/Users/fw_security/ModusToolbox/tools_2.0/openocd
-    CI_SERIAL_PORT: COM61
-    TARGET_ID: 1D18021003077400
-    TEST_ENCRYPT: 0
-  extends: .tests_common
-
-.2m_eval_swap:
-  stage: 2m_swap_tests
-  tags:
-    - MCUBOOT_TEST_2M_EVAL
-  variables:
-    OPENOCD_PATH: C:/Users/fw_security/ModusToolbox/tools_2.0/openocd
-    CI_SERIAL_PORT: COM69
-    TARGET_ID: 050E05CD00020400
-    TEST_ENCRYPT: 0
-  extends: .tests_common
-
-.512k_overwrite:
-  stage: 512k_overwrite_tests
-  tags:
-    - MCUBOOT_TEST_512K_OVERWRITE
-  variables:
-    OPENOCD_PATH: C:/Users/fw_security/ModusToolbox/tools_2.0/openocd
-    CI_SERIAL_PORT: COM54
-    TARGET_ID: 0E12080002069400
-    TEST_ENCRYPT: 0
-  extends: .tests_common
-
-.1m_wifi_bt_overwrite:
-  stage: 1m_overwrite_tests
-  tags:
-    - MCUBOOT_TEST_1M_OVERWRITE
-  variables:
-    OPENOCD_PATH: C:/Users/fw_security/ModusToolbox/tools_2.0/openocd
-    CI_SERIAL_PORT: COM44
-    TARGET_ID: 031802F301237400
-    TEST_ENCRYPT: 0
-  extends: .tests_common
-
-.063_1m_overwrite:
-  stage: 1m_overwrite_tests
-  tags:
-    - MCUBOOT_TEST_063_BLE_OVERWRITE
-  variables:
-    OPENOCD_PATH: C:/Users/fw_security/ModusToolbox/tools_2.0/openocd
-    CI_SERIAL_PORT: COM205
-    TARGET_ID: 1B0D136503068400
-    TEST_ENCRYPT: 0
-  extends: .tests_common
-
-.2m_overwrite:
-  stage: 2m_overwrite_tests
-  tags:
-    - MCUBOOT_TEST_2M_OVERWRITE
-  variables:
-    OPENOCD_PATH: C:/Users/fw_security/ModusToolbox/tools_2.0/openocd
-    CI_SERIAL_PORT: COM64
-    TARGET_ID: 170C0C1C02179400
-    TEST_ENCRYPT: 0
-  extends: .tests_common
-
-.512k_encrypt_overwrite:
-  stage: 512k_overwrite_tests
-  tags:
-    - MCUBOOT_TEST_512K_ENCRYPT_OVERWRITE
-  variables:
-    OPENOCD_PATH: C:/Users/fw_security/ModusToolbox/tools_2.0/openocd
-    CI_SERIAL_PORT: COM184
-    TARGET_ID: 101B0C1C02179400
-    TEST_ENCRYPT: 1
-  extends: .tests_common
-
-.1m_wifi_bt_encrypt_overwrite:
-  stage: 1m_overwrite_tests
-  tags:
-    - MCUBOOT_TEST_1M_ENCRYPT_OVERWRITE
-  variables:
-    OPENOCD_PATH: C:/Users/fw_security/ModusToolbox/tools_2.0/openocd
-    CI_SERIAL_PORT: COM164
-    TARGET_ID: 0E240FF301237400
-    TEST_ENCRYPT: 1
-  extends: .tests_common
-
-.1m_ble_encrypt_overwrite:
-  stage: 1m_overwrite_tests
-  tags:
-    - MCUBOOT_TEST_1M_BLE_ENCRYPT_OVERWRITE
-  variables:
-    OPENOCD_PATH: C:/Users/fw_security/ModusToolbox/tools_2.0/openocd
-    CI_SERIAL_PORT: COM209
-    TARGET_ID: 0B0C0F7E01051400
-    TEST_ENCRYPT: 1
-  extends: .tests_common
-
-.063_1m_encrypt_overwrite:
-  stage: 1m_overwrite_tests
-  tags:
-    - MCUBOOT_TEST_416045_ENCRYPT_OVERWRITE
-  variables:
-    OPENOCD_PATH: C:/Users/fw_security/ModusToolbox/tools_2.0/openocd
-    CI_SERIAL_PORT: COM203
-    TARGET_ID: 201508F302098400
-    TEST_ENCRYPT: 1
-  extends: .tests_common
-
-.2m_encrypt_overwrite:
-  stage: 2m_overwrite_tests
-  tags:
-    - MCUBOOT_TEST_2M_ENCRYPT_OVERWRITE
-  variables:
-    OPENOCD_PATH: C:/Users/fw_security/ModusToolbox/tools_2.0/openocd
-    CI_SERIAL_PORT: COM144
-    TARGET_ID: 170511C900020400
-    TEST_ENCRYPT: 1
-  extends: .tests_common
-
-######################################################################################################################################
-#######################################################  2 0 8 2 9   A P P S  ########################################################
-######################################################################################################################################
-
-.20829_build_blinky:
-  stage: cyw20829_build
-  needs: []
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  artifacts:
-    expire_in: 4 weeks
-    paths:
-      - boot/cypress/BlinkyApp/out/CYW20829/Debug/boot/BlinkyApp.elf
-      - boot/cypress/BlinkyApp/out/CYW20829/Debug/boot/*.hex
-      - boot/cypress/BlinkyApp/out/CYW20829/Debug/boot/*.bin
-      - boot/cypress/BlinkyApp/out/CYW20829/Debug/upgrade/BlinkyApp.elf
-      - boot/cypress/BlinkyApp/out/CYW20829/Debug/upgrade/*.hex
-      - boot/cypress/BlinkyApp/out/CYW20829/Debug/upgrade/*.bin
-      - boot/cypress/BlinkyApp/out/CYW20829/Release/boot/BlinkyApp.elf
-      - boot/cypress/BlinkyApp/out/CYW20829/Release/boot/*.hex
-      - boot/cypress/BlinkyApp/out/CYW20829/Release/boot/*.bin
-      - boot/cypress/BlinkyApp/out/CYW20829/Release/upgrade/BlinkyApp.elf
-      - boot/cypress/BlinkyApp/out/CYW20829/Release/upgrade/*.hex
-      - boot/cypress/BlinkyApp/out/CYW20829/Release/upgrade/*.bin
-  script:
-    - git submodule deinit --all -f
-    - git submodule update --init --recursive --force
-
-    - python -V
-    - pip install --upgrade --force-reinstall git+http://git-ore.aus.cypress.com/repo/cysecuretools.git@${CY_SECURETOOLS_BRANCH}
-    - pip install --upgrade --force-reinstall git+http://git-ore.aus.cypress.com/repo/cysecuretools.git@${TESTAPPS_CYW20829_BRANCH}
-    - cysecuretools -v version
-    - cd boot/cypress
-    - cysecuretools -t cyw20829 init --testapps
-
-    - make app APP_NAME=BlinkyApp BUILDCFG=Debug   PLATFORM=CYW20829 IMG_TYPE=BOOT    FLASH_MAP=./platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_swap_single.json IMG_ID=1
-    - make app APP_NAME=BlinkyApp BUILDCFG=Debug   PLATFORM=CYW20829 IMG_TYPE=UPGRADE FLASH_MAP=./platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_swap_single.json IMG_ID=1
-    - make app APP_NAME=BlinkyApp BUILDCFG=Release PLATFORM=CYW20829 IMG_TYPE=BOOT    FLASH_MAP=./platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_swap_single.json IMG_ID=1
-    - make app APP_NAME=BlinkyApp BUILDCFG=Release PLATFORM=CYW20829 IMG_TYPE=UPGRADE FLASH_MAP=./platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_swap_single.json IMG_ID=1
-
-.win_20829_build_blinky:
-  when: manual
-  tags:
-    - FWS_WIN_BUILD
-  variables:
-    TOOLCHAIN_PATH: C:/Users/cydesigner/ModusToolbox/tools_2.3/gcc
-  before_script:
-    - virtualenv venv
-    - ./venv/scripts/activate.ps1
-  extends: .20829_build_blinky
-
-.mac_20829_build_blinky:
-  when: manual
-  tags:
-    - FWS_MAC_BUILD
-  variables:
-    TOOLCHAIN_PATH: /Applications/ModusToolbox/tools_2.3/gcc
-  before_script:
-    - virtualenv venv
-    - source venv/bin/activate
-  extends: .20829_build_blinky
-
-.lin_20829_build_blinky:
-  when: manual
-  tags:
-    - FWS_LIN_BUILD
-  variables:
-    TOOLCHAIN_PATH: /home/fw-security/ModusToolbox/tools_2.3/gcc
-  before_script:
-    - virtualenv venv
-    - source venv/bin/activate
-  extends: .20829_build_blinky
-
-
-
-.20829_build_mcuboot:
-  stage: cyw20829_build
-  needs: []
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  artifacts:
-    expire_in: 4 weeks
-    paths:
-      - boot/cypress/MCUBootApp/out/CYW20829/Debug/MCUBootApp.elf
-      - boot/cypress/MCUBootApp/out/CYW20829/Debug/*.hex
-      - boot/cypress/MCUBootApp/out/CYW20829/Debug/*.bin
-      - boot/cypress/MCUBootApp/out/CYW20829/Release/MCUBootApp.elf
-      - boot/cypress/MCUBootApp/out/CYW20829/Release/*.hex
-      - boot/cypress/MCUBootApp/out/CYW20829/Release/*.bin
-  script:
-    - git submodule deinit --all -f
-    - git submodule update --init --recursive --force
-
-    - python -V
-    - pip install --upgrade --force-reinstall git+http://git-ore.aus.cypress.com/repo/cysecuretools.git@${CY_SECURETOOLS_BRANCH}
-    - pip install --upgrade --force-reinstall git+http://git-ore.aus.cypress.com/repo/cysecuretools.git@${TESTAPPS_CYW20829_BRANCH}
-    - cysecuretools -v version
-    - cd boot/cypress
-    - cysecuretools -t cyw20829 init --testapps
-
-    - echo make app APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=${BOARD} BUILDCFG=Debug FLASH_MAP=${JSON}
-    -      make app APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=${BOARD} BUILDCFG=Debug      FLASH_MAP=${JSON}
-    -      make app APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=${BOARD} BUILDCFG=Release    FLASH_MAP=${JSON}
-
-.win_20829_build_mcuboot_single:
-  when: manual
-  tags:
-    - FWS_WIN_BUILD
-  variables:
-    TOOLCHAIN_PATH: C:/Users/cydesigner/ModusToolbox/tools_2.3/gcc
-    BOARD: CYW20829
-    JSON: ./platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_swap_single.json
-  before_script:
-    - virtualenv venv
-    - ./venv/scripts/activate.ps1
-  extends: .20829_build_mcuboot
-
-.win_20829_build_mcuboot_multi:
-  when: manual
-  tags:
-    - FWS_WIN_BUILD
-  variables:
-    TOOLCHAIN_PATH: C:/Users/cydesigner/ModusToolbox/tools_2.3/gcc
-    BOARD: CYW20829
-    JSON: ./platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_multi.json
-  before_script:
-    - virtualenv venv
-    - source venv/bin/activate
-  extends: .20829_build_mcuboot
-
-.mac_20829_build_mcuboot_single:
-  when: manual
-  tags:
-    - FWS_MAC_BUILD
-  variables:
-    TOOLCHAIN_PATH: /Applications/ModusToolbox/tools_2.3/gcc
-    BOARD: CYW20829
-    JSON: ./platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_swap_single.json
-  before_script:
-    - virtualenv venv
-    - source venv/bin/activate
-  extends: .20829_build_mcuboot
-
-.mac_20829_build_mcuboot_multi:
-  when: manual
-  tags:
-    - FWS_MAC_BUILD
-  variables:
-    TOOLCHAIN_PATH: /Applications/ModusToolbox/tools_2.3/gcc
-    BOARD: CYW20829
-    JSON: ./platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_multi2.json
-  before_script:
-    - virtualenv venv
-    - source venv/bin/activate
-  extends: .20829_build_mcuboot
-
-.lin_20829_build_mcuboot_single:
-  when: manual
-  tags:
-    - FWS_LIN_BUILD
-  variables:
-    TOOLCHAIN_PATH: /home/fw-security/ModusToolbox/tools_2.3/gcc
-    BOARD: CYW20829
-    JSON: ./platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_swap_single.json
-  before_script:
-    - virtualenv venv
-    - source venv/bin/activate
-  extends: .20829_build_mcuboot
-
-.lin_20829_build_mcuboot_multi:
-  when: manual
-  tags:
-    - FWS_LIN_BUILD
-  variables:
-    TOOLCHAIN_PATH: /home/fw-security/ModusToolbox/tools_2.3/gcc
-    BOARD: CYW20829
-    JSON: ./platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_multi.json
-  before_script:
-    - virtualenv venv
-    - source venv/bin/activate
-  extends: .20829_build_mcuboot
-
-
-######################################################################################################################################
-###################################################  C Y W 2 0 8 2 9  P Y T E S T ####################################################
-######################################################################################################################################
-
-.cyw20829_test:
-  stage: cyw20829_test
-  tags:
-    - CST_TEST_20829_WIN
-  artifacts:
-    when: always
-    expire_in: 12 weeks
-    paths:
-      - fwsecurity_test/secure_boot/_logs/**/*
-  retry:
-    max: 1
-  script:
-    - $Env:TARGET_ID="170811C800287400"
-    - $Env:CI_SERIAL_PORT="COM3"
-    - ls "env:"
-    - python -V
-    - virtualenv venv
-    - ./venv/Scripts/activate.ps1
-    - python -V
-    # Force install of PIP < 22, to support Cysecuretools < 4.2.0
-    - python -m pip install --upgrade --force-reinstall pip==21.3.1
-    - pip install --upgrade --force-reinstall git+http://git-ore.aus.cypress.com/repo/cysecuretools.git@${CY_SECURETOOLS_BRANCH}
-    - pip install --upgrade --force-reinstall git+http://git-ore.aus.cypress.com/repo/cysecuretools.git@${TESTAPPS_CYW20829_BRANCH}
-    - cysecuretools -v version
-    - git clone http://devops-git.aus.cypress.com/repo/fwsecurity_test.git -b ${TEST_BRANCH_20829}
-    - cd fwsecurity_test
-    - pip install --upgrade --force-reinstall -r requirements.txt
-    - cd secure_boot
-    - pip install --upgrade --force-reinstall -r secure_boot_req.txt
-    - cd ../../boot/cypress
-    - python ../../fwsecurity_test/secure_boot/ci_test_executor.py
-    - cd ../../fwsecurity_test/secure_boot
-    - python -m pytest -s $ENV:TEST_SELECT --maxfail=$ENV:MAXFAIL
-  after_script:
-    - ./venv/Scripts/deactivate
-    - rm -r venv
-
-######## SWAP DEBUG ########
-cyw20829_swap_normal_shared:
-  only:
-    - schedules
-  variables:
-    CIVAR_POLICY: ./policy/policy_no_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_swap_shared
-    TEST_SELECT: $TEST_SWAP
-  needs:
-    - mac_20829_mcuboot_normal_swap_shared
-  extends: .cyw20829_test
-
-cyw20829_swap_normal:
-  only:
-    - schedules
-  variables:
-    CIVAR_POLICY: ./policy/policy_no_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_swap
-    TEST_SELECT: $TEST_SWAP
-  needs:
-    - mac_20829_mcuboot_normal_swap
-  extends: .cyw20829_test
-
-cyw20829_swap_normal_fih_high:
-  only:
-    - schedules
-  variables:
-    CIVAR_POLICY: ./policy/policy_no_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_swap
-    TEST_SELECT: $TEST_SWAP
-  needs:
-    - mac_20829_mcuboot_normal_swap_fih_high
-  extends: .cyw20829_test
-
-cyw20829_swap_secure:
-  only:
-    - schedules
-  variables:
-    CIVAR_POLICY: ./policy/policy_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_swap_secure
-    TEST_SELECT: $TEST_SWAP
-  needs:
-    - mac_20829_mcuboot_secure_swap
-  extends: .cyw20829_test
-
-cyw20829_swap_secure_enc:
-  only:
-    - schedules
-  variables:
-    CIVAR_POLICY: ./policy/policy_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_swap_secure
-    TEST_ENCRYPT: 1
-    TEST_SELECT: $TEST_SWAP
-  needs:
-    - mac_20829_mcuboot_secure_encrypt_swap
-  extends: .cyw20829_test
-
-cyw20829_swap_secure_enc_fih_off:
-  except:
-    variables:
-      - $COV != "0"
-      - $CIVAR_MICRO_TEST != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CIVAR_POLICY: ./policy/policy_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_swap_secure
-    TEST_ENCRYPT: 1
-    TEST_SELECT: $TEST_SWAP
-  needs:
-    - mac_20829_mcuboot_secure_encrypt_swap_fih_off
-  extends: .cyw20829_test
-
-cyw20829_swap_secure_rbc:
-  except:
-    variables:
-      - $COV != "0"
-      - $CIVAR_MICRO_TEST != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CIVAR_DESTRUCTIVE: 1
-    CIVAR_POLICY: ./policy/policy_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_swap_secure_rbc
-    TEST_SELECT: $TEST_RBC
-  needs:
-    - mac_20829_mcuboot_secure_rollback_swap
-  extends: .cyw20829_test
-
-cyw20829_swap_secure_rbc_enc:
-  only:
-    - schedules
-  variables:
-    CIVAR_DESTRUCTIVE: 1
-    CIVAR_POLICY: ./policy/policy_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_swap_secure_rbc
-    TEST_ENCRYPT: 1
-    TEST_SELECT: $TEST_RBC
-  needs:
-    - mac_20829_mcuboot_secure_encrypt_rollback_swap
-  extends: .cyw20829_test
-
-
-######## OVERWRITE DEBUG ########
-cyw20829_overwrite_normal:
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CIVAR_POLICY: ./policy/policy_no_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_overwrite
-    TEST_SELECT: $TEST_OVERWRITE
-  needs:
-    - mac_20829_mcuboot_normal_overwrite
-  extends: .cyw20829_test
-
-cyw20829_overwrite_secure:
-  only:
-    - schedules
-  variables:
-    CIVAR_POLICY: ./policy/policy_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_overwrite_secure
-    TEST_SELECT: $TEST_OVERWRITE
-  needs:
-    - mac_20829_mcuboot_secure_overwrite
-  extends: .cyw20829_test
-
-cyw20829_overwrite_secure_enc:
-  only:
-    - schedules
-  variables:
-    CIVAR_POLICY: ./policy/policy_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_overwrite_secure
-    TEST_ENCRYPT: 1
-    TEST_SELECT: $TEST_OVERWRITE
-  needs:
-    - mac_20829_mcuboot_secure_encrypt_overwrite
-  extends: .cyw20829_test
-
-cyw20829_overwrite_secure_rbc:
-  only:
-    - schedules
-  variables:
-    CIVAR_DESTRUCTIVE: 1
-    CIVAR_POLICY: ./policy/policy_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_overwrite_secure_rbc
-    TEST_SELECT: $TEST_RBC
-  needs:
-    - mac_20829_mcuboot_secure_rollback_overwrite
-  extends: .cyw20829_test
-
-cyw20829_overwrite_secure_rbc_enc:
-  only:
-    - schedules
-  variables:
-    CIVAR_DESTRUCTIVE: 1
-    CIVAR_POLICY: ./policy/policy_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_overwrite_secure_rbc
-    TEST_ENCRYPT: 1
-    TEST_SELECT: $TEST_RBC
-  needs:
-    - mac_20829_mcuboot_secure_encrypt_rollback_overwrite
-  extends: .cyw20829_test
-
-
-######## SWAP RELEASE ########
-cyw20829_swap_normal_release:
-  only:
-    - schedules
-  variables:
-    CIVAR_POLICY: ./policy/policy_no_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_swap
-    BUILDCFG: Release
-    TEST_SELECT: $TEST_SWAP_RELEASE
-  needs:
-    - mac_20829_mcuboot_normal_swap
-  extends: .cyw20829_test
-
-cyw20829_swap_secure_release:
-  only:
-    - schedules
-  variables:
-    CIVAR_POLICY: ./policy/policy_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_swap_secure
-    BUILDCFG: Release
-    TEST_SELECT: $TEST_SWAP_RELEASE
-  needs:
-    - mac_20829_mcuboot_secure_swap
-  extends: .cyw20829_test
-
-cyw20829_swap_secure_enc_release:
-  except:
-    variables:
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CIVAR_POLICY: ./policy/policy_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_swap_secure
-    TEST_ENCRYPT: 1
-    BUILDCFG: Release
-    TEST_SELECT: $TEST_SWAP_RELEASE
-  needs:
-    - mac_20829_mcuboot_secure_encrypt_swap
-  extends: .cyw20829_test
-
-cyw20829_swap_secure_rbc_release:
-  only:
-    - schedules
-  variables:
-    CIVAR_DESTRUCTIVE: 1
-    CIVAR_POLICY: ./policy/policy_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_swap_secure_rbc
-    BUILDCFG: Release
-    TEST_SELECT: $TEST_RBC_RELEASE
-  needs:
-    - mac_20829_mcuboot_secure_rollback_swap
-  extends: .cyw20829_test
-
-cyw20829_swap_secure_rbc_enc_release:
-  only:
-    - schedules
-  variables:
-    CIVAR_DESTRUCTIVE: 1
-    CIVAR_POLICY: ./policy/policy_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_swap_secure_rbc
-    TEST_ENCRYPT: 1
-    BUILDCFG: Release
-    TEST_SELECT: $TEST_RBC_RELEASE
-  needs:
-    - mac_20829_mcuboot_secure_encrypt_rollback_swap
-  extends: .cyw20829_test
-
-
-######## OVERWRITE RELEASE ########
-cyw20829_overwrite_normal_release:
-  only:
-    - schedules
-  variables:
-    CIVAR_POLICY: ./policy/policy_no_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_overwrite
-    BUILDCFG: Release
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-  needs:
-    - mac_20829_mcuboot_normal_overwrite
-  extends: .cyw20829_test
-
-cyw20829_overwrite_secure_release:
-  only:
-    - schedules
-  variables:
-    CIVAR_POLICY: ./policy/policy_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_overwrite_secure
-    BUILDCFG: Release
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-  needs:
-    - mac_20829_mcuboot_secure_overwrite
-  extends: .cyw20829_test
-
-cyw20829_overwrite_secure_enc_release:
-  only:
-    - schedules
-  variables:
-    CIVAR_POLICY: ./policy/policy_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_overwrite_secure
-    TEST_ENCRYPT: 1
-    BUILDCFG: Release
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-  needs:
-    - mac_20829_mcuboot_secure_encrypt_overwrite
-  extends: .cyw20829_test
-
-cyw20829_overwrite_secure_rbc_release:
-  only:
-    - schedules
-  variables:
-    CIVAR_DESTRUCTIVE: 1
-    CIVAR_POLICY: ./policy/policy_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_overwrite_secure_rbc
-    BUILDCFG: Release
-    TEST_SELECT: $TEST_RBC_RELEASE
-  needs:
-    - mac_20829_mcuboot_secure_rollback_overwrite
-  extends: .cyw20829_test
-
-cyw20829_overwrite_secure_rbc_enc_release:
-  only:
-    - schedules
-  variables:
-    CIVAR_DESTRUCTIVE: 1
-    CIVAR_POLICY: ./policy/policy_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_overwrite_secure_rbc
-    TEST_ENCRYPT: 1
-    BUILDCFG: Release
-    TEST_SELECT: $TEST_RBC_RELEASE
-  needs:
-    - mac_20829_mcuboot_secure_encrypt_rollback_overwrite
-  extends: .cyw20829_test
-
-cyw20829_overwrite_secure_rbc_fih_low_release:
-  except:
-    variables:
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CIVAR_DESTRUCTIVE: 1
-    CIVAR_POLICY: ./policy/policy_secure.json
-    TEST_CONFIG: CI_MCUBoot_20829_single_overwrite_secure_rbc
-    TEST_SELECT: $TEST_RBC_RELEASE
-  needs:
-    - mac_20829_mcuboot_secure_rollback_overwrite_fih_low
-  extends: .cyw20829_test
-
-######################################################################################################################################
-################################################  C Y W 2 0 8 2 9  B A S E  T E S T  #################################################
-######################################################################################################################################
-
-.cyw20829_base_test:
-  stage: cyw20829_test
-  tags:
-    - CST_TEST_20829_WIN
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  artifacts:
-    when: always
-    expire_in: 12 weeks
-    paths:
-      - cy_boot_test_suite/test_tools/ci/20829/test_output.log
-  script:
-    - python -V
-    - virtualenv venv
-    - ./venv/Scripts/activate.ps1
-    - python -V
-    - git clone http://git-ore.aus.cypress.com/YNCI/cy_boot_test_suite.git -b $TEST_BRANCH_20829
-    - cd cy_boot_test_suite/test_tools/ci/20829
-    - pip install --upgrade --force-reinstall -r requirements.txt
-    - pip install --upgrade --force-reinstall git+http://git-ore.aus.cypress.com/repo/cysecuretools.git@${CY_SECURETOOLS_BRANCH}
-    - pip install --upgrade --force-reinstall git+http://git-ore.aus.cypress.com/repo/cysecuretools.git@${TESTAPPS_CYW20829_BRANCH}
-    - cysecuretools -v version
-    - python 20829_test.py
-  after_script:
-    - ./venv/Scripts/deactivate
-    - rm -r venv
-
-.win_cyw20829_base_test_single:
-  needs:
-    - win_20829_build_blinky
-    - win_20829_build_mcuboot_single
-  extends: .cyw20829_base_test
-
-.mac_cyw20829_base_test_single:
-  needs:
-    - mac_20829_build_blinky
-    - mac_20829_build_mcuboot_single
-  extends: .cyw20829_base_test
-
-.lin_cyw20829_base_test_single:
-  needs:
-    - lin_20829_build_blinky
-    - lin_20829_build_mcuboot_single
-  extends: .cyw20829_base_test
-
-.win_cyw20829_base_test_multi:
-  needs:
-    - win_20829_build_blinky
-    - win_20829_build_mcuboot_multi
-  extends: .cyw20829_base_test
-
-.mac_cyw20829_base_test_multi:
-  needs:
-    - mac_20829_build_blinky
-    - mac_20829_build_mcuboot_multi
-  extends: .cyw20829_base_test
-
-.lin_cyw20829_base_test_multi:
-  needs:
-    - lin_20829_build_blinky
-    - lin_20829_build_mcuboot_multi
-  extends: .cyw20829_base_test
-
-######################################################################################################################################
-########################################################  B L I N K Y  A P P S  ######################################################
-######################################################################################################################################
-
-################################### 0 6 1   5 1 2 K   B L I N K Y   A P P S  S W A P  M O D E ########################################
-
-061_512k_blinky_swap:
-  stage: build_blinky
-  variables:
-    PSOC: PSOC_061_512K
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-061_512k_blinky_swap_shared:
-  stage: build_blinky
-  variables:
-    PSOC: PSOC_061_512K
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_shared.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-############################################# 5 1 2 K  B L I N K Y  A P P S  S W A P  M O D E ########################################
-
-512k_blinky_swap:
-  stage: build_blinky
-  variables:
-    PSOC: PSOC_062_512K
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single.json
-    IMG_ID: 1
-  extends: .build_blinky
-  
-512k_blinky_swap_smif:
-  stage: build_blinky
-  variables:
-    PSOC: PSOC_062_512K
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single_smif.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-512k_blinky_xip_swap:
-  stage: build_blinky
-  variables:
-    PSOC: PSOC_062_512K
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_xip_swap.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-512k_blinky_swap_shared:
-  stage: build_blinky
-  only:
-    - schedules
-  variables:
-    PSOC: PSOC_062_512K
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_shared.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-512k_blinky_swap_cm0p:
-  stage: build_blinky
-  only:
-    - schedules
-  variables:
-    PSOC: PSOC_062_512K
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single_cm0p.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-############################################# 1 M  B L I N K Y  A P P S  S W A P  M O D E ############################################
-
-1m_blinky_swap:
-  stage: build_blinky
-  variables:
-    PSOC: PSOC_062_1M
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-1m_blinky_swap_smif:
-  stage: build_blinky
-  variables:
-    PSOC: PSOC_062_1M
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single_smif.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-1m_blinky_xip_swap:
-  stage: build_blinky
-  only:
-    - schedules
-  variables:
-    PSOC: PSOC_062_1M
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_xip_swap.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-1m_blinky_swap_shared:
-  stage: build_blinky
-  only:
-    - schedules
-  variables:
-    PSOC: PSOC_062_1M
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_shared.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-1m_blinky_swap_cm0p:
-  stage: build_blinky
-  only:
-    - schedules
-  variables:
-    PSOC: PSOC_062_1M
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single_cm0p.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-##################################### 0 6 3   1 M   B L I N K Y   A P P S  S W A P  M O D E ##########################################
-
-063_1m_blinky_swap:
-  stage: build_blinky
-  variables:
-    PSOC: PSOC_063_1M
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-063_1m_blinky_shared:
-  stage: build_blinky
-  only:
-    - schedules
-  variables:
-    PSOC: PSOC_063_1M
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_shared.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-063_1m_blinky_swap_cm0p:
-  stage: build_blinky
-  variables:
-    PSOC: PSOC_063_1M
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single_cm0p.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-######################################## 2 M  B L I N K Y  A P P S  S W A P  M O D E #################################################
-
-2m_blinky_swap:
-  stage: build_blinky
-  variables:
-    PSOC: PSOC_062_2M
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-2m_blinky_swap_smif:
-  stage: build_blinky
-  variables:
-    PSOC: PSOC_062_2M
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single_smif.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-2m_blinky_xip_swap:
-  stage: build_blinky
-  only:
-    - schedules
-  variables:
-    PSOC: PSOC_062_2M
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_xip_swap.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-2m_blinky_swap_shared:
-  stage: build_blinky
-  only:
-    - schedules
-  variables:
-    PSOC: PSOC_062_2M
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_shared.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-2m_blinky_swap_cm0p:
-  stage: build_blinky
-  only:
-    - schedules
-  variables:
-    PSOC: PSOC_062_2M
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single_cm0p.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-########################## 0 6 1   5 1 2 K   B L I N K Y   A P P S  O V E R W R I T E  M O D E  #######################################
-
-061_512k_blinky_overwrite:
-  stage: build_blinky
-  variables:
-    PSOC: PSOC_061_512K
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-################################## 5 1 2 K  B L I N K Y  A P P S  O V E R W R I T E  M O D E #########################################
-
-512k_blinky_overwrite:
-  stage: build_blinky
-  variables:
-    PSOC: PSOC_062_512K
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-512k_blinky_overwrite_smif:
-  stage: build_blinky
-  variables:
-    PSOC: PSOC_062_512K
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single_smif.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-512k_blinky_xip_overwrite:
-  stage: build_blinky
-  only:
-    - schedules
-  variables:
-    PSOC: PSOC_062_512K
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_xip_overwrite.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-################################# 1 M  B L I N K Y  A P P S  O V E R W R I T E  M O D E  #############################################
-
-1m_blinky_overwrite:
-  stage: build_blinky
-  variables:
-    PSOC: PSOC_062_1M
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-1m_blinky_overwrite_smif:
-  stage: build_blinky
-  variables:
-    PSOC: PSOC_062_1M
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single_smif.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-1m_blinky_xip_overwrite:
-  stage: build_blinky
-  only:
-    - schedules
-  variables:
-    PSOC: PSOC_062_1M
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_xip_overwrite.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-########################### 0 6 3   1 M   B L I N K Y   A P P S  O V E R W R I T E  M O D E  #########################################
-
-063_1m_blinky_overwrite:
-  stage: build_blinky
-  variables:
-    PSOC: PSOC_063_1M
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-################################## 2 M  B L I N K Y  A P P S  O V E R W R I T E  M O D E  ############################################
-
-2m_blinky_overwrite:
-  stage: build_blinky
-  variables:
-    PSOC: PSOC_062_2M
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-2m_blinky_overwrite_smif:
-  stage: build_blinky
-  variables:
-    PSOC: PSOC_062_2M
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single_smif.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-2m_blinky_overwrite_xip:
-  stage: build_blinky
-  variables:
-    PSOC: PSOC_062_2M
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_xip_overwrite.json
-    IMG_ID: 1
-  extends: .build_blinky
-
-######################################################################################################################################
-################################################## M C U B O O T   S W A P   M O D E #################################################
-######################################################################################################################################
-
-######################################### M C U B O O T   0 6 1 - 5 1 2 K   S W A P   M O D E ########################################
-
-061_512k_mcuboot_single_swap:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single.json
-    PSOC: PSOC_061_512K
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-061_512k_mcuboot_multi_swap:
-  stage: build_mcuboot
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_multi.json
-    PSOC: PSOC_061_512K
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-061_512k_mcuboot_swap_shared:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_shared.json
-    PSOC: PSOC_061_512K
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-############################################# M C U B O O T   5 1 2 K   S W A P   M O D E ############################################
-
-512k_mcuboot_single_swap:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single.json
-    PSOC: PSOC_062_512K
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-512k_mcuboot_single_smif_swap:
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single_smif.json
-    PSOC: PSOC_062_512K
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-512k_mcuboot_multi_swap:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_multi.json
-    PSOC: PSOC_062_512K
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-.512k_mcuboot_multi_smif_swap:
-  when: manual
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_multi_smif.json
-    PSOC: PSOC_062_512K
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-512k_mcuboot_swap_xip:
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_xip_swap.json
-    PSOC: PSOC_062_512K
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-512k_mcuboot_swap_shared:
-  stage: build_mcuboot
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_shared.json
-    PSOC: PSOC_062_512K
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-512k_mcuboot_single_swap_cm0p:
-  stage: build_mcuboot
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single_cm0p.json
-    PSOC: PSOC_062_512K
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-###################################### M C U B O O T   1 M   W I F I - B T   S W A P   M O D E ######################################
-
-1m_wifi_bt_mcuboot_single_swap:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-1m_wifi_bt_mcuboot_single_smif_swap:
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single_smif.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-1m_wifi_bt_mcuboot_multi_swap:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_multi.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-1m_wifi_bt_mcuboot_multi_smif_swap:
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_multi_smif.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-1m_wifi_bt_mcuboot_swap_xip:
-  stage: build_mcuboot_smif
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_xip_swap.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-1m_wifi_bt_mcuboot_swap_shared:
-  stage: build_mcuboot
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_shared.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-1m_wifi_bt_mcuboot_single_swap_cm0p:
-  stage: build_mcuboot
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single_cm0p.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-########################################### M C U B O O T   1 M - B L E   S W A P   M O D E #########################################
-
-1m_ble_mcuboot_single_swap:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 0
-    DEVICE_MPN: DEVICE=CY8C6347BZI-BLD53
-  extends: .build_mcuboot
-
-1m_ble_mcuboot_single_smif_swap:
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single_smif.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 0
-    DEVICE_MPN: DEVICE=CY8C6347BZI-BLD53
-  extends: .build_mcuboot
-
-1m_ble_mcuboot_multi_swap:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_multi.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 0
-    DEVICE_MPN: DEVICE=CY8C6347BZI-BLD53
-  extends: .build_mcuboot
-
-1m_ble_mcuboot_multi_smif_swap:
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_multi_smif.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 0
-    DEVICE_MPN: DEVICE=CY8C6347BZI-BLD53
-  extends: .build_mcuboot
-
-1m_ble_mcuboot_swap_xip:
-  stage: build_mcuboot_smif
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_xip_swap.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 0
-    DEVICE_MPN: DEVICE=CY8C6347BZI-BLD53
-  extends: .build_mcuboot
-
-1m_ble_mcuboot_swap_shared:
-  stage: build_mcuboot
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_shared.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 0
-    DEVICE_MPN: DEVICE=CY8C6347BZI-BLD53
-  extends: .build_mcuboot
-
-1m_ble_mcuboot_single_swap_cm0p:
-  stage: build_mcuboot
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single_cm0p.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 0
-    DEVICE_MPN: DEVICE=CY8C6347BZI-BLD53
-  extends: .build_mcuboot
-
-############################################### M C U B O O T   2 M   S W A P   M O D E ##############################################
-
-2m_mcuboot_single_swap:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single.json
-    PSOC: PSOC_062_2M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-2m_mcuboot_single_swap_fih_high:
-  stage: build_mcuboot
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single.json
-    PSOC: PSOC_062_2M
-    ENCRYPT: 0
-    FIH_PROFILE: 'HIGH'
-  extends: .build_mcuboot
-
-2m_mcuboot_single_smif_swap:
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single_smif.json
-    PSOC: PSOC_062_2M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-2m_mcuboot_multi_swap:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_multi.json
-    PSOC: PSOC_062_2M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-2m_mcuboot_multi_smif_swap:
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_multi_smif.json
-    PSOC: PSOC_062_2M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-2m_mcuboot_multi_smif_swap_fih_high:
-  stage: build_mcuboot_smif
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_multi_smif.json
-    PSOC: PSOC_062_2M
-    ENCRYPT: 0
-    FIH_PROFILE: 'HIGH'
-  extends: .build_mcuboot
-
-2m_mcuboot_swap_xip:
-  stage: build_mcuboot_smif
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_xip_swap.json
-    PSOC: PSOC_062_2M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-2m_mcuboot_swap_shared:
-  stage: build_mcuboot
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_shared.json
-    PSOC: PSOC_062_2M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-2m_mcuboot_single_swap_cm0p:
-  stage: build_mcuboot
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single_cm0p.json
-    PSOC: PSOC_062_2M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-# Special MCUBoot build job with disabled Bootstrap
-2m_mcuboot_multi_smif_swap_no_bootstrap:
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_multi_smif.json
-    PSOC: PSOC_062_2M
-    ENCRYPT: 0
-    BOOTSTRAP: 0
-  extends: .build_mcuboot
-
-######################################################################################################################################
-######################################## M C U B O O T   5 1 2 K   O V E R W R I T E   M O D E #######################################
-######################################################################################################################################
-
-#################################### M C U B O O T   0 6 1 - 5 1 2 K   O V E R W R I T E   M O D E ###################################
-
-061_512k_mcuboot_single_overwrite:
-  stage: build_mcuboot
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single.json
-    PSOC: PSOC_061_512K
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-061_512k_mcuboot_multi_overwrite:
-  stage: build_mcuboot
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_multi.json
-    PSOC: PSOC_061_512K
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-######################################## M C U B O O T   5 1 2 K   O V E R W R I T E   M O D E #######################################
-
-512k_mcuboot_single_overwrite:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single.json
-    PSOC: PSOC_062_512K
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-512k_mcuboot_single_smif_overwrite:
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single_smif.json
-    PSOC: PSOC_062_512K
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-512k_mcuboot_multi_overwrite:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_multi.json
-    PSOC: PSOC_062_512K
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-.512k_mcuboot_multi_smif_overwrite:
-  when: manual
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_multi_smif.json
-    PSOC: PSOC_062_512K
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-512k_mcuboot_overwrite_xip:
-  stage: build_mcuboot_smif
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_xip_overwrite.json
-    PSOC: PSOC_062_512K
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-################################## M C U B O O T   1 M   W I F I - B T   O V E R W R I T E   M O D E #################################
-
-1m_wifi_bt_mcuboot_single_overwrite:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-1m_wifi_bt_mcuboot_single_smif_overwrite:
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single_smif.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-1m_wifi_bt_mcuboot_multi_overwrite:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_multi.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-1m_wifi_bt_mcuboot_multi_smif_overwrite:
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_multi_smif.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-1m_wifi_bt_mcuboot_overwrite_xip:
-  stage: build_mcuboot_smif
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_xip_overwrite.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-########################################## M C U B O O T   2 M   O V E R W R I T E   M O D E #########################################
-
-2m_mcuboot_single_overwrite:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single.json
-    PSOC: PSOC_062_2M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-2m_mcuboot_single_smif_overwrite:
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single_smif.json
-    PSOC: PSOC_062_2M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-2m_mcuboot_multi_overwrite:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_multi.json
-    PSOC: PSOC_062_2M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-2m_mcuboot_multi_smif_overwrite:
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_multi_smif.json
-    PSOC: PSOC_062_2M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-2m_mcuboot_overwrite_xip:
-  stage: build_mcuboot_smif
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_xip_overwrite.json
-    PSOC: PSOC_062_2M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-######################################################################################################################################
-################################ M C U B O O T   5 1 2 K   E N C R Y P T   O V E R W R I T E   M O D E ###############################
-######################################################################################################################################
-
-#################################### M C U B O O T   0 6 1 - 5 1 2 K   O V E R W R I T E   M O D E ###################################
-
-061_512k_mcuboot_single_encrypt_overwrite:
-  stage: build_mcuboot
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single.json
-    PSOC: PSOC_061_512K
-    ENCRYPT: 1
-  extends: .build_mcuboot
-
-061_512k_mcuboot_multi_encrypt_overwrite:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_multi.json
-    PSOC: PSOC_061_512K
-    ENCRYPT: 1
-  extends: .build_mcuboot
-
-######################################## M C U B O O T   5 1 2 K   O V E R W R I T E   M O D E #######################################
-
-512k_mcuboot_single_encrypt_overwrite:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single.json
-    PSOC: PSOC_062_512K
-    ENCRYPT: 1
-  extends: .build_mcuboot
-
-512k_mcuboot_single_encrypt_overwrite_fih_off:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single.json
-    PSOC: PSOC_062_512K
-    ENCRYPT: 1
-    FIH_PROFILE: 'OFF'
-  extends: .build_mcuboot
-
-512k_mcuboot_single_encrypt_overwrite_fih_low:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single.json
-    PSOC: PSOC_062_512K
-    ENCRYPT: 1
-    FIH_PROFILE: 'LOW'
-  extends: .build_mcuboot
-
-512k_mcuboot_single_smif_encrypt_overwrite:
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single_smif.json
-    PSOC: PSOC_062_512K
-    ENCRYPT: 1
-  extends: .build_mcuboot
-
-512k_mcuboot_multi_encrypt_overwrite:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_multi.json
-    PSOC: PSOC_062_512K
-    ENCRYPT: 1
-  extends: .build_mcuboot
-
-.512k_mcuboot_multi_smif_encrypt_overwrite:
-  when: manual
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_multi_smif.json
-    PSOC: PSOC_062_512K
-    ENCRYPT: 1
-  extends: .build_mcuboot
-
-512k_mcuboot_overwrite_xip_encrypt:
-  stage: build_mcuboot_smif
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_xip_overwrite.json
-    PSOC: PSOC_062_512K
-    ENCRYPT: 1
-  extends: .build_mcuboot
-
-################################# M C U B O O T   1 M   W I F I - B T   O V E R W R I T E   M O D E #################################
-
-1m_wifi_bt_mcuboot_single_encrypt_overwrite:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 1
-  extends: .build_mcuboot
-
-1m_wifi_bt_mcuboot_single_smif_encrypt_overwrite:
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single_smif.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 1
-  extends: .build_mcuboot
-
-1m_wifi_bt_mcuboot_multi_encrypt_overwrite:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_multi.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 1
-  extends: .build_mcuboot
-
-1m_wifi_bt_mcuboot_multi_smif_encrypt_overwrite:
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_multi_smif.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 1
-  extends: .build_mcuboot
-
-1m_wifi_bt_mcuboot_overwrite_xip_encrypt:
-  stage: build_mcuboot_smif
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_xip_overwrite.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 1
-  extends: .build_mcuboot
-
-#################################### M C U B O O T   1 M  -  B L E   O V E R W R I T E   M O D E ####################################
-
-1m_ble_mcuboot_single_encrypt_overwrite:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 1
-    DEVICE_MPN: DEVICE=CY8C6347BZI-BLD53
-  extends: .build_mcuboot
-
-1m_ble_mcuboot_single_smif_encrypt_overwrite:
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single_smif.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 1
-    DEVICE_MPN: DEVICE=CY8C6347BZI-BLD53
-  extends: .build_mcuboot
-
-1m_ble_mcuboot_multi_encrypt_overwrite:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_multi.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 1
-    DEVICE_MPN: DEVICE=CY8C6347BZI-BLD53
-  extends: .build_mcuboot
-
-1m_ble_mcuboot_multi_encrypt_overwrite_fih_off:
-  stage: build_mcuboot
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_multi.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 1
-    DEVICE_MPN: DEVICE=CY8C6347BZI-BLD53
-    FIH_PROFILE: 'OFF'
-  extends: .build_mcuboot
-
-1m_ble_mcuboot_multi_smif_encrypt_overwrite:
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_multi_smif.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 1
-    DEVICE_MPN: DEVICE=CY8C6347BZI-BLD53
-  extends: .build_mcuboot
-
-1m_ble_mcuboot_overwrite_xip_encrypt:
-  stage: build_mcuboot_smif
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_xip_overwrite.json
-    PSOC: PSOC_062_1M
-    ENCRYPT: 1
-    DEVICE_MPN: DEVICE=CY8C6347BZI-BLD53
-  extends: .build_mcuboot
-
-########################################## M C U B O O T   2 M   O V E R W R I T E   M O D E #########################################
-
-2m_mcuboot_single_encrypt_overwrite:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single.json
-    PSOC: PSOC_062_2M
-    ENCRYPT: 1
-  extends: .build_mcuboot
-
-2m_mcuboot_single_smif_encrypt_overwrite:
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single_smif.json
-    PSOC: PSOC_062_2M
-    ENCRYPT: 1
-  extends: .build_mcuboot
-
-2m_mcuboot_multi_encrypt_overwrite:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_multi.json
-    PSOC: PSOC_062_2M
-    ENCRYPT: 1
-  extends: .build_mcuboot
-
-2m_mcuboot_multi_smif_encrypt_overwrite:
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_multi_smif.json
-    PSOC: PSOC_062_2M
-    ENCRYPT: 1
-  extends: .build_mcuboot
-
-2m_mcuboot_overwrite_xip_encrypt:
-  stage: build_mcuboot_smif
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_xip_overwrite.json
-    PSOC: PSOC_062_2M
-    ENCRYPT: 1
-  extends: .build_mcuboot
-
-######################################################################################################################################
-########################################### M C U B O O T   0 6 3   1 M   A L L   M O D E S ##########################################
-######################################################################################################################################
-
-063_1m_mcuboot_single_swap:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single.json
-    PSOC: PSOC_063_1M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-063_1m_mcuboot_multi_swap:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_multi.json
-    PSOC: PSOC_063_1M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-063_1m_mcuboot_single_overwrite:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single.json
-    PSOC: PSOC_063_1M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-063_1m_mcuboot_single_overwrite_fih_low:
-  stage: build_mcuboot
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single.json
-    PSOC: PSOC_063_1M
-    ENCRYPT: 0
-    FIH_PROFILE: 'LOW'
-  extends: .build_mcuboot
-
-063_1m_mcuboot_multi_overwrite:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_multi.json
-    PSOC: PSOC_063_1M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-063_1m_mcuboot_single_encrypt_overwrite:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single.json
-    PSOC: PSOC_063_1M
-    ENCRYPT: 1
-  extends: .build_mcuboot
-
-063_1m_mcuboot_single_encrypt_overwrite_fih_high:
-  stage: build_mcuboot
-  only:
-    - schedules
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single.json
-    PSOC: PSOC_063_1M
-    ENCRYPT: 1
-    FIH_PROFILE: 'HIGH'
-  extends: .build_mcuboot
-
-063_1m_mcuboot_multi_encrypt_overwrite:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_multi.json
-    PSOC: PSOC_063_1M
-    ENCRYPT: 1
-  extends: .build_mcuboot
-
-063_1m_mcuboot_swap_shared:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_shared.json
-    PSOC: PSOC_063_1M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-063_1m_mcuboot_single_swap_cm0p:
-  stage: build_mcuboot
-  variables:
-    JSON: ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single_cm0p.json
-    PSOC: PSOC_063_1M
-    ENCRYPT: 0
-  extends: .build_mcuboot
-
-######################################################################################################################################
-############################################# S W A P  0 6 1 - 5 1 2 K  T E S T S ####################################################
-######################################################################################################################################
-
-061_512k_swap_single:
-  stage: 512k_swap_tests
-  extends: .061_512k_common
-  only:
-    - schedules
-  needs:
-    - 061_512k_mcuboot_single_swap
-    - 061_512k_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_061_512k_swap_single
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-061_512k_swap_multi_app1:
-  stage: 512k_swap_tests
-  extends: .061_512k_common
-  only:
-    - schedules
-  needs:
-    - 061_512k_mcuboot_multi_swap
-    - 061_512k_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_061_512k_swap_multi_app1
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-061_512k_swap_shared:
-  stage: 512k_swap_tests
-  extends: .061_512k_common
-  needs:
-    - 061_512k_mcuboot_swap_shared
-    - 061_512k_blinky_swap_shared
-  variables:
-    TEST_CONFIG: CI_MCUBoot_061_512k_swap_shared
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-061_512k_swap_single_release:
-  stage: 512k_swap_tests
-  extends: .061_512k_common
-  needs:
-    - 061_512k_mcuboot_single_swap
-    - 061_512k_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_061_512k_swap_single
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-061_512k_swap_multi_app1_release:
-  stage: 512k_swap_tests
-  extends: .061_512k_common
-  only:
-    - schedules
-  needs:
-    - 061_512k_mcuboot_multi_swap
-    - 061_512k_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_061_512k_swap_multi_app1
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-######################################################################################################################################
-################################################# S W A P  5 1 2 K  T E S T S ########################################################
-######################################################################################################################################
-
-512k_swap_custom_flashmap_internal:
-  extends: .512k_swap
-  only:
-    - schedules
-  needs: []
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_swap_custom_flashmap_internal
-    TEST_SELECT: $TEST_CUSTOM_FLASHMAP
-    BUILDCFG_TEST: Release
-    GIT_SUBMODULE_STRATEGY: recursive
-
-512k_swap_single:
-  extends: .512k_swap
-  needs:
-    - 512k_mcuboot_single_swap
-    - 512k_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_swap_single
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-512k_swap_single_smif:
-  extends: .512k_swap
-  needs:
-    - 512k_mcuboot_single_smif_swap
-    - 512k_blinky_swap_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_swap_single_smif
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-512k_swap_multi_app1:
-  extends: .512k_swap
-  only:
-    - schedules
-  needs:
-    - 512k_mcuboot_multi_swap
-    - 512k_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_swap_multi_app1
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-....512k_swap_multi_app2:
-  extends: .512k_swap
-  only:
-    - schedules
-  needs:
-    - 512k_mcuboot_multi_swap
-    - 512k_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_swap_multi_app2
-    TEST_SELECT: THREE_TESTS #SMOKE+ tests not applicable for second application with swap
-    BUILDCFG_TEST: Debug
-
-512k_swap_xip:
-  extends: .512k_swap
-  needs:
-    - 512k_mcuboot_swap_xip
-    - 512k_blinky_xip_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_swap_xip
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-512k_swap_single_cm0p:
-  extends: .512k_swap
-  only:
-    - schedules
-  needs:
-    - 512k_mcuboot_single_swap_cm0p
-    - 512k_blinky_swap_cm0p
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_swap_single_cm0p
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-512k_swap_single_release:
-  extends: .512k_swap
-  only:
-    - schedules
-  needs:
-    - 512k_mcuboot_single_swap
-    - 512k_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_swap_single
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-512k_swap_single_smif_release:
-  extends: .512k_swap
-  only:
-    - schedules
-  needs:
-    - 512k_mcuboot_single_smif_swap
-    - 512k_blinky_swap_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_swap_single_smif
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-512k_swap_multi_app1_release:
-  extends: .512k_swap
-  only:
-    - schedules
-  needs:
-    - 512k_mcuboot_multi_swap
-    - 512k_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_swap_multi_app1
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-....512k_swap_multi_app2_release:
-  extends: .512k_swap
-  only:
-    - schedules
-  needs:
-    - 512k_mcuboot_multi_swap
-    - 512k_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_swap_multi_app2
-    TEST_SELECT: THREE_TESTS #SMOKE+ tests not applicable for second application with swap
-    BUILDCFG_TEST: Release
-
-512k_swap_xip_release:
-  extends: .512k_swap
-  only:
-    - schedules
-  needs:
-    - 512k_mcuboot_swap_xip
-    - 512k_blinky_xip_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_swap_xip
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-512k_swap_single_cm0p_release:
-  extends: .512k_swap
-  only:
-    - schedules
-  needs:
-    - 512k_mcuboot_single_swap_cm0p
-    - 512k_blinky_swap_cm0p
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_swap_single_cm0p
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-######################################################################################################################################
-################################################### S W A P  1 M  T E S T S ##########################################################
-######################################################################################################################################
-
-1m_wifi_bt_swap_single:
-  extends: .1m_wifi_bt_swap
-  needs:
-    - 1m_wifi_bt_mcuboot_single_swap
-    - 1m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_single
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-1m_wifi_bt_swap_single_smif:
-  extends: .1m_wifi_bt_swap
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_single_smif_swap
-    - 1m_blinky_swap_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_single_smif
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-1m_wifi_bt_swap_multi_app1:
-  extends: .1m_wifi_bt_swap
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_swap
-    - 1m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_multi_app1
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-....1m_wifi_bt_swap_multi_app2:
-  extends: .1m_wifi_bt_swap
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_swap
-    - 1m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_multi_app2
-    TEST_SELECT: THREE_TESTS #SMOKE+ tests not applicable for second application with swap
-    BUILDCFG_TEST: Debug
-
-1m_wifi_bt_swap_multi_smif_app1:
-  extends: .1m_wifi_bt_swap
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_smif_swap
-    - 1m_blinky_swap_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_multi_smif_app1
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-....1m_wifi_bt_swap_multi_smif_app2:
-  extends: .1m_wifi_bt_swap
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_smif_swap
-    - 1m_blinky_swap_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_multi_smif_app2
-    TEST_SELECT: THREE_TESTS #SMOKE+ tests not applicable for second application with swap
-    BUILDCFG_TEST: Debug
-
-1m_wifi_bt_swap_xip:
-  extends: .1m_wifi_bt_swap
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_swap_xip
-    - 1m_blinky_xip_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_xip
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-1m_wifi_bt_swap_single_cm0p:
-  extends: .1m_wifi_bt_swap
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_single_swap_cm0p
-    - 1m_blinky_swap_cm0p
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_single_cm0p
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-1m_wifi_bt_swap_single_release:
-  extends: .1m_wifi_bt_swap
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_single_swap
-    - 1m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_single
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-1m_wifi_bt_swap_single_smif_release:
-  extends: .1m_wifi_bt_swap
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_single_smif_swap
-    - 1m_blinky_swap_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_single_smif
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-1m_wifi_bt_swap_multi_app1_release:
-  extends: .1m_wifi_bt_swap
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_swap
-    - 1m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_multi_app1
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-....1m_wifi_bt_swap_multi_app2_release:
-  extends: .1m_wifi_bt_swap
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_swap
-    - 1m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_multi_app2
-    TEST_SELECT: THREE_TESTS #SMOKE+ tests not applicable for second application with swap
-    BUILDCFG_TEST: Release
-
-1m_wifi_bt_swap_multi_smif_app1_release:
-  extends: .1m_wifi_bt_swap
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_smif_swap
-    - 1m_blinky_swap_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_multi_smif_app1
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-....1m_wifi_bt_swap_multi_smif_app2_release:
-  extends: .1m_wifi_bt_swap
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_smif_swap
-    - 1m_blinky_swap_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_multi_smif_app2
-    TEST_SELECT: THREE_TESTS #SMOKE+ tests not applicable for second application with swap
-    BUILDCFG_TEST: Release
-
-1m_wifi_bt_swap_xip_release:
-  extends: .1m_wifi_bt_swap
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_swap_xip
-    - 1m_blinky_xip_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_xip
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-1m_wifi_bt_swap_single_cm0p_release:
-  extends: .1m_wifi_bt_swap
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_single_swap_cm0p
-    - 1m_blinky_swap_cm0p
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_single_cm0p
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-############################################## 1 M - B L E   S W A P   T E S T S #####################################################
-
-1m_ble_swap_single:
-  extends: .1m_ble_swap
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_single_swap
-    - 1m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_single
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-1m_ble_swap_single_smif:
-  extends: .1m_ble_swap
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_single_smif_swap
-    - 1m_blinky_swap_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_single_smif
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-1m_ble_swap_multi_app1:
-  extends: .1m_ble_swap
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_multi_swap
-    - 1m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_multi_app1
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-....1m_ble_swap_multi_app2:
-  extends: .1m_ble_swap
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_multi_swap
-    - 1m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_multi_app2
-    TEST_SELECT: THREE_TESTS #SMOKE+ tests not applicable for second application with swap
-    BUILDCFG_TEST: Debug
-
-1m_ble_swap_multi_smif_app1:
-  extends: .1m_ble_swap
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_multi_smif_swap
-    - 1m_blinky_swap_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_multi_smif_app1
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-....1m_ble_swap_multi_smif_app2:
-  extends: .1m_ble_swap
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_multi_smif_swap
-    - 1m_blinky_swap_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_multi_smif_app2
-    TEST_SELECT: THREE_TESTS #SMOKE+ tests not applicable for second application with swap
-    BUILDCFG_TEST: Debug
-
-1m_ble_swap_xip:
-  extends: .1m_ble_swap
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_swap_xip
-    - 1m_blinky_xip_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_xip
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-1m_ble_swap_single_cm0p:
-  extends: .1m_ble_swap
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_single_swap_cm0p
-    - 1m_blinky_swap_cm0p
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_single_cm0p
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-1m_ble_swap_single_release:
-  extends: .1m_ble_swap
-  needs:
-    - 1m_ble_mcuboot_single_swap
-    - 1m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_single
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-1m_ble_swap_single_smif_release:
-  extends: .1m_ble_swap
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_single_smif_swap
-    - 1m_blinky_swap_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_single_smif
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-1m_ble_swap_multi_app1_release:
-  extends: .1m_ble_swap
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_multi_swap
-    - 1m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_multi_app1
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-....1m_ble_swap_multi_app2_release:
-  extends: .1m_ble_swap
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_multi_swap
-    - 1m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_multi_app2
-    TEST_SELECT: THREE_TESTS #SMOKE+ tests not applicable for second application with swap
-    BUILDCFG_TEST: Release
-
-1m_ble_swap_multi_smif_app1_release:
-  extends: .1m_ble_swap
-  needs:
-    - 1m_ble_mcuboot_multi_smif_swap
-    - 1m_blinky_swap_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_multi_smif_app1
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-....1m_ble_swap_multi_smif_app2_release:
-  extends: .1m_ble_swap
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_multi_smif_swap
-    - 1m_blinky_swap_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_multi_smif_app2
-    TEST_SELECT: THREE_TESTS #SMOKE+ tests not applicable for second application with swap
-    BUILDCFG_TEST: Release
-
-1m_ble_swap_xip_release:
-  extends: .1m_ble_swap
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_swap_xip
-    - 1m_blinky_xip_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_xip
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-1m_ble_swap_single_cm0p_release:
-  extends: .1m_ble_swap
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_single_swap_cm0p
-    - 1m_blinky_swap_cm0p
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_swap_single_cm0p
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-######################################################################################################################################
-############################################## S W A P  0 6 3   1 M   T E S T S ######################################################
-######################################################################################################################################
-
-063_1m_swap_single:
-  extends: .063_1m_swap
-  needs:
-    - 063_1m_mcuboot_single_swap
-    - 063_1m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_063_1m_swap_single
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-063_1m_swap_multi_app1:
-  extends: .063_1m_swap
-  only:
-    - schedules
-  needs:
-    - 063_1m_mcuboot_multi_swap
-    - 063_1m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_063_1m_swap_multi_app1
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-....063_1m_swap_multi_app2:
-  extends: .063_1m_swap
-  only:
-    - schedules
-  needs:
-    - 063_1m_mcuboot_multi_swap
-    - 063_1m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_063_1m_swap_multi_app2
-    TEST_SELECT: THREE_TESTS #SMOKE+ tests not applicable for second application with swap
-    BUILDCFG_TEST: Debug
-
-063_1m_swap_single_cm0p:
-  extends: .063_1m_swap
-  needs:
-    - 063_1m_mcuboot_single_swap_cm0p
-    - 063_1m_blinky_swap_cm0p
-  variables:
-    TEST_CONFIG: CI_MCUBoot_063_1m_swap_single_cm0p
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-063_1m_swap_single_release:
-  extends: .063_1m_swap
-  only:
-    - schedules
-  needs:
-    - 063_1m_mcuboot_single_swap
-    - 063_1m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_063_1m_swap_single
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-063_1m_swap_multi_app1_release:
-  extends: .063_1m_swap
-  only:
-    - schedules
-  needs:
-    - 063_1m_mcuboot_multi_swap
-    - 063_1m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_063_1m_swap_multi_app1
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-....063_1m_swap_multi_app2_release:
-  extends: .063_1m_swap
-  needs:
-    - 063_1m_mcuboot_multi_swap
-    - 063_1m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_063_1m_swap_multi_app2
-    TEST_SELECT: THREE_TESTS #SMOKE+ tests not applicable for second application with swap
-    BUILDCFG_TEST: Release
-
-063_1m_swap_single_cm0p_release:
-  extends: .063_1m_swap
-  only:
-    - schedules
-  needs:
-    - 063_1m_mcuboot_single_swap_cm0p
-    - 063_1m_blinky_swap_cm0p
-  variables:
-    TEST_CONFIG: CI_MCUBoot_063_1m_swap_single_cm0p
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-######################################################################################################################################
-################################################### S W A P  2 M  T E S T S ##########################################################
-######################################################################################################################################
-
-2m_eval_swap_custom_flashmap_smif:
-  extends: .2m_eval_swap
-  needs: []
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_swap_custom_flashmap_smif
-    TEST_SELECT: $TEST_CUSTOM_FLASHMAP
-    BUILDCFG_TEST: Debug
-    GIT_SUBMODULE_STRATEGY: recursive
-
-2m_eval_swap_shared:
-  extends: .2m_eval_swap
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_swap_shared
-    - 2m_blinky_swap_shared
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_swap_shared
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-2m_eval_swap_multi_smif_app1_release_no_bootstrap:
-  extends: .2m_eval_swap
-  needs:
-    - 2m_mcuboot_multi_smif_swap_no_bootstrap
-    - 2m_blinky_swap_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_swap_multi_smif_app1
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-2m_swap_single:
-  extends: .2m_swap
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_single_swap
-    - 2m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_swap_single
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-2m_swap_single_fih_high:
-  extends: .2m_swap
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_single_swap_fih_high
-    - 2m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_swap_single
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-    FIH_PROFILE: 'HIGH'
-
-2m_swap_single_smif:
-  extends: .2m_swap
-  needs:
-    - 2m_mcuboot_single_smif_swap
-    - 2m_blinky_swap_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_swap_single_smif
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-2m_swap_multi_app1:
-  extends: .2m_swap
-  needs:
-    - 2m_mcuboot_multi_swap
-    - 2m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_swap_multi_app1
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-....2m_swap_multi_app2:
-  extends: .2m_swap
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_multi_swap
-    - 2m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_swap_multi_app2
-    TEST_SELECT: THREE_TESTS #SMOKE+ tests not applicable for second application with swap
-    BUILDCFG_TEST: Debug
-
-2m_swap_multi_smif_app1:
-  extends: .2m_swap
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_multi_smif_swap
-    - 2m_blinky_swap_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_swap_multi_smif_app1
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-....2m_swap_multi_smif_app2:
-  extends: .2m_swap
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_multi_smif_swap
-    - 2m_blinky_swap_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_swap_multi_smif_app2
-    TEST_SELECT: THREE_TESTS #SMOKE+ tests not applicable for second application with swap
-    BUILDCFG_TEST: Debug
-
-2m_swap_xip:
-  extends: .2m_swap
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_swap_xip
-    - 2m_blinky_xip_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_swap_xip
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-2m_swap_single_cm0p:
-  extends: .2m_swap
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_single_swap_cm0p
-    - 2m_blinky_swap_cm0p
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_swap_single_cm0p
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-2m_swap_single_release:
-  extends: .2m_swap
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_single_swap
-    - 2m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_swap_single
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-2m_swap_single_smif_release:
-  extends: .2m_swap
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_single_smif_swap
-    - 2m_blinky_swap_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_swap_single_smif
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-2m_swap_multi_app1_release:
-  extends: .2m_swap
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_multi_swap
-    - 2m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_swap_multi_app1
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-....2m_swap_multi_app2_release:
-  extends: .2m_swap
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_multi_swap
-    - 2m_blinky_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_swap_multi_app2
-    TEST_SELECT: THREE_TESTS #SMOKE+ tests not applicable for second application with swap
-    BUILDCFG_TEST: Release
-
-2m_swap_multi_smif_app1_release:
-  extends: .2m_swap
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_multi_smif_swap
-    - 2m_blinky_swap_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_swap_multi_smif_app1
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-2m_swap_multi_smif_app1_release_fih_high:
-  extends: .2m_swap
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_multi_smif_swap_fih_high
-    - 2m_blinky_swap_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_swap_multi_smif_app1
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-....2m_swap_multi_smif_app2_release:
-  extends: .2m_swap
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_multi_smif_swap
-    - 2m_blinky_swap_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_swap_multi_smif_app2
-    TEST_SELECT: THREE_TESTS #SMOKE+ tests not applicable for second application with swap
-    BUILDCFG_TEST: Release
-
-2m_swap_xip_release:
-  extends: .2m_swap
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_swap_xip
-    - 2m_blinky_xip_swap
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_swap_xip
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-2m_swap_single_cm0p_release:
-  extends: .2m_swap
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_single_swap_cm0p
-    - 2m_blinky_swap_cm0p
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_swap_single_cm0p
-    TEST_SELECT: $TEST_SWAP_RELEASE
-    BUILDCFG_TEST: Release
-
-######################################################################################################################################
-######################################## O V E R W R I T E  0 6 1 - 5 1 2 K  T E S T S ###############################################
-######################################################################################################################################
-
-061_512k_overwrite_single:
-  stage: 512k_overwrite_tests
-  extends: .061_512k_common
-  only:
-    - schedules
-  needs:
-    - 061_512k_mcuboot_single_overwrite
-    - 061_512k_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_061_512k_overwrite_single
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-061_512k_overwrite_multi_app1:
-  stage: 512k_overwrite_tests
-  extends: .061_512k_common
-  only:
-    - schedules
-  needs:
-    - 061_512k_mcuboot_multi_overwrite
-    - 061_512k_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_061_512k_overwrite_multi_app1
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-061_512k_overwrite_single_release:
-  stage: 512k_overwrite_tests
-  extends: .061_512k_common
-  only:
-    - schedules
-  needs:
-    - 061_512k_mcuboot_single_overwrite
-    - 061_512k_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_061_512k_overwrite_single
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-061_512k_overwrite_multi_app1_release:
-  stage: 512k_overwrite_tests
-  extends: .061_512k_common
-  only:
-    - schedules
-  needs:
-    - 061_512k_mcuboot_multi_overwrite
-    - 061_512k_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_061_512k_overwrite_multi_app1
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-################################## O V E R W R I T E  0 6 1 - 5 1 2 K  T E S T S   E N C R Y P T #####################################
-
-061_512k_overwrite_single_enc:
-  stage: 512k_overwrite_tests
-  extends: .061_512k_common
-  only:
-    - schedules
-  needs:
-    - 061_512k_mcuboot_single_encrypt_overwrite
-    - 061_512k_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_061_512k_overwrite_single_enc
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-061_512k_overwrite_multi_enc_app1:
-  stage: 512k_overwrite_tests
-  extends: .061_512k_common
-  only:
-    - schedules
-  needs:
-    - 061_512k_mcuboot_multi_encrypt_overwrite
-    - 061_512k_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_061_512k_overwrite_multi_enc_app1
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-061_512k_overwrite_single_enc_release:
-  stage: 512k_overwrite_tests
-  extends: .061_512k_common
-  only:
-    - schedules
-  needs:
-    - 061_512k_mcuboot_single_encrypt_overwrite
-    - 061_512k_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_061_512k_overwrite_single_enc
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-061_512k_overwrite_multi_enc_app1_release:
-  stage: 512k_overwrite_tests
-  extends: .061_512k_common
-  needs:
-    - 061_512k_mcuboot_multi_encrypt_overwrite
-    - 061_512k_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_061_512k_overwrite_multi_enc_app1
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-######################################################################################################################################
-############################################# O V E R W R I T E  5 1 2 K  T E S T S ##################################################
-######################################################################################################################################
-
-512k_overwrite_single:
-  extends: .512k_overwrite
-  needs:
-    - 512k_mcuboot_single_overwrite
-    - 512k_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_overwrite_single
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-512k_overwrite_single_smif:
-  extends: .512k_overwrite
-  needs:
-    - 512k_mcuboot_single_smif_overwrite
-    - 512k_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_overwrite_single_smif
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-512k_overwrite_multi_app1:
-  extends: .512k_overwrite
-  needs:
-    - 512k_mcuboot_multi_overwrite
-    - 512k_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_overwrite_multi_app1
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-....512k_overwrite_multi_app2:
-  extends: .512k_overwrite
-  needs:
-    - 512k_mcuboot_multi_overwrite
-    - 512k_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_overwrite_multi_app2
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-512k_overwrite_xip:
-  extends: .512k_overwrite
-  only:
-    - schedules
-  needs:
-    - 512k_mcuboot_overwrite_xip
-    - 512k_blinky_xip_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_overwrite_xip
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-512k_overwrite_single_release:
-  extends: .512k_overwrite
-  only:
-    - schedules
-  needs:
-    - 512k_mcuboot_single_overwrite
-    - 512k_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_overwrite_single
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-512k_overwrite_single_smif_release:
-  extends: .512k_overwrite
-  only:
-    - schedules
-  needs:
-    - 512k_mcuboot_single_smif_overwrite
-    - 512k_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_overwrite_single_smif
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-512k_overwrite_multi_app1_release:
-  extends: .512k_overwrite
-  only:
-    - schedules
-  needs:
-    - 512k_mcuboot_multi_overwrite
-    - 512k_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_overwrite_multi_app1
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-....512k_overwrite_multi_app2_release:
-  extends: .512k_overwrite
-  only:
-    - schedules
-  needs:
-    - 512k_mcuboot_multi_overwrite
-    - 512k_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_overwrite_multi_app2
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-512k_overwrite_xip_release:
-  extends: .512k_overwrite
-  only:
-    - schedules
-  needs:
-    - 512k_mcuboot_overwrite_xip
-    - 512k_blinky_xip_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_overwrite_xip
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-###################################### O V E R W R I T E  5 1 2 K  T E S T S   E N C R Y P T #########################################
-
-512k_overwrite_single_enc:
-  extends: .512k_encrypt_overwrite
-  needs:
-    - 512k_mcuboot_single_encrypt_overwrite
-    - 512k_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_overwrite_single_enc
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-512k_overwrite_single_enc_fih_off:
-  extends: .512k_encrypt_overwrite
-  needs:
-    - 512k_mcuboot_single_encrypt_overwrite_fih_off
-    - 512k_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_overwrite_single_enc
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-512k_overwrite_single_enc_release_fih_low:
-  extends: .512k_encrypt_overwrite
-  needs:
-    - 512k_mcuboot_single_encrypt_overwrite_fih_low
-    - 512k_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_overwrite_single_enc
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-512k_overwrite_single_smif_enc:
-  extends: .512k_encrypt_overwrite
-  needs:
-    - 512k_mcuboot_single_smif_encrypt_overwrite
-    - 512k_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_overwrite_single_smif_enc
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-512k_overwrite_multi_enc_app1:
-  extends: .512k_encrypt_overwrite
-  needs:
-    - 512k_mcuboot_multi_encrypt_overwrite
-    - 512k_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_overwrite_multi_enc_app1
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-....512k_overwrite_multi_enc_app2:
-  extends: .512k_encrypt_overwrite
-  needs:
-    - 512k_mcuboot_multi_encrypt_overwrite
-    - 512k_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_overwrite_multi_enc_app2
-    TEST_SELECT: $TEST_SWAP
-    BUILDCFG_TEST: Debug
-
-512k_overwrite_xip_enc:
-  extends: .512k_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 512k_mcuboot_overwrite_xip_encrypt
-    - 512k_blinky_xip_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_overwrite_xip_enc
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-512k_overwrite_single_enc_release:
-  extends: .512k_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 512k_mcuboot_single_encrypt_overwrite
-    - 512k_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_overwrite_single_enc
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-512k_overwrite_single_smif_enc_release:
-  extends: .512k_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 512k_mcuboot_single_smif_encrypt_overwrite
-    - 512k_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_overwrite_single_smif_enc
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-512k_overwrite_multi_enc_app1_release:
-  extends: .512k_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 512k_mcuboot_multi_encrypt_overwrite
-    - 512k_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_overwrite_multi_enc_app1
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-....512k_overwrite_multi_enc_app2_release:
-  extends: .512k_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 512k_mcuboot_multi_encrypt_overwrite
-    - 512k_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_overwrite_multi_enc_app2
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-512k_overwrite_xip_enc_release:
-  extends: .512k_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 512k_mcuboot_overwrite_xip_encrypt
-    - 512k_blinky_xip_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_512k_overwrite_xip_enc
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-######################################################################################################################################
-############################################## O V E R W R I T E  1 M  T E S T S #####################################################
-######################################################################################################################################
-
-1m_wifi_bt_overwrite_single:
-  extends: .1m_wifi_bt_overwrite
-  needs:
-    - 1m_wifi_bt_mcuboot_single_overwrite
-    - 1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_single
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-1m_wifi_bt_overwrite_single_smif:
-  extends: .1m_wifi_bt_overwrite
-  needs:
-    - 1m_wifi_bt_mcuboot_single_smif_overwrite
-    - 1m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_single_smif
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-1m_wifi_bt_overwrite_multi_app1:
-  extends: .1m_wifi_bt_overwrite
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_overwrite
-    - 1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_app1
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-....1m_wifi_bt_overwrite_multi_app2:
-  extends: .1m_wifi_bt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_overwrite
-    - 1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_app2
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-1m_wifi_bt_overwrite_multi_smif_app1:
-  extends: .1m_wifi_bt_overwrite
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_smif_overwrite
-    - 1m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_smif_app1
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-....1m_wifi_bt_overwrite_multi_smif_app2:
-  extends: .1m_wifi_bt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_smif_overwrite
-    - 1m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_smif_app2
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-1m_wifi_bt_overwrite_xip:
-  extends: .1m_wifi_bt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_overwrite_xip
-    - 1m_blinky_xip_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_xip
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-1m_wifi_bt_overwrite_single_release:
-  extends: .1m_wifi_bt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_single_overwrite
-    - 1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_single
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-1m_wifi_bt_overwrite_single_smif_release:
-  extends: .1m_wifi_bt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_single_smif_overwrite
-    - 1m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_single_smif
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-1m_wifi_bt_overwrite_multi_app1_release:
-  extends: .1m_wifi_bt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_overwrite
-    - 1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_app1
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-....1m_wifi_bt_overwrite_multi_app2_release:
-  extends: .1m_wifi_bt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_overwrite
-    - 1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_app2
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-1m_wifi_bt_overwrite_multi_smif_app1_release:
-  extends: .1m_wifi_bt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_smif_overwrite
-    - 1m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_smif_app1
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-....1m_wifi_bt_overwrite_multi_smif_app2_release:
-  extends: .1m_wifi_bt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_smif_overwrite
-    - 1m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_smif_app2
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-1m_wifi_bt_overwrite_xip_release:
-  extends: .1m_wifi_bt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_overwrite_xip
-    - 1m_blinky_xip_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_xip
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-###################################### O V E R W R I T E  1 M  T E S T S   E N C R Y P T #############################################
-
-1m_wifi_bt_overwrite_single_enc:
-  extends: .1m_wifi_bt_encrypt_overwrite
-  needs:
-    - 1m_wifi_bt_mcuboot_single_encrypt_overwrite
-    - 1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_single_enc
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-1m_wifi_bt_overwrite_single_smif_enc:
-  extends: .1m_wifi_bt_encrypt_overwrite
-  needs:
-    - 1m_wifi_bt_mcuboot_single_smif_encrypt_overwrite
-    - 1m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_single_smif_enc
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-1m_wifi_bt_overwrite_multi_enc_app1:
-  extends: .1m_wifi_bt_encrypt_overwrite
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_encrypt_overwrite
-    - 1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_enc_app1
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-....1m_wifi_bt_overwrite_multi_enc_app2:
-  extends: .1m_wifi_bt_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_encrypt_overwrite
-    - 1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_enc_app2
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-1m_wifi_bt_overwrite_multi_smif_enc_app1:
-  extends: .1m_wifi_bt_encrypt_overwrite
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_smif_encrypt_overwrite
-    - 1m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_smif_enc_app1
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-....1m_wifi_bt_overwrite_multi_smif_enc_app2:
-  extends: .1m_wifi_bt_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_smif_encrypt_overwrite
-    - 1m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_smif_enc_app2
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-1m_wifi_bt_overwrite_xip_enc:
-  extends: .1m_wifi_bt_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_overwrite_xip_encrypt
-    - 1m_blinky_xip_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_xip_enc
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-1m_wifi_bt_overwrite_single_enc_release:
-  extends: .1m_wifi_bt_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_single_encrypt_overwrite
-    - 1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_single_enc
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-1m_wifi_bt_overwrite_single_smif_enc_release:
-  extends: .1m_wifi_bt_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_single_smif_encrypt_overwrite
-    - 1m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_single_smif_enc
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-1m_wifi_bt_overwrite_multi_enc_app1_release:
-  extends: .1m_wifi_bt_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_encrypt_overwrite
-    - 1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_enc_app1
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-....1m_wifi_bt_overwrite_multi_enc_app2_release:
-  extends: .1m_wifi_bt_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_encrypt_overwrite
-    - 1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_enc_app2
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-1m_wifi_bt_overwrite_multi_smif_enc_app1_release:
-  extends: .1m_wifi_bt_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_smif_encrypt_overwrite
-    - 1m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_smif_enc_app1
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-....1m_wifi_bt_overwrite_multi_smif_enc_app2_release:
-  extends: .1m_wifi_bt_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_multi_smif_encrypt_overwrite
-    - 1m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_smif_enc_app2
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-1m_wifi_bt_overwrite_xip_enc_release:
-  extends: .1m_wifi_bt_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_wifi_bt_mcuboot_overwrite_xip_encrypt
-    - 1m_blinky_xip_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_xip_enc
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-################################# 1 M - B L E   O V E R W R I T E   E N C R Y P T   T E S T S ########################################
-
-1m_ble_overwrite_single_enc:
-  extends: .1m_ble_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_single_encrypt_overwrite
-    - 1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_single
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-1m_ble_overwrite_single_smif_enc:
-  extends: .1m_ble_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_single_smif_encrypt_overwrite
-    - 1m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_single_smif
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-1m_ble_overwrite_multi_enc_app1:
-  extends: .1m_ble_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_multi_encrypt_overwrite
-    - 1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_app1
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-1m_ble_overwrite_multi_enc_app1_fih_off:
-  extends: .1m_ble_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_multi_encrypt_overwrite_fih_off
-    - 1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_app1
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-....1m_ble_overwrite_multi_enc_app2:
-  extends: .1m_ble_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_multi_encrypt_overwrite
-    - 1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_app2
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-1m_ble_overwrite_multi_smif_enc_app1:
-  extends: .1m_ble_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_multi_smif_encrypt_overwrite
-    - 1m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_smif_app1
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-....1m_ble_overwrite_multi_smif_enc_app2:
-  extends: .1m_ble_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_multi_smif_encrypt_overwrite
-    - 1m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_smif_app2
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-1m_ble_overwrite_xip_enc:
-  extends: .1m_ble_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_overwrite_xip_encrypt
-    - 1m_blinky_xip_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_xip_enc
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-1m_ble_overwrite_single_enc_release:
-  extends: .1m_ble_encrypt_overwrite
-  needs:
-    - 1m_ble_mcuboot_single_encrypt_overwrite
-    - 1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_single
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-1m_ble_overwrite_single_smif_enc_release:
-  extends: .1m_ble_encrypt_overwrite
-  needs:
-    - 1m_ble_mcuboot_single_smif_encrypt_overwrite
-    - 1m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_single_smif
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-1m_ble_overwrite_multi_enc_app1_release:
-  extends: .1m_ble_encrypt_overwrite
-  needs:
-    - 1m_ble_mcuboot_multi_encrypt_overwrite
-    - 1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_app1
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-....1m_ble_overwrite_multi_enc_app2_release:
-  extends: .1m_ble_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_multi_encrypt_overwrite
-    - 1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_app2
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-1m_ble_overwrite_multi_smif_enc_app1_release:
-  extends: .1m_ble_encrypt_overwrite
-  needs:
-    - 1m_ble_mcuboot_multi_smif_encrypt_overwrite
-    - 1m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_smif_app1
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-....1m_ble_overwrite_multi_smif_enc_app2_release:
-  extends: .1m_ble_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_multi_smif_encrypt_overwrite
-    - 1m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_multi_smif_app2
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-1m_ble_overwrite_xip_enc_release:
-  extends: .1m_ble_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 1m_ble_mcuboot_overwrite_xip_encrypt
-    - 1m_blinky_xip_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_1m_overwrite_xip_enc
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-######################################################################################################################################
-######################################## O V E R W R I T E   0 6 3   1 M   T E S T S #################################################
-######################################################################################################################################
-
-063_1m_overwrite_single:
-  extends: .063_1m_overwrite
-  only:
-    - schedules
-  needs:
-    - 063_1m_mcuboot_single_overwrite
-    - 063_1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_063_1m_overwrite_single
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-063_1m_overwrite_multi_app1:
-  extends: .063_1m_overwrite
-  only:
-    - schedules
-  needs:
-    - 063_1m_mcuboot_multi_overwrite
-    - 063_1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_063_1m_overwrite_multi_app1
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-....063_1m_overwrite_multi_app2:
-  extends: .063_1m_overwrite
-  only:
-    - schedules
-  needs:
-    - 063_1m_mcuboot_multi_overwrite
-    - 063_1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_063_1m_overwrite_multi_app2
-    TEST_SELECT: THREE_TESTS #SMOKE+ tests not applicable for second application with swap
-    BUILDCFG_TEST: Debug
-
-063_1m_overwrite_single_release:
-  extends: .063_1m_overwrite
-  needs:
-    - 063_1m_mcuboot_single_overwrite
-    - 063_1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_063_1m_overwrite_single
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-063_1m_overwrite_single_fih_low_release:
-  extends: .063_1m_overwrite
-  only:
-    - schedules
-  needs:
-    - 063_1m_mcuboot_single_overwrite_fih_low
-    - 063_1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_063_1m_overwrite_single
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-063_1m_overwrite_multi_app1_release:
-  extends: .063_1m_overwrite
-  needs:
-    - 063_1m_mcuboot_multi_overwrite
-    - 063_1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_063_1m_overwrite_multi_app1
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-....063_1m_overwrite_multi_app2_release:
-  extends: .063_1m_overwrite
-  needs:
-    - 063_1m_mcuboot_multi_overwrite
-    - 063_1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_063_1m_overwrite_multi_app2
-    TEST_SELECT: THREE_TESTS #SMOKE+ tests not applicable for second application with swap
-    BUILDCFG_TEST: Release
-
-######################################################################################################################################
-################################ O V E R W R I T E   E N C R Y P T   0 6 3   1 M   T E S T S #########################################
-######################################################################################################################################
-
-063_1m_overwrite_single_enc:
-  extends: .063_1m_encrypt_overwrite
-  needs:
-    - 063_1m_mcuboot_single_encrypt_overwrite
-    - 063_1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_063_1m_overwrite_single
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-063_1m_overwrite_single_enc_fih_high:
-  extends: .063_1m_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 063_1m_mcuboot_single_encrypt_overwrite_fih_high
-    - 063_1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_063_1m_overwrite_single
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-063_1m_overwrite_multi_enc_app1:
-  extends: .063_1m_encrypt_overwrite
-  needs:
-    - 063_1m_mcuboot_multi_encrypt_overwrite
-    - 063_1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_063_1m_overwrite_multi_app1
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-....063_1m_overwrite_multi_enc_app2:
-  extends: .063_1m_encrypt_overwrite
-  needs:
-    - 063_1m_mcuboot_multi_encrypt_overwrite
-    - 063_1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_063_1m_overwrite_multi_app2
-    TEST_SELECT: THREE_TESTS #SMOKE+ tests not applicable for second application with swap
-    BUILDCFG_TEST: Debug
-
-063_1m_overwrite_single_enc_release:
-  extends: .063_1m_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 063_1m_mcuboot_single_encrypt_overwrite
-    - 063_1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_063_1m_overwrite_single
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-063_1m_overwrite_multi_enc_app1_release:
-  extends: .063_1m_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 063_1m_mcuboot_multi_encrypt_overwrite
-    - 063_1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_063_1m_overwrite_multi_app1
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-....063_1m_overwrite_multi_enc_app2_release:
-  extends: .063_1m_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 063_1m_mcuboot_multi_encrypt_overwrite
-    - 063_1m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_063_1m_overwrite_multi_app2
-    TEST_SELECT: THREE_TESTS #SMOKE+ tests not applicable for second application with swap
-    BUILDCFG_TEST: Release
-
-######################################################################################################################################
-############################################## O V E R W R I T E  2 M  T E S T S #####################################################
-######################################################################################################################################
-
-2m_overwrite_single:
-  extends: .2m_overwrite
-  needs:
-    - 2m_mcuboot_single_overwrite
-    - 2m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_single
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-2m_overwrite_single_smif:
-  extends: .2m_overwrite
-  needs:
-    - 2m_mcuboot_single_smif_overwrite
-    - 2m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_single_smif
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-2m_overwrite_multi_app1:
-  extends: .2m_overwrite
-  needs:
-    - 2m_mcuboot_multi_overwrite
-    - 2m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_multi_app1
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-....2m_overwrite_multi_app2:
-  extends: .2m_overwrite
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_multi_overwrite
-    - 2m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_multi_app2
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-2m_overwrite_multi_smif_app1:
-  extends: .2m_overwrite
-  needs:
-    - 2m_mcuboot_multi_smif_overwrite
-    - 2m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_multi_smif_app1
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-....2m_overwrite_multi_smif_app2:
-  extends: .2m_overwrite
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_multi_smif_overwrite
-    - 2m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_multi_smif_app2
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-2m_overwrite_xip:
-  extends: .2m_overwrite
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_overwrite_xip
-    - 2m_blinky_overwrite_xip
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_xip
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-2m_overwrite_single_release:
-  extends: .2m_overwrite
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_single_overwrite
-    - 2m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_single
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-2m_overwrite_single_smif_release:
-  extends: .2m_overwrite
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_single_smif_overwrite
-    - 2m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_single_smif
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-2m_overwrite_multi_app1_release:
-  extends: .2m_overwrite
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_multi_overwrite
-    - 2m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_multi_app1
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-....2m_overwrite_multi_app2_release:
-  extends: .2m_overwrite
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_multi_overwrite
-    - 2m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_multi_app2
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-2m_overwrite_multi_smif_app1_release:
-  extends: .2m_overwrite
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_multi_smif_overwrite
-    - 2m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_multi_smif_app1
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-....2m_overwrite_multi_smif_app2_release:
-  extends: .2m_overwrite
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_multi_smif_overwrite
-    - 2m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_multi_smif_app2
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-2m_overwrite_xip_release:
-  extends: .2m_overwrite
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_overwrite_xip
-    - 2m_blinky_overwrite_xip
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_xip
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-###################################### O V E R W R I T E  2 M  T E S T S   E N C R Y P T #############################################
-
-2m_overwrite_single_enc:
-  extends: .2m_encrypt_overwrite
-  needs:
-    - 2m_mcuboot_single_encrypt_overwrite
-    - 2m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_single_enc
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-2m_overwrite_single_smif_enc:
-  extends: .2m_encrypt_overwrite
-  needs:
-    - 2m_mcuboot_single_smif_encrypt_overwrite
-    - 2m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_single_smif_enc
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-2m_overwrite_multi_enc_app1:
-  extends: .2m_encrypt_overwrite
-  needs:
-    - 2m_mcuboot_multi_encrypt_overwrite
-    - 2m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_multi_enc_app1
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-....2m_overwrite_multi_enc_app2:
-  extends: .2m_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_multi_encrypt_overwrite
-    - 2m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_multi_enc_app2
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-2m_overwrite_multi_smif_enc_app1:
-  extends: .2m_encrypt_overwrite
-  needs:
-    - 2m_mcuboot_multi_smif_encrypt_overwrite
-    - 2m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_multi_smif_enc_app1
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-....2m_overwrite_multi_smif_enc_app2:
-  extends: .2m_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_multi_smif_encrypt_overwrite
-    - 2m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_multi_smif_enc_app2
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-2m_overwrite_xip_enc:
-  extends: .2m_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_overwrite_xip_encrypt
-    - 2m_blinky_overwrite_xip
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_xip_enc
-    TEST_SELECT: $TEST_OVERWRITE
-    BUILDCFG_TEST: Debug
-
-2m_overwrite_single_enc_release:
-  extends: .2m_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_single_encrypt_overwrite
-    - 2m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_single_enc
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-2m_overwrite_single_smif_enc_release:
-  extends: .2m_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_single_smif_encrypt_overwrite
-    - 2m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_single_smif_enc
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-2m_overwrite_multi_enc_app1_release:
-  extends: .2m_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_multi_encrypt_overwrite
-    - 2m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_multi_enc_app1
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-....2m_overwrite_multi_enc_app2_release:
-  extends: .2m_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_multi_encrypt_overwrite
-    - 2m_blinky_overwrite
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_multi_enc_app2
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-2m_overwrite_multi_smif_enc_app1_release:
-  extends: .2m_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_multi_smif_encrypt_overwrite
-    - 2m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_multi_smif_enc_app1
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-....2m_overwrite_multi_smif_enc_app2_release:
-  extends: .2m_encrypt_overwrite
-  only:
-    - schedules
-  needs:
-    - 2m_mcuboot_multi_smif_encrypt_overwrite
-    - 2m_blinky_overwrite_smif
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_multi_smif_enc_app2
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-2m_overwrite_xip_enc_release:
-  extends: .2m_encrypt_overwrite
-  needs:
-    - 2m_mcuboot_overwrite_xip_encrypt
-    - 2m_blinky_overwrite_xip
-  variables:
-    TEST_CONFIG: CI_MCUBoot_2m_overwrite_xip_enc
-    TEST_SELECT: $TEST_OVERWRITE_RELEASE
-    BUILDCFG_TEST: Release
-
-######################################################################################################################################
-######################################################### S I M U L A T O R ##########################################################
-######################################################################################################################################
-
-MCUboot_simulator_basic:
-  stage: mcuboot_simulator
-  needs: []
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  tags:
-    - MCUBOOT_SIMULATOR_20.04.3
-  script:
-    - git submodule deinit --all -f
-    - git submodule sync --recursive
-    - git submodule update --init --recursive
-    - cd sim
-    - cargo test $SIM_ARG
-
-MCUboot_simulator_PSoC6_swap_status:
-  stage: mcuboot_simulator
-  needs: []
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  tags:
-    - MCUBOOT_SIMULATOR_20.04.3
-  script:
-    - git submodule sync --recursive
-    - git submodule update --init --recursive
-    - cd sim
-    - cargo test --features overwrite-only
-    - cargo test --features swap-status -- --test-threads=1
-
-.simulator:
-  stage: mcuboot_simulator
-  needs: []
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  tags:
-    - MCUBOOT_SIMULATOR_20.04.3
-  script:
-    - git submodule deinit --all -f
-    - git submodule sync --recursive
-    - git submodule update --init --recursive
-    - echo Simulator features = $MULTI_FEATURES
-    - ./ci/sim_run.sh
-
-MCUboot_simulator_encryption_features:
-  variables:
-    MULTI_FEATURES: 'enc-rsa,enc-kw,enc-ec256,enc-x25519'
-  extends: .simulator
-
-MCUboot_simulator_all_features_separately:
-  variables:
-    MULTI_FEATURES: 'overwrite-only,swap-move,validate-primary-slot,bootstrap,multiimage,large-write overwrite-only,downgrade-prevention overwrite-only,sig-rsa,sig-rsa3072,sig-ecdsa,sig-ecdsa-mbedtls,sig-ed25519'
-  extends: .simulator
-
-.simulator_common:
-  only:
-    - schedules
-  extends: .simulator
-
-MCUboot_simulator_github_flow 1/21:
-  variables:
-    MULTI_FEATURES: 'sig-ecdsa,sig-ecdsa-mbedtls,sig-ed25519,enc-kw,bootstrap'
-  extends: .simulator_common
-
-MCUboot_simulator_github_flow 2/21:
-  variables:
-    MULTI_FEATURES: 'sig-rsa,sig-rsa3072,overwrite-only,validate-primary-slot,swap-move'
-  extends: .simulator_common
-
-MCUboot_simulator_github_flow 3/21:
-  variables:
-    MULTI_FEATURES: 'enc-rsa'
-  extends: .simulator_common
-
-MCUboot_simulator_github_flow 4/21:
-  variables:
-    MULTI_FEATURES_UNSUPPORTED: 'enc-aes256-rsa'
-  extends: .simulator_common
-
-MCUboot_simulator_github_flow 5/21:
-  variables:
-    MULTI_FEATURES: 'enc-ec256'
-  extends: .simulator_common
-
-MCUboot_simulator_github_flow 6/21:
-  variables:
-    MULTI_FEATURES_UNSUPPORTED: 'enc-aes256-ec256'
-  extends: .simulator_common
-
-MCUboot_simulator_github_flow 7/21:
-  variables:
-    MULTI_FEATURES: 'enc-x25519'
-  extends: .simulator_common
-
-MCUboot_simulator_github_flow 8/21:
-  variables:
-    MULTI_FEATURES_UNSUPPORTED: 'enc-aes256-x25519'
-  extends: .simulator_common
-
-MCUboot_simulator_github_flow 9/21:
-  variables:
-    MULTI_FEATURES: 'sig-rsa overwrite-only large-write,sig-ecdsa overwrite-only large-write,sig-ecdsa-mbedtls overwrite-only large-write,multiimage overwrite-only large-write'
-  extends: .simulator_common
-
-MCUboot_simulator_github_flow 10/21:
-  variables:
-    MULTI_FEATURES: 'sig-rsa validate-primary-slot,sig-ecdsa validate-primary-slot,sig-ecdsa-mbedtls validate-primary-slot,sig-rsa multiimage validate-primary-slot'
-  extends: .simulator_common
-
-MCUboot_simulator_github_flow 11/21:
-  variables:
-    MULTI_FEATURES: 'enc-kw overwrite-only large-write,enc-rsa overwrite-only large-write'
-  extends: .simulator_common
-
-MCUboot_simulator_github_flow 12/21:
-  variables:
-    MULTI_FEATURES_UNSUPPORTED: 'enc-aes256-kw overwrite-only large-write,enc-rsa overwrite-only large-write'
-  extends: .simulator_common
-
-MCUboot_simulator_github_flow 13/21:
-  variables:
-    MULTI_FEATURES: 'sig-rsa enc-rsa validate-primary-slot,swap-move enc-rsa sig-rsa validate-primary-slot bootstrap'
-  extends: .simulator_common
-
-MCUboot_simulator_github_flow 14/21:
-  variables:
-    MULTI_FEATURES: 'sig-rsa enc-kw validate-primary-slot bootstrap,sig-ed25519 enc-x25519 validate-primary-slot'
-  extends: .simulator_common
-
-MCUboot_simulator_github_flow 15/21:
-  variables:
-    MULTI_FEATURES: 'sig-ecdsa enc-kw validate-primary-slot'
-  extends: .simulator_common
-
-MCUboot_simulator_github_flow 16/21:
-  variables:
-    MULTI_FEATURES: 'sig-ecdsa-mbedtls enc-kw validate-primary-slot'
-  extends: .simulator_common
-
-MCUboot_simulator_github_flow 17/21:
-  variables:
-    MULTI_FEATURES: 'sig-rsa validate-primary-slot overwrite-only large-write'
-  extends: .simulator_common
-
-MCUboot_simulator_github_flow 18/21:
-  variables:
-    MULTI_FEATURES: 'sig-ecdsa enc-ec256 validate-primary-slot'
-  extends: .simulator_common
-
-MCUboot_simulator_github_flow 19/21:
-  variables:
-    MULTI_FEATURES: 'sig-ecdsa-mbedtls validate-primary-slot'
-    MULTI_FEATURES_UNSUPPORTED: 'sig-ecdsa-mbedtls enc-ec256-mbedtls validate-primary-slot'
-  extends: .simulator_common
-
-MCUboot_simulator_github_flow 20/21:
-  variables:
-    MULTI_FEATURES_UNSUPPORTED: 'sig-ecdsa-mbedtls enc-aes256-ec256 validate-primary-slot'
-  extends: .simulator_common
-
-MCUboot_simulator_github_flow 21/21:
-  variables:
-    MULTI_FEATURES: 'sig-rsa validate-primary-slot overwrite-only downgrade-prevention'
-  extends: .simulator_common
-
-######################################################################################################################################
-########################################################## C P P C H E C K ###########################################################
-######################################################################################################################################
-
-cppcheck_20829:
-  stage: code_quality_check
-  tags:
-    - MCU_CPPCHECK
-  needs: []
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $REPO
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  artifacts:
-    when: always
-    expire_in: 4 weeks
-    paths:
-      - boot/cypress/cppcheck/MCUBootApp/results
-  script:
-    - cppcheck --version
-    - git submodule deinit --all -f
-    - git submodule sync --recursive
-    - git submodule update --init --recursive
-    - cd boot/cypress
-    - $PSDefaultParameterValues = @{"Out-File:Encoding"="ASCII"}
-    - python scripts/flashmap.py -p PSOC_062_2M -i ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single.json -o ./platforms/cy_flash_pal/cy_flash_map.h > ./MCUBootApp/flashmap.mk
-    - time make run_cppcheck PLATFORM=CYW20829 APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} CPP_CHECK_SCOPE=all BUILDCFG=Debug FLASH_MAP=./platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_swap_single_psvp.json
-    - time make run_cppcheck PLATFORM=CYW20829 APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} CPP_CHECK_SCOPE=all BUILDCFG=Release FLASH_MAP=./platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_swap_single_psvp.json
-
-cppcheck_PSOC6:
-  stage: code_quality_check
-  tags:
-    - MCU_CPPCHECK
-  needs: []
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $REPO
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  artifacts:
-    when: always
-    expire_in: 4 weeks
-    paths:
-      - boot/cypress/cppcheck/MCUBootApp/results
-  script:
-    - cppcheck --version
-    - git submodule deinit --all -f
-    - git submodule sync --recursive
-    - git submodule update --init --recursive
-    - cd boot/cypress
-    - $PSDefaultParameterValues = @{"Out-File:Encoding"="ASCII"}
-    - python scripts/flashmap.py -p PSOC_062_2M -i ./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single.json -o ./platforms/cy_flash_pal/cy_flash_map.h > ./MCUBootApp/flashmap.mk
-    - make run_cppcheck PLATFORM=PSOC_062_2M APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} CPP_CHECK_SCOPE=all BUILDCFG=Release FLASH_MAP=./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single.json
-    - make run_cppcheck PLATFORM=PSOC_062_1M APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} CPP_CHECK_SCOPE=all BUILDCFG=Debug FLASH_MAP=./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single.json
-    - time make run_cppcheck PLATFORM=PSOC_062_512K APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} CPP_CHECK_SCOPE=all BUILDCFG=Release FLASH_MAP=./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single.json
-
-#######################################################################################################################################################
-# Coverity MISRA 2012 & CERT C check
-#######################################################################################################################################################
-.coverity_common:
-  stage: code_quality_check
-  tags:
-    - WIN-CI-COV-003
-  needs: []
-  variables:
-    COVERITY_PATH: '../../ci/coverity'
-  artifacts:
-    paths:
-      - $COVERITY_PATH\*.log
-      - $COVERITY_PATH\violations.csv
-    expire_in: 4 weeks
-    when: always
-  script:
-    - git submodule sync --recursive
-    - git submodule update --init --recursive
-    - python -V
-    - python -m virtualenv venv
-    - ./venv/Scripts/activate.ps1
-# TODO: switch to the latest ${CY_SECURETOOLS_BRANCH} tag after RBC _set_reprovisioning_tlvs method fix
-    - pip install --upgrade --force-reinstall git+http://git-ore.aus.cypress.com/repo/cysecuretools.git@release/v4.2.0
-    - cysecuretools -v version
-    - cd boot/cypress
-    - cysecuretools -t cyw20829 init
-    - git clone http://devops-git.aus.cypress.com/dmxh/coverity -b $COVERITY_BRANCH $COVERITY_PATH
-    - pushd $COVERITY_PATH
-    - pip install --upgrade --force-reinstall -r requirements.txt
-    - python check_coverity.py -c $CI_COVERITY_CONFIG_FILE
-  after_script:
-    - 'cat ci\coverity\$CI_COVERITY_LOG_FILE | cut -c 45- | grep -e "| MANDATORY |" -e " | REQUIRED | " -e " | L1 | "  -e " | L2 | " | sort | nl | sed -e "s/MISRA/| MISRA/g" | sed -e "s/violations/| violations/g" | tee ci\coverity\violations.csv'
-
-
-coverity_misra_20829_default:
-  when: manual
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $REPO
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CI_COVERITY_LOG_FILE: coverity_misra_20829_full.log
-    CI_COVERITY_CONFIG_FILE: ./../../boot/cypress/coverity/all_files/config_mcuboot_misra.json
-    CI_COVERITY_BUILD_CMD: make clean app POST_BUILD_ENABLE=0 APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=CYW20829 FLASH_MAP=./platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_swap_single_psvp.json
-  extends: .coverity_common
-
-coverity_misra_20829_ow_release:
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $REPO
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CI_COVERITY_LOG_FILE: coverity_misra_20829_ow.log
-    CI_COVERITY_CONFIG_FILE: ./../../boot/cypress/coverity/cyw20829/config_mcuboot_misra.json
-    CI_COVERITY_BUILD_CMD: make clean app POST_BUILD_ENABLE=0 APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=CYW20829 BUILDCFG=Release USE_EXTERNAL_FLASH=1 ENC_IMG=1 LCS=SECURE USE_OVERWRITE=1 FLASH_MAP=./platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_overwrite_single_psvp.json
-  extends: .coverity_common
-
-coverity_misra_20829_swap_debug:
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $REPO
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CI_COVERITY_LOG_FILE: coverity_misra_20829_swap.log
-    CI_COVERITY_CONFIG_FILE: ./../../boot/cypress/coverity/cyw20829/config_mcuboot_misra.json
-    CI_COVERITY_BUILD_CMD: make clean app POST_BUILD_ENABLE=0 APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=CYW20829 BUILDCFG=Debug USE_EXTERNAL_FLASH=1 ENC_IMG=1 LCS=SECURE USE_OVERWRITE=0 FLASH_MAP=./platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_swap_single_psvp.json
-  extends: .coverity_common
-
-coverity_misra_062_2m:
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $REPO
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CI_COVERITY_LOG_FILE: coverity_misra_062_2m.log
-    CI_COVERITY_CONFIG_FILE: ./../../boot/cypress/coverity/psoc062/config_mcuboot_misra.json
-    CI_COVERITY_BUILD_CMD: make clean app POST_BUILD_ENABLE=0 APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=PSOC_062_2M BUILDCFG=Release MCUBOOT_IMAGE_NUMBER=2 USE_EXTERNAL_FLASH=1 USE_OVERWRITE=0 ENC_IMG=1 FLASH_MAP=./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_multi_smif.json
-  extends: .coverity_common
-
-coverity_misra_062_1m:
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $REPO
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CI_COVERITY_LOG_FILE: coverity_misra_062_1m.log
-    CI_COVERITY_CONFIG_FILE: ./../../boot/cypress/coverity/psoc062/config_mcuboot_misra.json
-    CI_COVERITY_BUILD_CMD: make clean app POST_BUILD_ENABLE=0 APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=PSOC_062_1M BUILDCFG=Debug MCUBOOT_IMAGE_NUMBER=1 USE_EXTERNAL_FLASH=0 USE_OVERWRITE=0 ENC_IMG=0 FLASH_MAP=./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single.json
-  extends: .coverity_common
-
-coverity_misra_062_512k:
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $REPO
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CI_COVERITY_LOG_FILE: coverity_misra_062_512k.log
-    CI_COVERITY_CONFIG_FILE: ./../../boot/cypress/coverity/psoc062/config_mcuboot_misra.json
-    CI_COVERITY_BUILD_CMD: make clean app POST_BUILD_ENABLE=0 APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=PSOC_062_512K BUILDCFG=Release MCUBOOT_IMAGE_NUMBER=1 USE_EXTERNAL_FLASH=1 USE_OVERWRITE=1 ENC_IMG=1 FLASH_MAP=./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single_smif.json
-  extends: .coverity_common
-
-
-coverity_certc_062_2m_default:
-  when: manual
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $REPO
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CI_COVERITY_LOG_FILE: coverity_certc_062_2m_full.log
-    CI_COVERITY_CONFIG_FILE: ./../../boot/cypress/coverity/all_files/config_mcuboot_cert_c.json
-    CI_COVERITY_BUILD_CMD: make clean app POST_BUILD_ENABLE=0 APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=PSOC_062_2M FLASH_MAP=./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single.json
-  extends: .coverity_common
-
-coverity_certc_20829_ow_release:
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $REPO
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CI_COVERITY_LOG_FILE: coverity_certc_20829_ow.log
-    CI_COVERITY_CONFIG_FILE: ./../../boot/cypress/coverity/cyw20829/config_mcuboot_cert_c.json
-    CI_COVERITY_BUILD_CMD: make clean app POST_BUILD_ENABLE=0 APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=CYW20829 BUILDCFG=Release USE_EXTERNAL_FLASH=1 ENC_IMG=1 LCS=SECURE USE_OVERWRITE=1 FLASH_MAP=./platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_overwrite_single_psvp.json
-  extends: .coverity_common
-
-coverity_certc_20829_swap_debug:
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $REPO
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CI_COVERITY_LOG_FILE: coverity_certc_20829_swap.log
-    CI_COVERITY_CONFIG_FILE: ./../../boot/cypress/coverity/cyw20829/config_mcuboot_cert_c.json
-    CI_COVERITY_BUILD_CMD: make clean app POST_BUILD_ENABLE=0 APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=CYW20829 BUILDCFG=Debug USE_EXTERNAL_FLASH=1 ENC_IMG=1 LCS=SECURE USE_OVERWRITE=0 FLASH_MAP=./platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_swap_single_psvp.json
-  extends: .coverity_common
-
-coverity_certc_062_2m:
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $REPO
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CI_COVERITY_LOG_FILE: coverity_certc_062_2m.log
-    CI_COVERITY_CONFIG_FILE: ./../../boot/cypress/coverity/psoc062/config_mcuboot_cert_c.json
-    CI_COVERITY_BUILD_CMD: make clean app POST_BUILD_ENABLE=0 APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=PSOC_062_2M BUILDCFG=Release MCUBOOT_IMAGE_NUMBER=2 USE_EXTERNAL_FLASH=1 USE_OVERWRITE=0 ENC_IMG=1 FLASH_MAP=./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_multi_smif.json
-  extends: .coverity_common
-
-coverity_certc_062_1m:
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $COV != "0"
-      - $REPO
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CI_COVERITY_LOG_FILE: coverity_certc_062_1m.log
-    CI_COVERITY_CONFIG_FILE: ./../../boot/cypress/coverity/psoc062/config_mcuboot_cert_c.json
-    CI_COVERITY_BUILD_CMD: make clean app POST_BUILD_ENABLE=0 APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=PSOC_062_1M BUILDCFG=Debug MCUBOOT_IMAGE_NUMBER=1 USE_EXTERNAL_FLASH=0 USE_OVERWRITE=0 ENC_IMG=0 FLASH_MAP=./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_swap_single.json
-  extends: .coverity_common
-
-coverity_certc_062_512k:
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $REPO
-      - $CI_COMMIT_TAG
-      - $TEST_BRANCH_BSE != "develop"
-  variables:
-    CI_COVERITY_LOG_FILE: coverity_certc_062_512k.log
-    CI_COVERITY_CONFIG_FILE: ./../../boot/cypress/coverity/psoc062/config_mcuboot_cert_c.json
-    CI_COVERITY_BUILD_CMD: make clean app POST_BUILD_ENABLE=0 APP_NAME=MCUBootApp FIH_PROFILE_LEVEL=${FIH_PROFILE} PLATFORM=PSOC_062_512K BUILDCFG=Release MCUBOOT_IMAGE_NUMBER=1 USE_EXTERNAL_FLASH=1 USE_OVERWRITE=1 ENC_IMG=1 FLASH_MAP=./platforms/cy_flash_pal/flash_psoc6/flashmap/psoc6_overwrite_single_smif.json
-  extends: .coverity_common
-
-coverity_misra_mtb_bootloader_solution:
-  stage: code_quality_check
-  tags:
-    - WIN-CI-COV-003
-  needs: []
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $REPO
-      - $CI_COMMIT_TAG
-      - $CIVAR_EXPLORER_DISABLED !="0"
-  variables:
-    CE_NAME: Bootloader_Solution
-    BOOTLOADER_PRJ_FOLDER: bootloader
-    BLINKY_PRJ_FOLDER: blinky
-    CE_KIT: CY8CPROTO-062-4343W
-    CE_TOOLS: C:/Users/fw_security/ModusToolbox/tools_2.4
-    COVERITY_PATH: '../../ci/coverity'
-    CI_COVERITY_LOG_FILE: coverity_misra_mtb_bootloader_solution.log
-    CI_COVERITY_CONFIG_FILE: ./../../boot/cypress/coverity/mtb/config_mcuboot_misra.json
-    CI_COVERITY_BUILD_CMD: make build
-  artifacts:
-    expire_in: 4 weeks
-    when: always
-    paths:
-      - $COVERITY_PATH\*.log
-      - $COVERITY_PATH\violations.csv
-      - ${CE_NAME}/${BOOTLOADER_PRJ_FOLDER}/build/${CE_KIT}/Debug/mtb-example-bootloader-solution.hex
-      - ${CE_NAME}/${BLINKY_PRJ_FOLDER}/build/${CE_KIT}/Debug/blinky.hex
-  before_script:
-    - $PSDefaultParameterValues = @{"Out-File:Encoding"="ASCII"}
-  script:
-    - env
-    - bash -c '[ ${TEST_BRANCH_BSE} != "develop" ] && cat ${CI_PROJECT_DIR}/boot/cypress/manifests/custom-ce-manifest.xml | sed -e "s/develop/${TEST_BRANCH_BSE}/" | tee ${CI_PROJECT_DIR}/boot/cypress/manifests/custom-ce-manifest.xml || true'
-    - sleep 1
-    - bash -c 'echo CyRemoteManifestOverride=${CI_PROJECT_DIR}/boot/cypress/manifests/mtb-super-manifest-fv2-test-ce-mcuboot.xml ${CE_TOOLS}/project-creator/project-creator-cli --board-id ${CE_KIT} --board-uri http://git-ore.aus.cypress.com/repo-staging/TARGET_${CE_KIT} --board-commit latest-v3.X --app-id mtb-example-bootloader-solution --app-uri http://git-ore.aus.cypress.com/wpp/ce/mtb/mtb-example-bootloader-solution/ --app-commit ${TEST_BRANCH_BSE} --cypress-tools ${CE_TOOLS} --target-dir ${CI_PROJECT_DIR} --user-app-name ${CE_NAME} --output-for-machine --use-modus-shell'
-    - bash -c      'CyRemoteManifestOverride=${CI_PROJECT_DIR}/boot/cypress/manifests/mtb-super-manifest-fv2-test-ce-mcuboot.xml ${CE_TOOLS}/project-creator/project-creator-cli --board-id ${CE_KIT} --board-uri http://git-ore.aus.cypress.com/repo-staging/TARGET_${CE_KIT} --board-commit latest-v3.X --app-id mtb-example-bootloader-solution --app-uri http://git-ore.aus.cypress.com/wpp/ce/mtb/mtb-example-bootloader-solution/ --app-commit ${TEST_BRANCH_BSE} --cypress-tools ${CE_TOOLS} --target-dir ${CI_PROJECT_DIR} --user-app-name ${CE_NAME} --output-for-machine --use-modus-shell'
-    - cd ${CE_NAME}
-    - pushd ${BOOTLOADER_PRJ_FOLDER}
-    - echo http://devops-git.aus.cypress.com/repo/cy_mcuboot_project/cy_mcuboot#$env:CI_BUILD_REF#$"$"ASSET_REPO$"$"/mcuboot/develop > deps/mcuboot.mtb
-    - bash -c 'CY_GITBASH_IN_CYGWIN=1 make getlibs'
-    - git --git-dir ../mtb_shared/mcuboot/develop/.git rev-parse HEAD
-    - git ls-remote http://git-ore.aus.cypress.com/wpp/ce/mtb/mtb-example-bootloader-solution.git ${TEST_BRANCH_BSE}
-    - git clone http://devops-git.aus.cypress.com/dmxh/coverity -b $COVERITY_BRANCH $COVERITY_PATH
-    - pushd $COVERITY_PATH
-    - python -V
-    - python -m virtualenv venv
-    - ./venv/Scripts/activate.ps1
-    - pip install --upgrade --force-reinstall -r requirements.txt
-    - python check_coverity.py -c $CI_COVERITY_CONFIG_FILE
-  after_script:
-    - 'cat ci\coverity\$CI_COVERITY_LOG_FILE | cut -c 45- | grep -e "| MANDATORY |" -e " | REQUIRED | " -e " | L1 | "  -e " | L2 | " | sort | nl | sed -e "s/MISRA/| MISRA/g" | sed -e "s/violations/| violations/g" | tee ci\coverity\violations.csv'
-
-coverity_cert-c_mtb_bootloader_solution:
-  stage: code_quality_check
-  tags:
-    - WIN-CI-COV-003
-  needs: []
-  except:
-    variables:
-      - $CIVAR_MICRO_TEST != "0"
-      - $REPO
-      - $CI_COMMIT_TAG
-      - $CIVAR_EXPLORER_DISABLED !="0"
-  variables:
-    CE_NAME: Bootloader_Solution
-    BOOTLOADER_PRJ_FOLDER: bootloader
-    BLINKY_PRJ_FOLDER: blinky
-    CE_KIT: CY8CPROTO-062-4343W
-    CE_TOOLS: C:/Users/fw_security/ModusToolbox/tools_2.4
-    COVERITY_PATH: '../../ci/coverity'
-    CI_COVERITY_LOG_FILE: coverity_cert-c_mtb_bootloader_solution.log
-    CI_COVERITY_CONFIG_FILE: ./../../boot/cypress/coverity/mtb/config_mcuboot_cert_c.json
-    CI_COVERITY_BUILD_CMD: make build
-  artifacts:
-    expire_in: 4 weeks
-    when: always
-    paths:
-      - $COVERITY_PATH\*.log
-      - $COVERITY_PATH\violations.csv
-      - ${CE_NAME}/${BOOTLOADER_PRJ_FOLDER}/build/${CE_KIT}/Debug/mtb-example-bootloader-solution.hex
-      - ${CE_NAME}/${BLINKY_PRJ_FOLDER}/build/${CE_KIT}/Debug/blinky.hex
-  before_script:
-    - $PSDefaultParameterValues = @{"Out-File:Encoding"="ASCII"}
-  script:
-    - env
-    - bash -c '[ ${TEST_BRANCH_BSE} != "develop" ] && cat ${CI_PROJECT_DIR}/boot/cypress/manifests/custom-ce-manifest.xml | sed -e "s/develop/${TEST_BRANCH_BSE}/" | tee ${CI_PROJECT_DIR}/boot/cypress/manifests/custom-ce-manifest.xml || true'
-    - sleep 1
-    - bash -c 'echo CyRemoteManifestOverride=${CI_PROJECT_DIR}/boot/cypress/manifests/mtb-super-manifest-fv2-test-ce-mcuboot.xml ${CE_TOOLS}/project-creator/project-creator-cli --board-id ${CE_KIT} --board-uri http://git-ore.aus.cypress.com/repo-staging/TARGET_${CE_KIT} --board-commit latest-v3.X --app-id mtb-example-bootloader-solution --app-uri http://git-ore.aus.cypress.com/wpp/ce/mtb/mtb-example-bootloader-solution/ --app-commit ${TEST_BRANCH_BSE} --cypress-tools ${CE_TOOLS} --target-dir ${CI_PROJECT_DIR} --user-app-name ${CE_NAME} --output-for-machine --use-modus-shell'
-    - bash -c      'CyRemoteManifestOverride=${CI_PROJECT_DIR}/boot/cypress/manifests/mtb-super-manifest-fv2-test-ce-mcuboot.xml ${CE_TOOLS}/project-creator/project-creator-cli --board-id ${CE_KIT} --board-uri http://git-ore.aus.cypress.com/repo-staging/TARGET_${CE_KIT} --board-commit latest-v3.X --app-id mtb-example-bootloader-solution --app-uri http://git-ore.aus.cypress.com/wpp/ce/mtb/mtb-example-bootloader-solution/ --app-commit ${TEST_BRANCH_BSE} --cypress-tools ${CE_TOOLS} --target-dir ${CI_PROJECT_DIR} --user-app-name ${CE_NAME} --output-for-machine --use-modus-shell'
-    - cd ${CE_NAME}
-    - pushd ${BOOTLOADER_PRJ_FOLDER}
-    - echo http://devops-git.aus.cypress.com/repo/cy_mcuboot_project/cy_mcuboot#$env:CI_BUILD_REF#$"$"ASSET_REPO$"$"/mcuboot/develop > deps/mcuboot.mtb
-    - bash -c 'CY_GITBASH_IN_CYGWIN=1 make getlibs'
-    - git --git-dir ../mtb_shared/mcuboot/develop/.git rev-parse HEAD
-    - git ls-remote http://git-ore.aus.cypress.com/wpp/ce/mtb/mtb-example-bootloader-solution.git ${TEST_BRANCH_BSE}
-    - git clone http://devops-git.aus.cypress.com/dmxh/coverity -b $COVERITY_BRANCH $COVERITY_PATH
-    - pushd $COVERITY_PATH
-    - python -V
-    - python -m virtualenv venv
-    - ./venv/Scripts/activate.ps1
-    - pip install --upgrade --force-reinstall -r requirements.txt
-    - python check_coverity.py -c $CI_COVERITY_CONFIG_FILE
-  after_script:
-    - 'cat ci\coverity\$CI_COVERITY_LOG_FILE | cut -c 45- | grep -e "| MANDATORY |" -e " | REQUIRED | " -e " | L1 | "  -e " | L2 | " | sort | nl | sed -e "s/MISRA/| MISRA/g" | sed -e "s/violations/| violations/g" | tee ci\coverity\violations.csv'
-
diff --git a/.gitmodules b/.gitmodules
index b64f68d..9c3172f 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -4,21 +4,21 @@
 [submodule "ext/cddl-gen"]
 	path = ext/cddl-gen
 	url = https://github.com/NordicSemiconductor/cddl-gen.git
-[submodule "boot/cypress/libs/mtb-pdl-cat1"]
-	path = boot/cypress/libs/mtb-pdl-cat1
-	url = https://github.com/Infineon/mtb-pdl-cat1.git
-[submodule "boot/cypress/libs/mtb-hal-cat1"]
-	path = boot/cypress/libs/mtb-hal-cat1
-	url = https://github.com/Infineon/mtb-hal-cat1.git
 [submodule "boot/cypress/libs/cmsis"]
 	path = boot/cypress/libs/cmsis
 	url = https://github.com/Infineon/cmsis.git
 [submodule "boot/cypress/libs/retarget-io"]
 	path = boot/cypress/libs/retarget-io
 	url = https://github.com/Infineon/retarget-io.git
-[submodule "boot/cypress/libs/cy-mbedtls-acceleration"]
-	path = boot/cypress/libs/cy-mbedtls-acceleration
-	url = https://github.com/Infineon/cy-mbedtls-acceleration.git
 [submodule "boot/cypress/libs/core-lib"]
 	path = boot/cypress/libs/core-lib
 	url = https://github.com/Infineon/core-lib.git
+[submodule "boot/cypress/libs/mtb-pdl-cat1"]
+	path = boot/cypress/libs/mtb-pdl-cat1
+	url = https://github.com/Infineon/mtb-pdl-cat1.git
+[submodule "boot/cypress/libs/mtb-hal-cat1"]
+	path = boot/cypress/libs/mtb-hal-cat1
+	url = https://github.com/Infineon/mtb-hal-cat1.git
+[submodule "boot/cypress/libs/cy-mbedtls-acceleration"]
+	path = boot/cypress/libs/cy-mbedtls-acceleration
+	url = https://github.com/Infineon/cy-mbedtls-acceleration.git
diff --git a/boot/bootutil/src/image_validate.c b/boot/bootutil/src/image_validate.c
index e7cff90..a53ccb4 100644
--- a/boot/bootutil/src/image_validate.c
+++ b/boot/bootutil/src/image_validate.c
@@ -59,6 +59,10 @@
 
 #include "bootutil_priv.h"
 
+#ifdef CYW20829
+#include "cy_security_cnt_platform.h"
+#endif
+
 /*
  * Compute SHA256 over the image.
  */
@@ -434,7 +438,10 @@
     uint32_t img_security_cnt = 0;
     uint8_t reprov_packet[REPROV_PACK_SIZE];
     fih_int security_counter_valid = FIH_FAILURE;
-#endif
+    #ifdef CYW20829
+        fih_uint extracted_img_cnt = fih_uint_encode(UINT_MAX);
+    #endif /* CYW20829 */
+#endif /* MCUBOOT_HW_ROLLBACK_PROT */
 
     rc = bootutil_img_hash(enc_state, image_index, hdr, fap, tmp_buf,
             tmp_buf_sz, hash, seed, seed_len);
@@ -564,13 +571,28 @@
 
             BOOT_LOG_DBG("NV Counter read from efuse = %u", fih_uint_decode(security_cnt));
 
+#ifdef CYW20829
+            BOOT_LOG_DBG("Full NV Counter read from image = 0x%X", img_security_cnt);
+
+            FIH_CALL(platform_security_counter_check_extract, fih_rc, 
+                    (uint32_t)image_index, fih_uint_encode(img_security_cnt), &extracted_img_cnt);
+        
+            if (fih_not_eq(fih_rc, FIH_SUCCESS)) {
+                /* The image's security counter exceeds registered value for this image */
+                goto out;
+            }
+
+            img_security_cnt = fih_uint_decode(extracted_img_cnt);
+#endif /*CYW20829*/
+
             BOOT_LOG_DBG("NV Counter read from image = %" PRIu32, img_security_cnt);
 
             /* Compare the new image's security counter value against the
              * stored security counter value.
              */
-            fih_rc = fih_int_encode_zero_equality(img_security_cnt <
-                                   (uint32_t)fih_uint_decode(security_cnt));
+            fih_rc = fih_int_encode_zero_equality( (int32_t)(img_security_cnt <
+                                    fih_uint_decode(security_cnt)) );
+
             if (fih_not_eq(fih_rc, FIH_SUCCESS)) {
                 /* The image's security counter is not accepted. */
                 goto out;
diff --git a/boot/cypress/BlinkyApp/BlinkyApp.mk b/boot/cypress/BlinkyApp/BlinkyApp.mk
index 18cbfcf..d7769cf 100644
--- a/boot/cypress/BlinkyApp/BlinkyApp.mk
+++ b/boot/cypress/BlinkyApp/BlinkyApp.mk
@@ -40,8 +40,14 @@
 CUR_APP_PATH = $(PRJ_DIR)/$(APP_NAME)
 
 ifneq ($(FLASH_MAP), )
+#to compare NV-counters for each images with number of images on CYW20829
+ifeq ($(PLATFORM), CYW20829)
+$(CUR_APP_PATH)/flashmap.mk:
+	$(PYTHON_PATH) scripts/flashmap.py -p $(PLATFORM) -i $(FLASH_MAP) -o $(PRJ_DIR)/platforms/cy_flash_pal/cy_flash_map.h -d $(IMG_ID) -c $(PRJ_DIR)/policy/policy_reprovisioning_secure.json > $(CUR_APP_PATH)/flashmap.mk
+else
 $(CUR_APP_PATH)/flashmap.mk:
 	$(PYTHON_PATH) scripts/flashmap.py -p $(PLATFORM) -m -i $(FLASH_MAP) -o $(PRJ_DIR)/platforms/cy_flash_pal/cy_flash_map.h -d $(IMG_ID) > $(CUR_APP_PATH)/flashmap.mk
+endif
 include $(CUR_APP_PATH)/flashmap.mk
 DEFINES_APP := -DCY_FLASH_MAP_JSON
 endif
diff --git a/boot/cypress/BlinkyApp/linker/BlinkyApp_CM33_template_xip.ld b/boot/cypress/BlinkyApp/linker/BlinkyApp_CM33_template_xip.ld
index bf7ea08..4b8b0d8 100644
--- a/boot/cypress/BlinkyApp/linker/BlinkyApp_CM33_template_xip.ld
+++ b/boot/cypress/BlinkyApp/linker/BlinkyApp_CM33_template_xip.ld
@@ -50,8 +50,8 @@
 FLASH_START_ADDR_CBUS       = 0x08000000 + USER_APP_START_ADDR;
 RAM_START_ADDR_SAHB         = 0x20000000;
 RAM_START_ADDR_CBUS         = 0x04000000;
-RAM_END_ADDR_SAHB           = 0x20020000; /* 128K */
-RAM_END_ADDR_CBUS           = 0x04020000; /* 128K */
+RAM_END_ADDR_SAHB           = 0x20040000; /* 256K */
+RAM_END_ADDR_CBUS           = 0x04040000; /* 256K */
 FLASH_END_ADDR_SAHB         = 0x60080000; /* 512K */
 
 BOOTSTRAP_OFFSET_FLASH      = 0x00000050; /* toc2=0x10, l1_desc=0x1C, sign_header=0x20, padding=0x4 (encrypted data should be aligned to 0x10 boundary) */
@@ -85,7 +85,7 @@
 /* size of XIP region */
 XIP_SIZE                    = FLASH_END_ADDR_SAHB - XIP_LMA;
 /* Total size of SRAM */
-RAM_SIZE                    = RAM_END_ADDR_SAHB - RAM_START_ADDR_SAHB; /* 0x00020000 */
+RAM_SIZE                    = RAM_END_ADDR_SAHB - RAM_START_ADDR_SAHB; /* 0x00040000 */
 /* Size of Bootstrap data is kept same as BOOTSTRAP_SIZE */
 DATA_BS_SIZE                = BOOTSTRAP_SIZE;
 
diff --git a/boot/cypress/MCUBootApp/MCUBootApp.mk b/boot/cypress/MCUBootApp/MCUBootApp.mk
index e2dae9f..a90e488 100644
--- a/boot/cypress/MCUBootApp/MCUBootApp.mk
+++ b/boot/cypress/MCUBootApp/MCUBootApp.mk
@@ -34,8 +34,14 @@
 CUR_APP_PATH = $(PRJ_DIR)/$(APP_NAME)
 
 ifneq ($(FLASH_MAP), )
+#to 'Bit_per_cnt' generation for CYW20829
+ifeq ($(PLATFORM), CYW20829)
+$(CUR_APP_PATH)/flashmap.mk:
+	$(PYTHON_PATH) scripts/flashmap.py -p $(PLATFORM) -i $(FLASH_MAP) -o $(PRJ_DIR)/platforms/cy_flash_pal/cy_flash_map.h -c $(PRJ_DIR)/policy/policy_secure.json > $(CUR_APP_PATH)/flashmap.mk
+else
 $(CUR_APP_PATH)/flashmap.mk:
 	$(PYTHON_PATH) scripts/flashmap.py -p $(PLATFORM) -m -i $(FLASH_MAP) -o $(PRJ_DIR)/platforms/cy_flash_pal/cy_flash_map.h > $(CUR_APP_PATH)/flashmap.mk
+endif
 include $(CUR_APP_PATH)/flashmap.mk
 DEFINES_APP := -DCY_FLASH_MAP_JSON
 endif
diff --git a/boot/cypress/MCUBootApp/MCUBootApp_CM33.ld b/boot/cypress/MCUBootApp/MCUBootApp_CM33.ld
index e98f9e5..db3671f 100644
--- a/boot/cypress/MCUBootApp/MCUBootApp_CM33.ld
+++ b/boot/cypress/MCUBootApp/MCUBootApp_CM33.ld
@@ -48,8 +48,8 @@
 FLASH_START_ADDR_CBUS       = 0x08000000;
 RAM_START_ADDR_SAHB         = 0x20000000;
 RAM_START_ADDR_CBUS         = 0x04000000;
-RAM_END_ADDR_SAHB           = 0x20020000; /* 128K */
-RAM_END_ADDR_CBUS           = 0x04020000; /* 128K */
+RAM_END_ADDR_SAHB           = 0x20040000; /* 256K */
+RAM_END_ADDR_CBUS           = 0x04040000; /* 256K */
 FLASH_END_ADDR_SAHB         = 0x60080000; /* 512K */
 
 BOOTSTRAP_OFFSET_FLASH      = 0x00000050; /* toc2=0x10, l1_desc=0x1C, sign_header=0x20, padding=0x4 (encrypted data should be aligned to 0x10 boundary) */
@@ -83,7 +83,7 @@
 /* size of XIP region */
 XIP_SIZE                    = FLASH_END_ADDR_SAHB - XIP_LMA;
 /* Total size of SRAM */
-RAM_SIZE                    = RAM_END_ADDR_SAHB - RAM_START_ADDR_SAHB; /* 0x00020000 */
+RAM_SIZE                    = RAM_END_ADDR_SAHB - RAM_START_ADDR_SAHB; /* 0x00040000 */
 /* Size of Bootstrap data is kept same as BOOTSTRAP_SIZE */
 DATA_BS_SIZE                = BOOTSTRAP_SIZE;
 
diff --git a/boot/cypress/MCUBootApp/main.c b/boot/cypress/MCUBootApp/main.c
index b54e7e5..8a78193 100644
--- a/boot/cypress/MCUBootApp/main.c
+++ b/boot/cypress/MCUBootApp/main.c
@@ -36,7 +36,7 @@
 #if defined APP_CM0P || defined CM4
 #include "cyw_platform_utils.h"
 #endif /* defined APP_CM0P || defined CM4  */
-#endif /* defined CYW20829 || defined EXPLORER  */
+#endif /* defined CYW20829 */
 
 #if defined(CY_BOOT_USE_EXTERNAL_FLASH) || defined(CYW20829)
 #include "flash_qspi.h"
@@ -167,7 +167,7 @@
 #error "Application should run on Cortex-M33"
 #endif /* APP_CM33 */
 
-#else /* defined CYW20829 || defined EXPLORER */
+#else /* defined CYW20829 */
 
 #ifdef USE_XIP
             BOOT_LOG_DBG("XIP: Switch to SMIF XIP mode");
diff --git a/boot/cypress/libs/cy-mbedtls-acceleration b/boot/cypress/libs/cy-mbedtls-acceleration
index b61f07e..a9a4aef 160000
--- a/boot/cypress/libs/cy-mbedtls-acceleration
+++ b/boot/cypress/libs/cy-mbedtls-acceleration
@@ -1 +1 @@
-Subproject commit b61f07e62037c00eabf60afbf048ee254bc99a1e
+Subproject commit a9a4aef9153e4890379690d8d695e96a9d864762
diff --git a/boot/cypress/libs/mtb-hal-cat1 b/boot/cypress/libs/mtb-hal-cat1
index ac09163..282ef6e 160000
--- a/boot/cypress/libs/mtb-hal-cat1
+++ b/boot/cypress/libs/mtb-hal-cat1
@@ -1 +1 @@
-Subproject commit ac0916378f819a273a44165784effed839cba95c
+Subproject commit 282ef6e565290f097e02a7afbe6dcde30c0f4028
diff --git a/boot/cypress/libs/mtb-pdl-cat1 b/boot/cypress/libs/mtb-pdl-cat1
index e851dc2..8ed7d45 160000
--- a/boot/cypress/libs/mtb-pdl-cat1
+++ b/boot/cypress/libs/mtb-pdl-cat1
@@ -1 +1 @@
-Subproject commit e851dc2c1a9f7acaf29aad83c7e65ccd48cec453
+Subproject commit 8ed7d4526dcc8d1c2efb96f7f56da8d5dc043227
diff --git a/boot/cypress/libs/retarget-io b/boot/cypress/libs/retarget-io
index a61cd7c..3072757 160000
--- a/boot/cypress/libs/retarget-io
+++ b/boot/cypress/libs/retarget-io
@@ -1 +1 @@
-Subproject commit a61cd7c5f4b2808c949248f05287c09e6578abfc
+Subproject commit 30727575b7bdd69df69d47c74e4fb56ced3633c4
diff --git a/boot/cypress/platforms/BSP/CYW20829/system/COMPONENT_CM33/ns_start_cyw20829.c b/boot/cypress/platforms/BSP/CYW20829/system/COMPONENT_CM33/ns_start_cyw20829.c
index 77d11a3..832ff88 100644
--- a/boot/cypress/platforms/BSP/CYW20829/system/COMPONENT_CM33/ns_start_cyw20829.c
+++ b/boot/cypress/platforms/BSP/CYW20829/system/COMPONENT_CM33/ns_start_cyw20829.c
@@ -37,13 +37,13 @@
 #include "cmsis_compiler.h"
 
 CY_MISRA_FP_BLOCK_START('MISRA C-2012 Rule 8.6', 3, \
-'Checked manually. The definition is a part of linker script or application.');
+'Checked manually. The definition is a part of linker script or application.')
 CY_MISRA_DEVIATE_BLOCK_START('ARRAY_VS_SINGLETON', 1, \
-'Checked manually. Using pointer as an array will not corrupt or misinterpret adjacent memory locations.');
+'Checked manually. Using pointer as an array will not corrupt or misinterpret adjacent memory locations.')
 CY_MISRA_DEVIATE_BLOCK_START('MISRA C-2012 Rule 18.1', 3, \
-'Checked manually. Dereferencing a pointer to one beyond the end of an array will not result in undefined behaviour.');
+'Checked manually. Dereferencing a pointer to one beyond the end of an array will not result in undefined behaviour.')
 CY_MISRA_DEVIATE_BLOCK_START('MISRA C-2012 Rule 18.3', 1, \
-'Checked manually. Attempting to make comparisons between pointers will not result in undefined behaviour.');
+'Checked manually. Attempting to make comparisons between pointers will not result in undefined behaviour.')
 
 #if defined (__ARMCC_VERSION)
 extern uint32_t Region$$Table$$Base;
@@ -477,9 +477,9 @@
    __PROGRAM_START();
 }
 
-CY_MISRA_BLOCK_END('MISRA C-2012 Rule 18.3');
-CY_MISRA_BLOCK_END('MISRA C-2012 Rule 18.1');
-CY_MISRA_BLOCK_END('ARRAY_VS_SINGLETON');
-CY_MISRA_BLOCK_END('MISRA C-2012 Rule 8.6');
+CY_MISRA_BLOCK_END('MISRA C-2012 Rule 18.3')
+CY_MISRA_BLOCK_END('MISRA C-2012 Rule 18.1')
+CY_MISRA_BLOCK_END('ARRAY_VS_SINGLETON')
+CY_MISRA_BLOCK_END('MISRA C-2012 Rule 8.6')
 
 #endif /* defined (CY_DEVICE_CYW20829) */
diff --git a/boot/cypress/platforms/BSP/CYW20829/system/COMPONENT_CM33/ns_system_cyw20829.c b/boot/cypress/platforms/BSP/CYW20829/system/COMPONENT_CM33/ns_system_cyw20829.c
index 2594560..2a9083d 100644
--- a/boot/cypress/platforms/BSP/CYW20829/system/COMPONENT_CM33/ns_system_cyw20829.c
+++ b/boot/cypress/platforms/BSP/CYW20829/system/COMPONENT_CM33/ns_system_cyw20829.c
@@ -34,13 +34,13 @@
 #include "cy_syspm.h"
 
 CY_MISRA_DEVIATE_BLOCK_START('ARRAY_VS_SINGLETON', 1, \
-'Checked manually. Using pointer as an array will not corrupt or misinterpret adjacent memory locations.');
+'Checked manually. Using pointer as an array will not corrupt or misinterpret adjacent memory locations.')
 CY_MISRA_DEVIATE_BLOCK_START('MISRA C-2012 Rule 18.1', 1, \
-'Checked manually. Dereferencing a pointer to one beyond the end of an array will not result in undefined behaviour.');
+'Checked manually. Dereferencing a pointer to one beyond the end of an array will not result in undefined behaviour.')
 CY_MISRA_DEVIATE_BLOCK_START('MISRA C-2012 Rule 18.3', 1, \
-'Checked manually. Attempting to make comparisons between pointers will not result in undefined behaviour.');
+'Checked manually. Attempting to make comparisons between pointers will not result in undefined behaviour.')
 CY_MISRA_FP_BLOCK_START('MISRA C-2012 Rule 8.6', 2, \
-'Checked manually. The definition is a part of linker script or application.');
+'Checked manually. The definition is a part of linker script or application.')
 
 /*******************************************************************************
 * SystemCoreClockUpdate()
@@ -146,6 +146,85 @@
     SystemCoreClockUpdate();
 }
 
+CY_SECTION_RAMFUNC_BEGIN
+/*******************************************************************************
+* Function Name: SystemInit_Warmboot_CAT1B_CM33
+****************************************************************************//**
+*
+* Prepares the system to work after warmboot:
+* - Intializes Vector Table
+* - Enables all the IP's through Slave Control Registers
+* - Unfreezes the IO's
+*
+*******************************************************************************/
+void SystemInit_Warmboot_CAT1B_CM33()
+{
+    SCB->VTOR = (uint32_t)__ns_vector_table_rw;
+    (void)Cy_SysClk_PeriGroupSetSlaveCtl(1, CY_SYSCLK_PERI_GROUP_SL_CTL2, 0x0U);
+    (void)Cy_SysClk_PeriGroupSetSlaveCtl(2, CY_SYSCLK_PERI_GROUP_SL_CTL2, 0x0U);
+    (void)Cy_SysClk_PeriGroupSetSlaveCtl(1, CY_SYSCLK_PERI_GROUP_SL_CTL, 0xFFFFFFFFU);
+    (void)Cy_SysClk_PeriGroupSetSlaveCtl(2, CY_SYSCLK_PERI_GROUP_SL_CTL, 0xFFFFFFFFU);
+    (void)Cy_SysClk_PeriGroupSetSlaveCtl(3, CY_SYSCLK_PERI_GROUP_SL_CTL, 0xFFFFFFFFU);
+
+    if (Cy_SysPm_DeepSleepIoIsFrozen())
+    {
+        Cy_SysPm_DeepSleepIoUnfreeze();
+    }
+}
+CY_SECTION_RAMFUNC_END
+
+#define CY_NVIC_REG_COUNT 3U
+#define CY_NVIC_IPR_REG_COUNT 69U
+
+uint32_t nvicStoreRestore[CY_NVIC_REG_COUNT];
+uint32_t nvicIPRStoreRestore[CY_NVIC_IPR_REG_COUNT];
+uint32_t scbSHPR3StoreRestore;
+#define SCB_SHPR3_REG     ( *( ( volatile uint32_t * ) 0xe000ed20 ) )
+
+/*******************************************************************************
+* Function Name: System_Store_NVIC_Reg
+****************************************************************************//**
+*
+* Stores the NVIC register before Deepsleep RAM:
+*
+*******************************************************************************/
+void System_Store_NVIC_Reg(void)
+{
+    for (uint32_t idx = 0; idx < CY_NVIC_REG_COUNT; idx++)
+    {
+        nvicStoreRestore[idx] = NVIC->ISER[idx];
+    }
+
+    for (uint32_t idx = 0; idx < CY_NVIC_IPR_REG_COUNT; idx++)
+    {
+        nvicIPRStoreRestore[idx] = NVIC->IPR[idx];
+    }
+
+    scbSHPR3StoreRestore = SCB_SHPR3_REG;
+}
+
+
+/*******************************************************************************
+* Function Name: System_Restore_NVIC_Reg
+****************************************************************************//**
+*
+* Restores the NVIC register After Deepsleep RAM Wakeup i.e. Warmboot:
+*
+*******************************************************************************/
+void System_Restore_NVIC_Reg(void)
+{
+    for (uint32_t idx = 0; idx < CY_NVIC_REG_COUNT; idx++)
+    {
+        NVIC->ISER[idx] = nvicStoreRestore[idx];
+    }
+
+    for (uint32_t idx = 0; idx < CY_NVIC_IPR_REG_COUNT; idx++)
+    {
+        NVIC->IPR[idx] = nvicIPRStoreRestore[idx];
+    }
+
+    SCB_SHPR3_REG = scbSHPR3StoreRestore;
+}
 void SystemInit(void)
 {
     SystemInit_CAT1B_CM33();
@@ -202,10 +281,10 @@
     cy_AhbFreqHz = Cy_SysClk_ClkHfGetFrequency(0UL);
 }
 
-CY_MISRA_BLOCK_END('MISRA C-2012 Rule 8.6');
-CY_MISRA_BLOCK_END('MISRA C-2012 Rule 18.3');
-CY_MISRA_BLOCK_END('MISRA C-2012 Rule 18.1');
-CY_MISRA_BLOCK_END('ARRAY_VS_SINGLETON');
+CY_MISRA_BLOCK_END('MISRA C-2012 Rule 8.6')
+CY_MISRA_BLOCK_END('MISRA C-2012 Rule 18.3')
+CY_MISRA_BLOCK_END('MISRA C-2012 Rule 18.1')
+CY_MISRA_BLOCK_END('ARRAY_VS_SINGLETON')
 
 #endif /* defined (CY_DEVICE_CYW20829) */
 /* [] END OF FILE */
diff --git a/boot/cypress/platforms/BSP/CYW20829/system/startup_cat1b.h b/boot/cypress/platforms/BSP/CYW20829/system/startup_cat1b.h
index 9bd6e46..953b5a1 100644
--- a/boot/cypress/platforms/BSP/CYW20829/system/startup_cat1b.h
+++ b/boot/cypress/platforms/BSP/CYW20829/system/startup_cat1b.h
@@ -27,10 +27,6 @@
 #ifndef STARTUP_CAT1B_H_
 #define STARTUP_CAT1B_H_
 
-#if defined (CY_DEVICE_CYW20829) /* Declarations for CYW20829 */
-
-#include "cyw20829_config.h"
-
 #define CM33_FIXED_EXP_NR       (15u)
 #define VECTORTABLE_SIZE        (MXCM33_SYSTEM_INT_NR + CM33_FIXED_EXP_NR + 1u) /* +1 is for Stack pointer */
 #define VECTORTABLE_ALIGN       (512) /* alignment for 85 entries (85x4=340) is 512 bytes */
@@ -54,7 +50,6 @@
     #error "An unsupported toolchain"
 #endif  /* (__ARMCC_VERSION) */
 extern ExecFuncPtr __ns_vector_table[]; /**< Non-secure vector table in non-secure SRAM */
-#endif /* CY_DEVICE_CYW20829 */
 
 #endif /* STARTUP_CAT1B_H_ */
 
diff --git a/boot/cypress/platforms/BSP/CYW20829/system/system_cyw20829.h b/boot/cypress/platforms/BSP/CYW20829/system/system_cyw20829.h
index b422865..f136e81 100644
--- a/boot/cypress/platforms/BSP/CYW20829/system/system_cyw20829.h
+++ b/boot/cypress/platforms/BSP/CYW20829/system/system_cyw20829.h
@@ -272,6 +272,9 @@
 
 /** \cond */
 void SystemInit(void);
+void SystemInit_Warmboot_CAT1B_CM33(void);
+void System_Store_NVIC_Reg(void);
+void System_Restore_NVIC_Reg(void);
 extern void SystemCoreClockUpdate(void);
 
 extern void     Cy_SystemInit(void);
diff --git a/boot/cypress/platforms/CYW20829.md b/boot/cypress/platforms/CYW20829.md
index 420d337..79694e9 100644
--- a/boot/cypress/platforms/CYW20829.md
+++ b/boot/cypress/platforms/CYW20829.md
@@ -116,19 +116,43 @@
         "reprovisioning":
         {
             "nv_counter": {
-                "description": "Anti-rollback counter (supports up to 32 updates)",
-                "value": 0
+                "description": "Anti-rollback counter. Each item of the 'value' array defines counter for each next application. Each 'bits_per_cnt' item defines number of bits for the next application counter (total bits number 32). IMPORTANT: 'bits_per_cnt' in the provisioning and reprovisioning policy files MUST BE the same",
+                "value": [0],
+                "bits_per_cnt": [32]
             },
 
-If the `nv_counter` value is left untouched, any image with counters higher than 0 and less than (or equal to) 32 can be programmed into the chip.  
+or 
+
+        "reprovisioning":
+        {
+            "nv_counter": {
+                "description": "Anti-rollback counter. Each item of the 'value' array defines counter for each next application. Each 'bits_per_cnt' item defines number of bits for the next application counter (total bits number 32). IMPORTANT: 'bits_per_cnt' in the provisioning and reprovisioning policy files MUST BE the same",
+                "value": [0, 0],
+                "bits_per_cnt": [24, 8]
+            },
+
+for multi-image case (2 images).
+
+If the `nv_counter` value is left untouched, any image with counters higher than 0 and less than value defined by `bits_per_cnt` (or equal to) can be programmed into the chip.
+
+`bits_per_cnt` also defines a distribution of eFuse among images in system. For example, in first case MCUBootApp is considered to be single image configuration with all 32 available eFuses dedicated to this one image.
+
+In second case MCUBootApp is considered to be multi-image configuration with 2 images. 24 bits of 32 available eFuses are dedicated to image id 1, and 8 bits to image id 2. 
+
+This distribusion can be changed by user at initial provisioning stage and SHOULD NOT be changed at later reprovisioning stages.
+
+`"value": [2, 3]` filed sets corresponding value for image ids. Here `4` would be assigned to image id `1` and `5` to image id `2`.
+
 If the `nv_counter` value is encreased in `policy/policy_secure.json` at the provisioning stage, the `nv_counter` value in `policy/policy_reprovisioning_secure.json` must start from the value not less than the value in `policy/policy_secure.json` file.   
 More details about provisioning and reprovisioning processes you can find in [README_CYW20829.md](https://github.com/Infineon/cysecuretools/blob/master/docs/README_CYW20829.md#command-provision-device)  
 
-When preparing an image for MCUBootApp with the rollback counter support, the `cysecuretools` sign it with `policy/policy_secure.json` in the post-build stage of 'make'. The `nv_counter` value remains the same as one in the chip or sets higher. When `cysecuretools` signs an image, it places the `nv-counter` value and the reprovisioning packet in TLVs with tags 0x50 (plain value of the counter) and 0x51 (reprovisioning packet). MCUBootApp then parses these tags and compares the value supplied with the image against the one stored in the Efuse counter.
+When preparing an image for MCUBootApp with the rollback counter support, the `cysecuretools` signs it with `policy/policy_secure.json` in the post-build stage of `make`. The `nv_counter` value remains the same as one in the chip or sets higher. When `cysecuretools` signs an image, it places the `nv-counter` value and the reprovisioning packet in TLVs with tags 0x50 (bit mask representation of the counter) and 0x51 (reprovisioning packet). MCUBootApp then parses these tags and compares the value supplied with the image against the one stored in the Efuse counter.
+
+If image counter value is set to higher then defined for this image by `bits_per_cnt` filed in policy, for example, image id 1 is provisioned to have 16 bits for its counter, but image programmed has nv counter value of 20 embedded in TLVs - MCUBootApp would discard it as invalid.
 
 ### Building MCUBootApp and BlinkyApp with rollback protection 
 
-Examples of the build command with the rollback counter support for a single image and 'Overwride' mode:  
+Examples of the build command with the rollback counter support for a `single image` and **OVERWRITE** mode:  
 for MCUBootApp:  
 
     make clean app APP_NAME=MCUBootApp PLATFORM=CYW20829 APP_DEFAULT_POLICY=./policy/policy_secure.json BUILDCFG=Debug FLASH_MAP=platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_overwrite_single.json LCS=SECURE
@@ -136,11 +160,11 @@
 for BlinkyApp with TLVs containing rollback counter data:  
  - BOOT slot:  
 
-    make clean_boot app APP_NAME=BlinkyApp PLATFORM=CYW20829 IMG_TYPE=BOOT APP_DEFAULT_POLICY=./policy/policy_reprovisioning_secure.json FLASH_MAP=platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_overwrite_single.json  
+        make clean_boot app APP_NAME=BlinkyApp PLATFORM=CYW20829 IMG_TYPE=BOOT APP_DEFAULT_POLICY=./policy/policy_reprovisioning_secure.json FLASH_MAP=platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_overwrite_single.json  
 
  - UPGRADE slot:  
 
-    make clean_upgrade app APP_NAME=BlinkyApp PLATFORM=CYW20829 IMG_TYPE=UPGRADE APP_DEFAULT_POLICY=./policy/policy_reprovisioning_secure.json FLASH_MAP=platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_overwrite_single.json  
+        make clean_upgrade app APP_NAME=BlinkyApp PLATFORM=CYW20829 IMG_TYPE=UPGRADE APP_DEFAULT_POLICY=./policy/policy_reprovisioning_secure.json FLASH_MAP=platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_overwrite_single.json
 
 #### NV-counter update
 
@@ -190,11 +214,9 @@
 
 **Multi-image case**
 
-Since there is only one physical security counter available on `CYW20829` in a multi-image use case, all images in the system should have the same value of security counter.
+See **Rollback protection Support** section for description. 
 
-For example, two images are programmed to their corresponding BOOT slots with a security counter value of 2. The value of the security counter stored in the chip is also 2. In case one of the images requires an update and its value of the security counter is increased to 3 - the second image should also be updated with a counter value of 3. This is required because `BootROM` will update the security image counter stored in the chip to 3 per first upgrade image. After that - the second image would become invalid since it still contains a security counter of 2. These restrictions will be removed in the release of MCUBoot version 1.8.3. 
-
-Examples of the build command with the rollback counter support for the multi-image case, swap mode:  
+Examples of the build command with the rollback counter support for the `multi-image case`, **SWAP** upgrade mode:  
 
 for MCUBootApp:  
 
@@ -203,18 +225,18 @@
 for BlinkyApp with TLVs containing rollback counter data:
  - BOOT slot, IMG_ID=1:  
  
-    make clean_boot app APP_NAME=BlinkyApp PLATFORM=CYW20829 IMG_TYPE=BOOT APP_DEFAULT_POLICY=./policy/policy_reprovisioning_secure.json FLASH_MAP=platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_swap_multi2.json IMG_ID=1  
+        make clean_boot app APP_NAME=BlinkyApp PLATFORM=CYW20829 IMG_TYPE=BOOT APP_DEFAULT_POLICY=./policy/policy_reprovisioning_secure.json FLASH_MAP=platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_swap_multi2.json IMG_ID=1  
  - UPGRADE slot, IMG_ID=1:  
  
-    make clean_upgrade app APP_NAME=BlinkyApp PLATFORM=CYW20829 IMG_TYPE=UPGRADE APP_DEFAULT_POLICY=./policy/policy_reprovisioning_secure.json FLASH_MAP=platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_swap_multi2.json IMG_ID=1
+        make clean_upgrade app APP_NAME=BlinkyApp PLATFORM=CYW20829 IMG_TYPE=UPGRADE APP_DEFAULT_POLICY=./policy/policy_reprovisioning_secure.json FLASH_MAP=platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_swap_multi2.json IMG_ID=1
 
  - BOOT slot, IMG_ID=2:  
  
-    make clean_boot app APP_NAME=BlinkyApp PLATFORM=CYW20829 IMG_TYPE=BOOT APP_DEFAULT_POLICY=./policy/policy_reprovisioning_secure.json FLASH_MAP=platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_swap_multi2.json IMG_ID=2  
+        make clean_boot app APP_NAME=BlinkyApp PLATFORM=CYW20829 IMG_TYPE=BOOT APP_DEFAULT_POLICY=./policy/policy_reprovisioning_secure.json FLASH_MAP=platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_swap_multi2.json IMG_ID=2  
     
  - UPGRADE slot, IMG_ID=2:  
     
-    make clean_upgrade app APP_NAME=BlinkyApp PLATFORM=CYW20829 IMG_TYPE=UPGRADE APP_DEFAULT_POLICY=./policy/policy_reprovisioning_secure.json FLASH_MAP=platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_swap_multi2.json IMG_ID=2
+        make clean_upgrade app APP_NAME=BlinkyApp PLATFORM=CYW20829 IMG_TYPE=UPGRADE APP_DEFAULT_POLICY=./policy/policy_reprovisioning_secure.json FLASH_MAP=platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_swap_multi2.json IMG_ID=2
     
 **Attention!** Don't omit `clean_boot` and `clean_upgrade` to avoid any issues!   
 
diff --git a/boot/cypress/platforms/CYW20829.mk b/boot/cypress/platforms/CYW20829.mk
index 727a83b..d72f804 100644
--- a/boot/cypress/platforms/CYW20829.mk
+++ b/boot/cypress/platforms/CYW20829.mk
@@ -36,7 +36,7 @@
 # MCU device selection, based on target device.
 # Default chips are used for supported platforms
 # This can be redefined in case of other chip usage
-DEVICE ?= CYW20829A0LKML
+DEVICE ?= CYW20829B0LKML
 # If PSVP build is required
 ifeq ($(CYW20829_PSVP), 1)
 SERVICE_APP_PLATFORM_SUFFIX := _psvp
@@ -196,7 +196,8 @@
 
 PLATFORM_DEFAULT_IMG_VER_ARG ?= 1.0.0
 
-PLATFORM_SIGN_ARGS := --image-format $(SIGN_TYPE) -i $(OUT_CFG)/$(APP_NAME).final.bin -o $(OUT_CFG)/$(APP_NAME)$(UPGRADE_SUFFIX).bin --key-path $(PRJ_DIR)/keys/cypress-test-ec-p256.pem --update-key-path $(PRJ_DIR)/keys/priv_oem_0.pem --slot-size $(SLOT_SIZE) --align 1
+SIGN_IMG_ID = $(shell expr $(IMG_ID) - 1)
+PLATFORM_SIGN_ARGS := --image-format $(SIGN_TYPE) -i $(OUT_CFG)/$(APP_NAME).final.bin -o $(OUT_CFG)/$(APP_NAME)$(UPGRADE_SUFFIX).bin --key-path $(PRJ_DIR)/keys/cypress-test-ec-p256.pem --update-key-path $(PRJ_DIR)/keys/priv_oem_0.pem --slot-size $(SLOT_SIZE) --align 1 --image-id $(SIGN_IMG_ID)
 
 # Use encryption and random initial vector for image
 ifeq ($(ENC_IMG), 1)
@@ -210,6 +211,8 @@
 	$(info [TOC2_Generate] - Execute toc2 generator script for $(APP_NAME))
 	$(shell $(PRJ_DIR)/run_toc2_generator.sh $(LCS) $(OUT_CFG) $(APP_NAME) $(APPTYPE) $(PRJ_DIR) $(SMIF_CRYPTO_CONFIG) $(TOOLCHAIN_PATH))
 
+	$(info SIGN_ARGS <-> $(SIGN_ARGS))
+
 	$(shell cysecuretools -q -t cyw20829 -p $(APP_DEFAULT_POLICY) sign-image $(SIGN_ARGS))
 
 	$(GCC_PATH)/bin/arm-none-eabi-objcopy --change-address=$(HEADER_OFFSET) -I binary -O ihex $(OUT_CFG)/$(APP_NAME)$(UPGRADE_SUFFIX).bin $(OUT_CFG)/$(APP_NAME)$(UPGRADE_SUFFIX).hex
diff --git a/boot/cypress/platforms/cy_flash_pal/flash_cyw20829/cy_flash_map.c b/boot/cypress/platforms/cy_flash_pal/flash_cyw20829/cy_flash_map.c
index 21b9e60..3ea5773 100644
--- a/boot/cypress/platforms/cy_flash_pal/flash_cyw20829/cy_flash_map.c
+++ b/boot/cypress/platforms/cy_flash_pal/flash_cyw20829/cy_flash_map.c
@@ -37,6 +37,13 @@
 #include "bootutil/bootutil_public.h"
 
 #include "cy_flash.h"
+
+#ifdef NEED_MAX_COUNTERS
+#undef NEED_MAX_COUNTERS
+#endif 
+
+#define NEED_FLASH_MAP /*must be before "cy_flash_map.h"*/
+
 #include "cy_flash_map.h"
 
 #include "cy_smif_cyw20829.h"
diff --git a/boot/cypress/platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_swap_shared_psvp.json b/boot/cypress/platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_swap_shared_psvp.json
deleted file mode 100644
index 40593c3..0000000
--- a/boot/cypress/platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_swap_shared_psvp.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
-    "external_flash": [
-        {
-            "model": "FM25W04",
-            "mode": "XIP"
-        }
-    ],
-    "boot_and_upgrade":
-    {
-        "bootloader": {
-            "address": {
-                "description": "Address of the bootloader",
-                "value": "0x60000000"
-            },
-            "size": {
-                "description": "Size of the bootloader",
-                "value": "0x20000"
-            },
-            "scratch_address": {
-                "description": "Address of the scratch area",
-                "value": "0x6007E000"
-            },
-            "scratch_size": {
-                "description": "Size of the scratch area",
-                "value": "0x2000"
-            },
-            "status_address": {
-                "description": "Address of the swap status partition",
-                "value": "0x6005C000"
-            },
-            "status_size": {
-                "description": "Size of the swap status partition",
-                "value": "0x1C000"
-            }
-        },
-        "application_1": {
-            "address": {
-                "description": "Address of the application primary slot",
-                "value": "0x60020000"
-            },
-            "size": {
-                "description": "Size of the application primary slot",
-                "value": "0x10000"
-            },
-            "shared_slot": {
-                "description": "Using shared secondary slot",
-                "value": true
-            },
-            "upgrade_address": {
-                "description": "Address of the application secondary slot",
-                "value": "0x60040000"
-            },
-            "upgrade_size": {
-                "description": "Size of the application secondary slot",
-                "value": "0x10000"
-            }
-        },
-        "application_2": {
-            "address": {
-                "description": "Address of the application primary slot",
-                "value": "0x60030000"
-            },
-            "size": {
-                "description": "Size of the application primary slot",
-                "value": "0x10000"
-            },
-            "shared_slot": {
-                "description": "Using shared secondary slot",
-                "value": true
-            },
-            "upgrade_address": {
-                "description": "Address of the application secondary slot",
-                "value": "0x60041000"
-            },
-            "upgrade_size": {
-                "description": "Size of the application secondary slot",
-                "value": "0x10000"
-            }
-        }
-    }
-}
\ No newline at end of file
diff --git a/boot/cypress/platforms/security_counter/CYW20829/cy_security_cnt_platform.c b/boot/cypress/platforms/security_counter/CYW20829/cy_security_cnt_platform.c
index d0a86a9..c460034 100644
--- a/boot/cypress/platforms/security_counter/CYW20829/cy_security_cnt_platform.c
+++ b/boot/cypress/platforms/security_counter/CYW20829/cy_security_cnt_platform.c
@@ -16,7 +16,7 @@
  */
 
 #include <stdint.h>
-
+#include "bootutil/bootutil_log.h"
 #include "cy_security_cnt_platform.h"
 #include "cy_service_app.h"
 #include "sysflash/sysflash.h"
@@ -24,49 +24,123 @@
 
 #if defined MCUBOOT_HW_ROLLBACK_PROT
 
+#ifdef NEED_FLASH_MAP
+#undef NEED_FLASH_MAP
+#endif
+
+#define NEED_MAX_COUNTERS
+#include "cy_flash_map.h"
+
 #define TEST_BIT(var, pos) (0U != ((var) & (1UL << (pos))))
 
 #define NV_COUNTER_EFUSE_OFFSET  0x60
 
-/**
- * Efuse stores nv counter value as a consequent bits. This means
- * NV counter set to 5 in policy would be written as 0x1F. This function
- * converts efuse value to integer value.
- *
- * @param val     Value of security counter from which came from efuse
- *                which needs to converted in a number
- *
- * @return        Security counter value in number form encoded in complex type on success;
- *                FIH_FAILURE on failure.
- */
-static fih_uint convert_efuse_val(fih_uint val)
+static uint8_t get_array_member(uint32_t image_id)
 {
-    uint32_t i = 0U;
-    uint32_t j = MAX_SEC_COUNTER_VAL - 1U;
+    uint8_t start_bit_for_image_id = 0;
+    uint32_t arr_size = sizeof(bits_per_cnt)/sizeof(bits_per_cnt[0]);
 
-    while (TEST_BIT(fih_uint_decode(val), i++)) {
-        j--;
+    for (uint32_t j = 0; j < image_id && j < arr_size; ++j) {
+        start_bit_for_image_id += bits_per_cnt[j]; 
     }
 
-    if ((MAX_SEC_COUNTER_VAL - j) == i) {
-        return fih_uint_encode(i - 1U);
+    return start_bit_for_image_id;
+}
+
+static fih_uint counter_extract(uint32_t image_id, fih_uint nv_counter)
+{
+    uint32_t res = 0U;
+    uint8_t start_bit_for_image_id = get_array_member(image_id);
+    uint8_t bits_for_current_image = bits_per_cnt[image_id];
+
+    while (TEST_BIT(fih_uint_decode(nv_counter), start_bit_for_image_id) && 
+            bits_for_current_image != 0U)
+    {
+        ++res;
+        ++start_bit_for_image_id;
+        --bits_for_current_image;
     }
-    else {
-        return (fih_uint)FIH_FAILURE;
-    }
+
+    return fih_uint_encode(res);
 }
 
 /**
- * Reads a data corresponding to security counter which is stored in
- * efuses of chip and converts it actual value of security counter
+ * Extracts security counter for the desired image from full NV
+ * counter and converts it to integer value.
+ * Efuse stores nv counter value as a consequent bits. This means
+ * NV counter set to 5 in policy would be written as 0x1F.
+ * Only one security counter is available in system. Maximum value is 32.
+ * Since more than one image can be used, 32 bits of NV counter are divided into
+ * number of images (it's on a user decision how many bits for each image).
  *
- * @param security_cnt     Pointer to a variable, where security counter value would be stored
+ * @param image_id          Index of the image (from 0)
  *
- * @return                 FIH_SUCESS on success; FIH_FAILURE on failure.
+ * @param nv_counter        Full security counter to get specific efuse value for desired image
+ * 
+ * @param extracted_img_cnt Pointer to a variable, where extracted counter for the 'image_id'
+ *                          would be stored
+ *
+ * @return                  FIH_FAILURE on failure, otherwise FIH_SUCCESS.
+ *                      
  */
-fih_int platform_security_counter_get(fih_uint *security_cnt) {
 
+fih_int platform_security_counter_check_extract(uint32_t image_id, fih_uint nv_counter, fih_uint *extracted_img_cnt)
+{
     fih_int fih_ret = FIH_FAILURE;
+    uint32_t arr_size = sizeof(bits_per_cnt)/sizeof(bits_per_cnt[0]);
+    
+    if (image_id > (arr_size-1U)) {
+        BOOT_LOG_ERR("Incorrect input parameter Image ID");
+        FIH_RET(fih_ret);
+    }
+
+    uint8_t start_bit_for_image_id = get_array_member(image_id);
+    uint8_t bits_for_current_image = bits_per_cnt[image_id];
+    uint32_t bit_mask_to_check_others_images = 0U;
+
+    /* Check if full NV-counter has any bits of others image_id */
+        /* Set up the number of bits equal to bits_for_current_image */
+    for (uint32_t j = 0; j < bits_for_current_image; ++j)
+    {
+        bit_mask_to_check_others_images <<= 1U;
+        bit_mask_to_check_others_images |= 1U;
+    }
+        /* Move bit_mask_to_check_others_images at place for image_id */
+    bit_mask_to_check_others_images <<= start_bit_for_image_id;
+
+    /* Return an error if recieved full NV-counter has any bits of others image_id */
+    if( !(~bit_mask_to_check_others_images & fih_uint_decode(nv_counter)) )
+    {
+        /* Extract number of set bits from full NV-counter in the upgrade image */
+        *extracted_img_cnt = counter_extract(image_id, nv_counter);
+
+        fih_ret = FIH_SUCCESS;
+    }
+
+    FIH_RET(fih_ret);
+}
+
+/**
+ * Reads the security counter data from chip's EFUSEs and converts it to the actual value of 
+ * security counter for each image.
+ *
+ * @param image_id          The image number for which you want to get a security counter,
+ *                          saved in EFUSE
+ * @param security_cnt      Pointer to a variable, where security counter value for the 'image_id'
+ *                          would be stored
+ *
+ * @return                  FIH_SUCESS on success; FIH_FAILURE on failure.
+ */
+fih_int platform_security_counter_get(uint32_t image_id, fih_uint *security_cnt) {
+
+    fih_int fih_ret = FIH_FAILURE;      
+    uint32_t arr_size = sizeof(bits_per_cnt)/sizeof(bits_per_cnt[0]);
+
+    if (image_id > (arr_size-1U)) {
+        BOOT_LOG_ERR("Incorrect input parameter Image ID");
+        FIH_RET(fih_ret);
+    }
+
     cy_en_efuse_status_t efuse_stat = CY_EFUSE_ERR_UNC;
     uint32_t nv_counter = 0;
     fih_uint nv_counter_secure = (fih_uint)FIH_FAILURE;
@@ -88,9 +162,9 @@
 
             if (fih_uint_eq(nv_counter_secure, fih_uint_encode(nv_counter))) {
 
-                *security_cnt = convert_efuse_val(nv_counter);
-                fih_ret = FIH_SUCCESS;
+                *security_cnt = counter_extract(image_id, nv_counter);
 
+                fih_ret = FIH_SUCCESS;
             }
         }
 
@@ -102,34 +176,43 @@
 }
 
 /**
- * Updates the stored value of a given image's security counter with a new
+ * Updates the stored value of a given security counter with a new
  * security counter value if the new one is greater.
+ * Only one security counter is available in system. Maximum value is 32.
+ * Since more than one image can be used, 32 bits of NV counter are divided into
+ * number of images (it's on a user decision how many bits for each image).
  *
- * @param reprov_packet     Pointer to a reprovisioning packet containing NV counter.
- * @param packet_len        Length of a packet
- * @param img_security_cnt  Security counter value of image
- *
+ * @param image_id          The image number for which you want to get a security counter,
+ *                          saved in EFUSE (from 0)
+ * @param img_security_cnt  Full new NV security counter
+ * @param reprov_packet     Pointer to a reprovisioning packet containing new NV counter.
  * @return                  0 on success; nonzero on failure.
  */
-int32_t platform_security_counter_update(uint32_t img_security_cnt, uint8_t * reprov_packet)
+int32_t platform_security_counter_update(uint32_t image_id, uint32_t img_security_cnt, uint8_t * reprov_packet)
 {
     int32_t rc = -1;
-    fih_uint security_cnt = (fih_uint) FIH_FAILURE;
     fih_int fih_rc = FIH_FAILURE;
+    fih_uint efuse_img_counter = (fih_uint)FIH_FAILURE;
+    fih_uint packet_img_counter = counter_extract(image_id, img_security_cnt);
 
     /* Read value of security counter stored in chips efuses.
      * Only one security counter is available in system. Maximum value is 32.
     */
-    FIH_CALL(platform_security_counter_get, fih_rc, &security_cnt);
+    FIH_CALL(platform_security_counter_get, fih_rc, image_id, &efuse_img_counter);
 
-    if (true == fih_eq(fih_rc, FIH_SUCCESS)) {
+    if (FIH_TRUE == fih_eq(fih_rc, FIH_SUCCESS)) {
 
         /* Compare the new image's security counter value against the
-        * stored security counter value.
+        * stored security counter value for that image index.
         */
-        if ( (img_security_cnt > fih_uint_decode(security_cnt)) &&
-             (img_security_cnt <= MAX_SEC_COUNTER_VAL) ) {
-            
+
+        BOOT_LOG_DBG("image_id = %u, packet_img_counter = %u, efuse_img_counter = %u \n",
+                image_id, packet_img_counter, fih_uint_decode(efuse_img_counter));
+
+        if ((packet_img_counter > fih_uint_decode(efuse_img_counter)) &&
+             (packet_img_counter <= MAX_SEC_COUNTER_VAL)) {
+
+            BOOT_LOG_INF("service_app is called\n", __func__ );
             /* Attention: This function initiates system reset */
             call_service_app(reprov_packet);
             /* Runtime should never get here. Panic statement added to secure
diff --git a/boot/cypress/platforms/security_counter/CYW20829/cy_security_cnt_platform.h b/boot/cypress/platforms/security_counter/CYW20829/cy_security_cnt_platform.h
index 578e689..c64eadd 100644
--- a/boot/cypress/platforms/security_counter/CYW20829/cy_security_cnt_platform.h
+++ b/boot/cypress/platforms/security_counter/CYW20829/cy_security_cnt_platform.h
@@ -23,25 +23,55 @@
 #define MAX_SEC_COUNTER_VAL      (32U)
 
 /**
- * Reads a data corresponding to security counter which is stored in
- * efuses of chip and converts it actual value of security conter
- *
- * @param security_cnt     Pointer to a variable, where security conter value would be stored
+ * Reads the security counter data from chip's EFUSEs and converts it to the actual value of 
+ * security counter for each image.
+ * 
+ * @param image_id          The image number for which you want to get a security counter,
+ *                          saved in EFUSE (from 0)
+ * @param security_cnt      Pointer to a variable, where security conter value would be stored
  *
  * @return                  FIH_SUCESS on success; FIH_FAILURE on failure.
  */
-fih_int platform_security_counter_get(fih_uint *security_cnt);
+fih_int platform_security_counter_get(uint32_t image_id, fih_uint *security_cnt);
+
 
 /**
  * Updates the stored value of a given image's security counter with a new
- * security counter value if the new one is greater.
+ * security counter value if the new one is greater. 
+ * Only one security counter is available in system. Maximum value is 32.
+ * Since more than one image can be used, 32 bits of NV counter are divided into 
+ * number of images (it's on a user decision how many bits for each image).
  *
+ * @param image_id          The image number for which you want to get a security counter,
+ *                          saved in EFUSE (from 0)
+ * @param img_security_cnt  Security counter value of image: appropriated bit array inside of 32bits
  * @param reprov_packet     Pointer to a reprovisioning packet containing NV counter.
- * @param packet_len        Length of a packet
- * @param img_security_cnt  Security conter value of image
- *
  * @return                  0 on success; nonzero on failure.
  */
-int32_t platform_security_counter_update(uint32_t img_security_cnt, uint8_t * reprov_packet);
+
+int32_t platform_security_counter_update(uint32_t image_id, uint32_t img_security_cnt, uint8_t * reprov_packet);
+
+
+/**
+ * Extracts security counter for the desired image from full NV
+ * counter and converts it to integer value.
+ * Efuse stores nv counter value as a consequent bits. This means
+ * NV counter set to 5 in policy would be written as 0x1F.
+ * Only one security counter is available in system. Maximum value is 32.
+ * Since more than one image can be used, 32 bits of NV counter are divided into
+ * number of images (it's on a user decision how many bits for each image).
+ *
+ * @param image_id          Index of the image (from 0)
+ *
+ * @param nv_counter        Full security counter to get specific efuse value for desired image
+ * 
+ * @param extracted_img_cnt Pointer to a variable, where extracted counter for the 'image_id'
+ *                          would be stored
+ *
+ * @return                  FIH_FAILURE on failure, otherwise FIH_SUCCESS.
+ *
+ */
+
+fih_int platform_security_counter_check_extract(uint32_t image_id, fih_uint nv_counter, fih_uint *extracted_img_cnt);
 
 #endif /* CY_SECURITY_CNT_PLATFORM_H */
diff --git a/boot/cypress/platforms/security_counter/cy_security_cnt.c b/boot/cypress/platforms/security_counter/cy_security_cnt.c
index 56b92a4..17ede62 100644
--- a/boot/cypress/platforms/security_counter/cy_security_cnt.c
+++ b/boot/cypress/platforms/security_counter/cy_security_cnt.c
@@ -31,11 +31,10 @@
 fih_int
 boot_nv_security_counter_get(uint32_t image_id, fih_uint *security_cnt)
 {
-    (void)image_id;
     fih_int fih_ret = FIH_FAILURE;
 
     if (NULL != security_cnt) { 
-        FIH_CALL(platform_security_counter_get, fih_ret, security_cnt);
+        FIH_CALL(platform_security_counter_get, fih_ret, image_id, security_cnt);
     }
 
     FIH_RET(fih_ret);
@@ -44,9 +43,8 @@
 int32_t
 boot_nv_security_counter_update(uint32_t image_id, uint32_t img_security_cnt, void * custom_data)
 {
-    (void)image_id;
 
-    int32_t rc = platform_security_counter_update(img_security_cnt, (uint8_t *)custom_data);
+    int32_t rc = platform_security_counter_update(image_id, img_security_cnt, (uint8_t *)custom_data);
 
     /* Do nothing. */
     return rc;
diff --git a/boot/cypress/scripts/find_cysectools.py b/boot/cypress/scripts/find_cysectools.py
index 7bea0fc..9aae88e 100644
--- a/boot/cypress/scripts/find_cysectools.py
+++ b/boot/cypress/scripts/find_cysectools.py
@@ -17,7 +17,7 @@
 import subprocess
 import sys
 
-package = 'cysecuretools'
+package = 'cysecuretools' 
 
 def find_cysectools(package_name):
 
diff --git a/boot/cypress/scripts/flashmap.py b/boot/cypress/scripts/flashmap.py
index 0cb0805..856e430 100644
--- a/boot/cypress/scripts/flashmap.py
+++ b/boot/cypress/scripts/flashmap.py
@@ -435,10 +435,14 @@
         try:
             with open(params.out_file, "w", encoding='UTF-8') as out_f:
                 out_f.write('/* AUTO-GENERATED FILE, DO NOT EDIT.'
-                            ' ALL CHANGES WILL BE LOST! */\n\n'
-                            '#ifndef CY_FLASH_MAP_H\n#define CY_FLASH_MAP_H\n')
-                out_f.write(f'\n/* Platform: {params.plat_id} */\n')
-                out_f.write(f'\nstatic struct flash_area {c_array}[] = {{\n')
+                            ' ALL CHANGES WILL BE LOST! */\n')
+                out_f.write(f'/* Platform: {params.plat_id} */\n')
+                out_f.write("#ifndef CY_FLASH_MAP_H\n")
+                out_f.write("#define CY_FLASH_MAP_H\n\n")
+
+                if self.plat.get('bitsPerCnt'):
+                    out_f.write('#ifdef NEED_FLASH_MAP\n')
+                out_f.write(f'static struct flash_area {c_array}[] = {{\n')
                 comma = len(self.areas)
                 area_count = 0
                 for area in self.areas:
@@ -458,7 +462,21 @@
                             'struct flash_area *boot_area_descs[] = {\n')
                 for area_index in range(area_count):
                     out_f.write(f'    &{c_array}[{area_index}U],\n')
-                out_f.write('    NULL\n};\n\n#endif /* CY_FLASH_MAP_H */\n')
+                out_f.write('    NULL\n};\n')
+
+                if self.plat.get('bitsPerCnt'):
+                    out_f.write('#endif /* NEED_FLASH_MAP */\n')
+                    out_f.close()
+
+                    # inserted here to fix misra 'header guard'
+                    list_counters = process_policy_20829(params.policy)
+                    if list_counters is not None:
+                        form_max_counter_array(list_counters, params.out_file)
+                    with open(params.out_file, "a", encoding='UTF-8') as out_f:
+                        out_f.write("#endif /* CY_FLASH_MAP_H */\n")
+                else:
+                    out_f.write("#endif /* CY_FLASH_MAP_H */\n")
+
         except (FileNotFoundError, OSError):
             print('Cannot create', params.out_file, file=sys.stderr)
             sys.exit(4)
@@ -684,6 +702,83 @@
 
     return app_core, app_count, slot_sectors_max, apps_flash_map, any_shared
 
+def process_policy_20829(in_policy):
+    """Process policy file to get data of NV-counter"""
+    list_counters = None
+
+    try:
+        with open(in_policy, encoding='UTF-8') as in_f:
+            try:
+                policy = json.load(in_f)
+            except ValueError:
+                print('\nERROR: Cannot parse', in_policy,'\n', file=sys.stderr)
+                sys.exit(4)
+            finally:
+                in_f.close()
+    except (FileNotFoundError, OSError):
+        print('Cannot open', in_policy, file=sys.stderr)
+        sys.exit(4)
+
+    try:
+        nv_cnt = policy["device_policy"]['reprovisioning']['nv_counter']
+        list_values = nv_cnt["value"]
+        list_counters = nv_cnt["bits_per_cnt"]
+    except KeyError:
+        print("\nERROR: Check path to 'nv_counter' and its correctness in policy file", in_policy,
+            ".\n", file=sys.stderr)
+        sys.exit(2)
+
+    #Check correctness of NV-counter
+    try:
+        len_list_value = len(list_values)
+        len_list_counters = len(list_counters)
+    except TypeError:
+        print("\nERROR: Fields 'value' and 'bits_per_cnt' of 'nv_counter' in policy file",
+            in_policy,"must be arrays.\n", file=sys.stderr)
+        sys.exit(2)
+
+    if len_list_value != len_list_counters:
+        print("\nERROR: Fields 'value' and 'bits_per_cnt' of 'nv_counter' in policy file",
+            in_policy,"must have the same size.\n", file=sys.stderr)
+        sys.exit(2)
+
+    sum_all_counters = 0
+    for i in range(len_list_value):
+        sum_all_counters += list_counters[i]
+        if list_values[i] > list_counters[i]:
+            print("\nERROR: Field 'value' cannot be more then 'bits_per_cnt'.", file=sys.stderr)
+            print("Check 'nv_counter' in policy file", in_policy,"\n", file=sys.stderr)
+            sys.exit(2)
+
+    sum_all_bit_nv_counter = 32
+    if sum_all_counters != sum_all_bit_nv_counter:
+        print("\nERROR: The sum of all 'bits_per_cnt' must be equal to 32.", file=sys.stderr)
+        print("Check 'nv_counter' in policy file", in_policy,"\n", file=sys.stderr)
+        sys.exit(2)
+
+    return list_counters
+
+
+def form_max_counter_array(in_list, out_file):
+    '''Write bit_per_count array to output file
+    There is expected, that "out_file" already exists'''
+
+    out_array_str = "\n#ifdef NEED_MAX_COUNTERS\nstatic const uint8_t bits_per_cnt[] = {"
+
+    #in_list is checked in prior function 'process_policy()'
+    for i, list_member in enumerate(in_list):
+        out_array_str += str(list_member)
+        if i < len(in_list) - 1:
+            out_array_str += ", "
+    out_array_str += "};\n#endif\n"
+
+    try:
+        with open(out_file, "a", encoding='UTF-8') as out_f:
+            out_f.write(out_array_str)
+    except (FileNotFoundError, OSError):
+        print('\nERROR: Cannot open ', out_file, file=sys.stderr)
+        sys.exit(7)
+
 
 def main():
     """Flash map converter"""
@@ -782,6 +877,19 @@
                            'FLASH_AREA_IMAGE_SCRATCH',
                            scratch.fa_addr, scratch.fa_size)
 
+    # Compare size 'bit_per_cnt' and number of images.
+    # 'service_app' is used only when HW rollback counter exists
+    if plat.get('bitsPerCnt') is not None and service_app is not None:
+        plat['bitsPerCnt'] = True
+        list_counters = process_policy_20829(params.policy)
+        if list_counters is not None and len(list_counters) != app_count:
+            print("\nERROR: 'bits_per_cnt' must be present for each image!",
+                file=sys.stderr)
+            print("Please, check secure provisioning and reprovisioning policies.\n",
+                file=sys.stderr)
+            sys.exit(7)
+
+
     # Image id parameter is not used for MCUBootApp
     if params.img_id is None:
         area_list.generate_c_source(params)
diff --git a/boot/cypress/scripts/github_pr_cleaner.py b/boot/cypress/scripts/github_pr_cleaner.py
deleted file mode 100644
index df221f0..0000000
--- a/boot/cypress/scripts/github_pr_cleaner.py
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env python
-
-import shutil
-from os import remove
-from sys import argv
-
-shutil.rmtree('../cppcheck')
-shutil.rmtree('../coverity')
-shutil.rmtree('../manifests')
-remove('../../../.gitlab-ci.yml')
-remove('../BlinkyApp/BlinkyApp_CM4_Debug.launch')
-remove('../MCUBootApp/MCUBootApp_CM0P_Debug.launch')
-remove('../MCUBootApp/MCUBootApp_CYW20829_Debug.launch')
-remove('./cppcheck.sh')
-remove('./cppcheck-htmlreport.py')
-remove('./rbc_policy_and_cert_revision_modify.py')
-remove('../platforms/BSP/CYW20829/cyw20829_psvp.h')
-remove('../platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_swap_single_psvp.json')
-remove('../platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_swap_multi2_psvp.json')
-remove('../platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_overwrite_single_psvp.json')
-remove('../platforms/cy_flash_pal/flash_cyw20829/flashmap/cyw20829_xip_overwrite_multi2_psvp.json')
-remove('../platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_swap_single_psvp.json')
-remove('../platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_swap_multi2_psvp.json')
-remove('../platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_overwrite_single_psvp.json')
-remove('../platforms/cy_flash_pal/flash_cyw20829/flashmap/hw_rollback_prot/cyw20829_xip_overwrite_multi2_psvp.json')
-remove(argv[0])
-
-print('Cleanup complete')