Skip to content

Commit

Permalink
Enable and disable flash protection as a project task with minichlink
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgerhardt committed Dec 1, 2024
1 parent 36c31b4 commit 9078ce4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,18 @@ def generate_openocd_action(args: List[str], action_name:str):
], "Starting SDI Printf Monitor"),
"Minichlink Monitor SDI Printf"
)
env.AddPlatformTarget(
"enable_flash_protection", None, generate_minichlink_action([
"-P"
], "Enabling Flash Protection"),
"Enable Flash Protection"
)
env.AddPlatformTarget(
"disable_flash_protection", None, generate_minichlink_action([
"-p"
], "Disabling Flash Protection"),
"Disable Flash Protection"
)

# Enable WLink options if tool installed or protocol selected.
if upload_protocol == "wlink" or platform.get_package_dir("tool-wlink") != "":
Expand Down

0 comments on commit 9078ce4

Please sign in to comment.