From 53e52f32677ffbc764473ef2557acd119c9d3914 Mon Sep 17 00:00:00 2001 From: Ole Odendahl Date: Sun, 23 Oct 2022 18:09:43 +0200 Subject: [PATCH] Moving the flashing files to different subfolder for better discoverability. --- flashing/{ => pyocd}/.gitignore | 0 flashing/{ => pyocd}/flash_firmware.py | 4 ++-- flashing/{ => pyocd}/mac_address_reader.py | 0 flashing/{ => pyocd}/requirements.txt | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename flashing/{ => pyocd}/.gitignore (100%) rename flashing/{ => pyocd}/flash_firmware.py (86%) rename flashing/{ => pyocd}/mac_address_reader.py (100%) rename flashing/{ => pyocd}/requirements.txt (100%) diff --git a/flashing/.gitignore b/flashing/pyocd/.gitignore similarity index 100% rename from flashing/.gitignore rename to flashing/pyocd/.gitignore diff --git a/flashing/flash_firmware.py b/flashing/pyocd/flash_firmware.py similarity index 86% rename from flashing/flash_firmware.py rename to flashing/pyocd/flash_firmware.py index be1e138..78b968a 100644 --- a/flashing/flash_firmware.py +++ b/flashing/pyocd/flash_firmware.py @@ -9,8 +9,8 @@ from pyocd.flash.file_programmer import FileProgrammer from mac_address_reader import MacAddressReader parser = argparse.ArgumentParser() -parser.add_argument("-s", "--softdevice", action="store", help="Optional file path to softdevice file.", default="../sdk/s140nrf52720/s140_nrf52_7.2.0_softdevice.hex", type=Path) -parser.add_argument("-f", "--firmware", action="store", help="Optional file path to firmware file.", default="../code/b-parasite/_build/nrf52840_xxaa.hex", type=Path) +parser.add_argument("-s", "--softdevice", action="store", help="Optional file path to softdevice file.", default="../../sdk/s140nrf52720/s140_nrf52_7.2.0_softdevice.hex", type=Path) +parser.add_argument("-f", "--firmware", action="store", help="Optional file path to firmware file.", default="../../code/b-parasite/_build/nrf52840_xxaa.hex", type=Path) parser.add_argument("--skip-softdevice", action="store_true", help="Skip flashing of the softdevice.") parser.add_argument("--skip-firmware", action="store_true", help="Skip flashing of firmware.") diff --git a/flashing/mac_address_reader.py b/flashing/pyocd/mac_address_reader.py similarity index 100% rename from flashing/mac_address_reader.py rename to flashing/pyocd/mac_address_reader.py diff --git a/flashing/requirements.txt b/flashing/pyocd/requirements.txt similarity index 100% rename from flashing/requirements.txt rename to flashing/pyocd/requirements.txt