How to add application-specific flash options

nRF Connect for VS Code

tags
nRF Connect for VS Code

If required, you can configure applications with additional flash options: softreset, skipBuild, or extraArgs, or any combination of these. When set, these options are applied to all flash commands run through the UI that target that application.

The application-specific flash options are set in the binding configuration file.

To apply these options:

  1. Open the binding configuration file.
  2. Create the following entry, customizing it to your needs:

    {
        "nrf-connect.applicationOptions": {
            "/path/to/your/application": {
                "flash": {
                    "softreset": true,
                    "skipBuild": true,
                    "extraArgs": ["--custom-arg", "--another-arg"]
                }
            }
        }
    }
    

For the list of available variable substitutions, see predefined extension variables and Visual Studio Code's Variable Reference.