1# Copyright (c) 2020 Erik Larson 2# Copyright (c) 2023 Jason Kridner, BeagleBoard.org Foundation 3# Copyright (c) 2024 Ayush Singh, BeagleBoard.org Foundation 4# 5# SPDX-License-Identifier: Apache-2.0 6 7# Download cc1352-flasher (https://pypi.org/project/cc1352-flasher/) using the following command: 8# pip3 install cc1352-flasher 9# Be sure to disable the bcfserial driver because it will capture /dev/ttyS4 10 11if(CONFIG_SOC_CC1352P7) 12 find_program(CC1352_FLASHER NAMES cc1352_flasher) 13 board_set_flasher_ifnset(misc-flasher) 14 board_finalize_runner_args(misc-flasher ${CC1352_FLASHER} --play) 15endif() 16