Skip to content

Commit 116ed94

Browse files
gcampbell-msftaleunryanwinter
authored
Update Getting Started Guides for compatibility with updated Vcpkg-ce. (#310)
* Merged PR 342104: Adding option for VS to Getting Started Guides (CMakeSettings.json) Created CMakeSettings.json template and launch.vs.json template in order to allow for building of embedded cmake projects in VS. Also using new postRemoteConnectCommands field in launch.vs.json in order to flash the board. Related work items: #1362476, #1362477, #1362479, #1362489, #1362490, #1362491 * Merged PR 348557: Removed unnecessary reset flag Removed unnecessary reset flag from the NXP launch.vs.json debug server args. * Merged PR 342106: Morphing VS Getting Started Guides to use CMakePresets.json Changed Getting Started Guide to use CMakePresets.json. This doesn't break anything in VSCode as the CMakePresets.json has a configured Configure Preset AND Build Preset. Related work items: #1362481, #1362482, #1362483, #1362484, #1362489, #1362490, #1362491 * remove cmakesettings.json * Fix broken image links * removed empty defaults * removed extra } * updating GSG with vcpkg * added note about path * remove loggingVerbosity until vscode is live * fix ce to vcpkg-ce or vcpkg * updated link * add statement about VS 2022 Preview * capitalize Preview Co-authored-by: Alan Leung <34582775+aleun@users.noreply.github.com> Co-authored-by: Ryan Winter <ryanwinter@outlook.com>
1 parent e8318b7 commit 116ed94

File tree

12 files changed

+141
-167
lines changed

12 files changed

+141
-167
lines changed

MXChip/AZ3166/VS.md

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,17 @@ This is a companion to the [Quickstart Guide](https://docs.microsoft.com/en-us/a
1212

1313
_*Note: It is not necessary to install the tools described in the quickstart guide. Tool installation will be covered in the next section below.*_
1414

15-
## Configure Your Development Environment with vcpkg `ce`
15+
## Configure Your Development Environment with `vcpkg-ce`
1616

17-
This section shows how to configure your development environment with the new vcpkg `ce` tool: `ce`, short for "configure environment", bootstraps project dependencies from a manifest file, `environment.yaml`. This makes it easy to express which compilers and build tools are required by a project. Upon activation, the tools specified by the manifest are added to the path of the current shell. If the tools are not present, `ce` acquires them and installs them to a common location. The `ce` tool runs in user mode without elevation.
17+
This section shows how to configure your development environment with the new `vcpkg-ce`, short for "configure environment", bootstraps project dependencies from a manifest file, `vcpkg-configuration.json`. This makes it easy to express which compilers and build tools are required by a project. Upon activation, the tools specified by the manifest are added to the path of the current shell. If the tools are not present, `vcpkg-ce` acquires them and installs them to a common location. The `vcpkg-ce` tool runs in user mode without elevation.
1818

19-
> `ce` is in early preview prior to being integrated as a part of `vcpkg`. To report problems or provide feedback, please open issues at https://github.com/microsoft/vcpkg-ce.
19+
> `vcpkg-ce` is in early preview. To report problems or provide feedback, please open issues at https://github.com/microsoft/vcpkg-ce.
2020
2121
### Windows 10
2222

23-
1. Download and install [Visual Studio](https://visualstudio.microsoft.com/downloads/).
23+
1. Download and install [Visual Studio](https://visualstudio.microsoft.com/downloads/).
24+
25+
> The Preview version of VS 2022 will have new embedded features.
2426
2527
1. Download and install the [ST-LINK Drivers](https://www.st.com/en/development-tools/stsw-link009.html). Restart your computer after installation is complete.
2628

@@ -34,22 +36,16 @@ This section shows how to configure your development environment with the new vc
3436
3537
> *getting-started\MXChip\AZ3166*
3638
37-
1. Install `ce`.
38-
39-
```PowerShell
40-
iex (iwr -useb aka.ms/install-ce.ps1)
41-
```
42-
43-
1. Review the end-user license agreement at https://aka.ms/vcpkg-ce-eula.txt. Run the following command to accept.
39+
1. Install `vcpkg-ce`.
4440
4541
```PowerShell
46-
ce --accept-eula
42+
iex (iwr -useb aka.ms/install-vcpkg.ps1)
4743
```
4844
4945
1. Download, install, and activate developer tools.
5046
5147
```PowerShell
52-
ce activate
48+
vcpkg activate
5349
```
5450
5551
1. Run the following code to confirm that CMake version 3.20 or later is installed.
@@ -64,12 +60,15 @@ This section shows how to configure your development environment with the new vc
6460
6561
1. Connect the Micro USB cable from the DevKit to your computer. If it is already connected, disconnect and reconnect it.
6662
67-
1. Launch Visual Studio.
63+
1. Launch Visual Studio from a Powershell terminal.
6864
69-
```Shell
65+
```PowerShell
7066
start devenv .
7167
```
7268
69+
> Note that if you have more than one version of Visual Studio installed this may not launch the current preview. In that case you will need to use the full path to your preview installation. For example:
70+
"C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\devenv"
71+
7372
1. Ensure that both the Configure Preset and the Build Preset are set to "arm-gcc-cortex-m4"
7473
7574
![configuration-choice](../../docs/media/vs-preset-configuration-m4.png)
@@ -86,14 +85,14 @@ This section shows how to configure your development environment with the new vc
8685
8786
## Restoring Your Development Environment
8887
89-
`ce` only modifies the path in the shell in which it is activated. If you close your shell and wish to restore the development environment in a future session:
88+
`vcpkg-ce` only modifies the path in the shell in which it is activated. If you close your shell and wish to restore the development environment in a future session:
9089
91-
1. Open a new terminal.
90+
1. Open a new PowerShell terminal.
9291
93-
1. Re-activate `ce`.
92+
1. Re-activate `vcpkg-ce`.
9493
9594
```Shell
96-
. ~/.ce/ce activate
95+
. ~/.vcpkg/vcpkg activate
9796
```
9897
9998
1. Launch Visual Studio.

MXChip/AZ3166/environment.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"registries": [
3+
{
4+
"name": "microsoft",
5+
"location": "https://aka.ms/vcpkg-ce-default",
6+
"kind": "artifact"
7+
}
8+
],
9+
"requires": {
10+
"microsoft:compilers/arm/gcc": "* 2020.10.0",
11+
"microsoft:tools/compuphase/termite": "* 3.4.0",
12+
"microsoft:tools/microsoft/openocd": "* 0.11.0",
13+
"microsoft:tools/kitware/cmake": "* 3.20.1",
14+
"microsoft:tools/ninja-build/ninja": "* 1.10.2"
15+
}
16+
}

MXChip/AZ3166/vscode.md

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ This is a companion to the [Quickstart Guide](https://docs.microsoft.com/en-us/a
1212

1313
_*Note: It is not necessary to install the tools described in the quickstart guide. Tool installation will be covered in the next section below.*_
1414

15-
## Configure Your Development Environment with vcpkg `ce`
15+
## Configure Your Development Environment with `vcpkg-ce`
1616

17-
This section shows how to configure your development environment with the new vcpkg `ce` tool: `ce`, short for "configure environment", bootstraps project dependencies from a manifest file, `environment.yaml`. This makes it easy to express which compilers and build tools are required by a project. Upon activation, the tools specified by the manifest are added to the path of the current shell. If the tools are not present, `ce` acquires them and installs them to a common location. The `ce` tool runs in user mode without elevation.
17+
This section shows how to configure your development environment with the new `vcpkg-ce`, short for "configure environment", bootstraps project dependencies from a manifest file, `vcpkg-configuration.json`. This makes it easy to express which compilers and build tools are required by a project. Upon activation, the tools specified by the manifest are added to the path of the current shell. If the tools are not present, `vcpkg-ce` acquires them and installs them to a common location. The `vcpkg-ce` tool runs in user mode without elevation.
1818

19-
> `ce` is in early preview prior to being integrated as a part of `vcpkg`. To report problems or provide feedback, please open issues at https://github.com/microsoft/vcpkg-ce.
19+
> `vcpkg-ce` is in early preview. To report problems or provide feedback, please open issues at https://github.com/microsoft/vcpkg-ce.
2020
2121
### Windows 10
2222

@@ -34,22 +34,16 @@ This section shows how to configure your development environment with the new vc
3434
3535
> *getting-started\MXChip\AZ3166*
3636
37-
1. Install `ce`.
37+
1. Install `vcpkg-ce`.
3838
3939
```PowerShell
40-
iex (iwr -useb aka.ms/install-ce.ps1)
41-
```
42-
43-
1. Review the end-user license agreement at https://aka.ms/vcpkg-ce-eula.txt. Run the following command to accept.
44-
45-
```PowerShell
46-
ce --accept-eula
40+
iex (iwr -useb aka.ms/install-vcpkg.ps1)
4741
```
4842
4943
1. Download, install, and activate developer tools.
5044
5145
```PowerShell
52-
ce activate
46+
vcpkg activate
5347
```
5448
5549
1. Run the following code to confirm that CMake version 3.20 or later is installed.
@@ -80,22 +74,16 @@ This section shows how to configure your development environment with the new vc
8074
sudo apt install curl libncurses5
8175
```
8276
83-
1. Install `ce`.
77+
1. Install `vcpkg-ce`.
8478
8579
```Shell
8680
. <(curl aka.ms/install-ce.sh -L)
8781
```
8882
89-
1. Review the end-user license agreement at https://aka.ms/vcpkg-ce-eula.txt. Run the following command to accept.
90-
91-
```Shell
92-
ce --accept-eula
93-
```
94-
9583
1. Download, install, and activate developer tools.
9684
9785
```Shell
98-
ce activate
86+
vcpkg activate
9987
```
10088
10189
1. Ensure the following lines in *getting-started\MXChip\AZ3166\.vscode\tasks.json* have been commented out.
@@ -122,9 +110,9 @@ This section shows how to configure your development environment with the new vc
122110
123111
1. Connect the Micro USB cable from the DevKit to your computer. If it is already connected, disconnect and reconnect it.
124112
125-
1. Launch Visual Studio Code.
113+
1. Launch Visual Studio Code from a PowerShell terminal.
126114
127-
```Shell
115+
```PowerShell
128116
code .
129117
```
130118
@@ -158,14 +146,14 @@ This section shows how to configure your development environment with the new vc
158146
159147
## Restoring Your Development Environment
160148
161-
`ce` only modifies the path in the shell in which it is activated. If you close your shell and wish to restore the development environment in a future session:
149+
`vcpkg-ce` only modifies the path in the shell in which it is activated. If you close your shell and wish to restore the development environment in a future session:
162150
163-
1. Open a new terminal.
151+
1. Open a new PowerShell terminal.
164152
165-
1. Re-activate `ce`.
153+
1. Re-activate `vcpkg-ce`.
166154
167155
```Shell
168-
. ~/.ce/ce activate
156+
. ~/.vcpkg/vcpkg activate
169157
```
170158
171159
1. Launch Visual Studio Code.

NXP/MIMXRT1060-EVK/VS.md

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,18 @@ This is a companion to the [Quickstart Guide](https://docs.microsoft.com/en-us/a
1212

1313
_*Note: It is not necessary to install the tools described in the quickstart guide. Tool installation will be covered in the next section below.*_
1414

15-
## Configure Your Development Environment with vcpkg `ce`
15+
## Configure Your Development Environment with `vcpkg-ce`
1616

17-
This section shows how to configure your development environment with the new vcpkg `ce` tool: `ce`, short for "configure environment", bootstraps project dependencies from a manifest file, `environment.yaml`. This makes it easy to express which compilers and build tools are required by a project. Upon activation, the tools specified by the manifest are added to the path of the current shell. If the tools are not present, `ce` acquires them and installs them to a common location. The `ce` tool runs in user mode without elevation.
17+
This section shows how to configure your development environment with the new `vcpkg-ce`, short for "configure environment", bootstraps project dependencies from a manifest file, `vcpkg-configuration.json`. This makes it easy to express which compilers and build tools are required by a project. Upon activation, the tools specified by the manifest are added to the path of the current shell. If the tools are not present, `vcpkg-ce` acquires them and installs them to a common location. The `vcpkg-ce` tool runs in user mode without elevation.
1818

19-
> `ce` is in early preview prior to being integrated as a part of `vcpkg`. To report problems or provide feedback, please open issues at https://github.com/microsoft/vcpkg-ce.
19+
> `vcpkg-ce` is in early preview. To report problems or provide feedback, please open issues at https://github.com/microsoft/vcpkg-ce.
2020
2121
### Windows 10
2222

2323
1. Download and install [Visual Studio](https://visualstudio.microsoft.com/downloads/).
2424

25+
> The Preview version of VS 2022 will have new embedded features.
26+
2527
1. Download and install the [SEGGER J-Link Software and Documentation Pack](https://www.segger.com/downloads/jlink/#J-LinkSoftwareAndDocumentationPack) V7.00 or greater. _Note: Version V7.00 or greater is required to support the on-board DAPLink probe._
2628

2729
1. Open an Administrator PowerShell terminal and enable execution of PowerShell scripts.
@@ -40,22 +42,16 @@ This section shows how to configure your development environment with the new vc
4042
4143
> *getting-started\NXP\MIMXRT1060-EVK*
4244
43-
1. Install `ce`.
44-
45-
```PowerShell
46-
iex (iwr -useb aka.ms/install-ce.ps1)
47-
```
48-
49-
1. Review the end-user license agreement at https://aka.ms/vcpkg-ce-eula.txt. Run the following command to accept.
45+
1. Install `vcpkg-ce`.
5046
5147
```PowerShell
52-
ce --accept-eula
48+
iex (iwr -useb aka.ms/install-vcpkg.ps1)
5349
```
5450
5551
1. Download, install, and activate developer tools.
5652
5753
```PowerShell
58-
ce activate
54+
vcpkg activate
5955
```
6056
6157
1. Run the following code to confirm that CMake version 3.20 or later is installed.
@@ -70,12 +66,15 @@ This section shows how to configure your development environment with the new vc
7066
7167
1. Connect the Micro USB cable from the DevKit to your computer. If it is already connected, disconnect and reconnect it.
7268
73-
1. Launch Visual Studio.
69+
1. Launch Visual Studio from a PowerShell terminal.
7470
75-
```Shell
71+
```PowerShell
7672
start devenv .
7773
```
7874
75+
> Note that if you have more than one version of Visual Studio installed this may not launch the current preview. In that case you will need to use the full path to your preview installation. For example:
76+
"C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\devenv"
77+
7978
1. Ensure that both the Configure Preset and the Build Preset are set to "arm-gcc-cortex-m7"
8079
8180
![configuration-choice](../../docs/media/vs-preset-configuration-m7.png)
@@ -92,14 +91,14 @@ This section shows how to configure your development environment with the new vc
9291
9392
## Restoring Your Development Environment
9493
95-
`ce` only modifies the path in the shell in which it is activated. If you close your shell and wish to restore the development environment in a future session:
94+
`vcpkg-ce` only modifies the path in the shell in which it is activated. If you close your shell and wish to restore the development environment in a future session:
9695
97-
1. Open a new terminal.
96+
1. Open a new PowerShell terminal.
9897
99-
1. Re-activate `ce`.
98+
1. Re-activate `vcpkg-ce`.
10099
101100
```Shell
102-
. ~/.ce/ce activate
101+
. ~/.vcpkg/vcpkg activate
103102
```
104103
105104
1. Launch Visual Studio.

NXP/MIMXRT1060-EVK/environment.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"registries": [
3+
{
4+
"name": "microsoft",
5+
"location": "https://aka.ms/vcpkg-ce-default",
6+
"kind": "artifact"
7+
}
8+
],
9+
"requires": {
10+
"microsoft:compilers/arm/gcc": "* 2020.10.0",
11+
"microsoft:tools/compuphase/termite": "* 3.4.0",
12+
"microsoft:tools/microsoft/openocd": "* 0.11.0",
13+
"microsoft:tools/kitware/cmake": "* 3.20.1",
14+
"microsoft:tools/ninja-build/ninja": "* 1.10.2"
15+
}
16+
}

0 commit comments

Comments
 (0)