diff --git a/builder/main.py b/builder/main.py index dd0a49d..b582ad0 100644 --- a/builder/main.py +++ b/builder/main.py @@ -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") != "":