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 on Manage SDKs.
The list of actions appears. - Click Install SDK.
- In the Install SDK quick pick header, click on 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 installed custom SDK version is added to the list of installed SDKs and is automatically selected for your project. As you install more SDK versions, both from open and restricted repositories, the last used version will be automatically selected for new build configurations.