To access a custom repository, complete the following steps:
- Set up gitcredentials for the custom repository.
The source of the credentials can vary and is beyond the scope of this document. For example, these could be credentials received from Nordic Semiconductor staff through Nordic Semiconductor DevZone or from other sources. - Open the nRF Connect extension in Visual Studio Code by clicking its icon in the Activity Bar.
- In the Welcome View, click
Manage SDKs.
The list of actions appears. - Click Install SDK.
- In the Install SDK quick pick header, click Third-party Git repository URL.
- Enter the URL of a Git repository that points to an nRF Connect SDK (or other Zephyr-based SDK).
- If the Git repository requires authorization, provide the credentials in the access notifications that appear on the screen.
- Select a branch, tag, or commit SHA to install from the third-party SDK.
- Provide the path where to install the third-party SDK.
The SDK installation can take several minutes. The extension adds the installed custom SDK version to the list of installed SDKs and automatically selects it for your project. As you install more SDK versions, both from open and restricted repositories, the extension automatically selects the last used version for new build configurations.