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