1# Copyright 2020-2023 NXP. All rights reserved.
2# SPDX-License-Identifier: BSD-3-Clause
3
4import os
5
6# Move to the TFM build folder
7os.chdir('../../../../../../build/bin')
8
9target = 'LPC55S69'
10
11# Flash with PyOCD
12os.system('pyocd erase --mass -t ' + target)                   # erase the flash memory
13os.system('pyocd flash tfm_s.hex tfm_ns.hex -t ' + target)     # flash images into the target
14