Skip to content

Commit d40549d

Browse files
author
Jenny Plunkett
authored
Added clarification
1 parent 5a6a05e commit d40549d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,17 +222,20 @@ You can create multiple Mbed projects and use the same Mbed OS library directory
222222

223223
```
224224
$ cd <projects directory>
225-
$ git clone https://github.com/ARMmbed/mbed-os
225+
$ mbed import mbed-os
226226
$ mbed config -G MBED_OS_DIR <projects directory>/mbed-os
227+
[mbed] <projects directory>/mbed-os now set as global MBED_OS_DIR
227228
$ mbed new project1
229+
[mbed] Creating new program "project1" (git)
228230
$ mbed new project2
231+
[mbed] Creating new program "project2" (git)
229232
```
230233

231-
Add your `main.cpp` file and other project files to the `project1` and `project2` directories. Then compile each project with the same Mbed OS source directory from the `<projects directory>` directory with the following example commands:
234+
Add your `main.cpp` file and other project files to the `project1` and `project2` directories. Then compile each project from the root `<projects directory>` with the following example commands:
232235

233236
```
234-
mbed compile -t ARM -m LPC1768 --source project1 --source mbed-os --build BUILD/project1
235-
mbed compile -t ARM -m K64F --source project2 --source mbed-os --build BUILD/project2
237+
$ mbed compile -t ARM -m LPC1768 --source project1 --source mbed-os --build BUILD/project1
238+
$ mbed compile -t ARM -m K64F --source project2 --source mbed-os --build BUILD/project2
236239
```
237240

238241
### Importing an existing program

0 commit comments

Comments
 (0)