Skip to content

Commit 48ce161

Browse files
committed
Initial Commit
1 parent efa4a45 commit 48ce161

378 files changed

Lines changed: 129246 additions & 2 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,18 @@
1-
# mbed-studio
2-
A distribution point for the latest release of Mbed Studio
1+
# Mbed Studio
2+
Mbed Studio is a free IDE for Mbed OS application and library development, including all the dependencies and tools you need in a single package so that you can create, compile and debug your Mbed programs on the desktop.
3+
4+
Mbed Studio remains available as a free desktop IDE for Mbed OS development. It includes Arm Compiler 6 and can be used to build and debug Mbed projects locally.
5+
6+
This repository is a distribution point for the last release of Mbed Studio
7+
8+
## Downloads
9+
10+
- [Download for Windows](https://github.com/armmbed/mbed-studio/releases/download/v1.5.0/MbedStudio-1.5.0.exe)
11+
- [Download for Mac](https://github.com/armmbed/mbed-studio/releases/download/v1.5.0/MbedStudio-1.5.0.pkg)
12+
- [Download for Linux](https://github.com/armmbed/mbed-studio/releases/download/v1.5.0/MbedStudio-1.5.0.sh)
13+
14+
## Links
15+
16+
- [Documentation](https://armmbed.github.io/mbed-studio)
17+
- [End User License Agreement](https://armmbed.github.io/mbed-studio/eula.html)
18+
- [Third Party IP Licenses](https://armmbed.github.io/mbed-studio/tpip.html)

docs/.DS_Store

10 KB
Binary file not shown.

docs/building-running/.DS_Store

6 KB
Binary file not shown.
1.08 KB
Loading
984 Bytes
Loading
91.7 KB
Loading
1.34 KB
Loading
467 KB
Loading
60.5 KB
Loading

docs/building-running/index.html

Lines changed: 271 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,271 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
7+
8+
<title>Building and running a program - Building and running a program | Mbed Studio Documentation</title>
9+
<link rel="stylesheet" href="../static/css/vendor/foundation-6.2.4.min.mbed-cache-4c48f6c816971070eb1e4eca75f0ec30.css">
10+
<link rel="stylesheet" href="../static/css/vendor/font-awesome-4.7.0/css/font-awesome.min.mbed-cache-269550530cc127b6aa5a35925a7de6ce.css">
11+
<link rel="stylesheet" href="../static/css/app.mbed-cache-23ac288f803d41065f3596e4c6b08e94.css">
12+
</head>
13+
<body>
14+
<div id="docs-content" class="off-canvas-wrapper">
15+
<div class="off-canvas-wrapper-inner full-height" data-off-canvas-wrapper>
16+
<div class="off-canvas-content" data-off-canvas-content>
17+
<a href="#" id="nav-button">
18+
<span>
19+
<i class="fa fa-bars"></i>
20+
</span>
21+
</a>
22+
23+
<div class="toc-wrapper" id="navbar">
24+
<div id="toc">
25+
26+
27+
<div class="toc-level top">
28+
<a class="toc-item introduction " href="../introduction/index.html">Arm Mbed Studio</a>
29+
</div>
30+
31+
32+
33+
34+
35+
36+
<div class="toc-level top">
37+
<a class="toc-item installing " href="../installing/index.html">Installing</a>
38+
</div>
39+
40+
41+
42+
43+
44+
45+
<div class="toc-level top">
46+
<a class="toc-item getting-started " href="../getting-started/index.html">Getting started</a>
47+
</div>
48+
49+
50+
51+
52+
53+
54+
<div class="toc-level top">
55+
<a class="toc-item create-import " href="../create-import/index.html">Creating or importing a program</a>
56+
</div>
57+
58+
59+
60+
61+
62+
63+
<div class="toc-level top">
64+
<a class="toc-item building-running active-doc" href="../building-running/index.html">Building and running a program</a>
65+
</div>
66+
67+
68+
69+
<div class="toc-level one">
70+
<a class="toc-item" href="index.html">Building and running a program</a>
71+
72+
<div class="toc-level two sub">
73+
74+
<a class="toc-item" href="#selecting-a-build-target">Selecting a build target</a>
75+
76+
77+
<a class="toc-item" href="#building-a-program">Building a program</a>
78+
79+
80+
<a class="toc-item" href="#output-view">Output view</a>
81+
82+
83+
</div>
84+
85+
</div>
86+
87+
88+
89+
90+
<div class="toc-level top">
91+
<a class="toc-item navigating " href="../navigating/index.html">Searching</a>
92+
</div>
93+
94+
95+
96+
97+
98+
99+
<div class="toc-level top">
100+
<a class="toc-item editing-linting " href="../editing-linting/index.html">IntelliSense</a>
101+
</div>
102+
103+
104+
105+
106+
107+
108+
<div class="toc-level top">
109+
<a class="toc-item files " href="../files/index.html">Managing files</a>
110+
</div>
111+
112+
113+
114+
115+
116+
117+
<div class="toc-level top">
118+
<a class="toc-item manage-libraries " href="../manage-libraries/index.html">Managing libraries</a>
119+
</div>
120+
121+
122+
123+
124+
125+
126+
<div class="toc-level top">
127+
<a class="toc-item source-control " href="../source-control/index.html">Source control</a>
128+
</div>
129+
130+
131+
132+
133+
134+
135+
<div class="toc-level top">
136+
<a class="toc-item monitor-debug " href="../monitor-debug/index.html">Monitoring and debugging</a>
137+
</div>
138+
139+
140+
141+
142+
143+
144+
<div class="toc-level top">
145+
<a class="toc-item terminal-tools " href="../terminal-tools/index.html">Using tools in the terminal</a>
146+
</div>
147+
148+
149+
150+
151+
152+
153+
<div class="toc-level top">
154+
<a class="toc-item exporting " href="../exporting/index.html">Exporting a program</a>
155+
</div>
156+
157+
158+
159+
160+
161+
162+
<div class="toc-level top">
163+
<a class="toc-item targets " href="../targets/index.html">Supported and custom targets</a>
164+
</div>
165+
166+
167+
168+
169+
170+
171+
<div class="toc-level top">
172+
<a class="toc-item mbed-os " href="../mbed-os/index.html">Mbed OS versions and advanced options</a>
173+
</div>
174+
175+
176+
177+
178+
179+
180+
<div class="toc-level top">
181+
<a class="toc-item known-issues " href="../known-issues/index.html">Known issues and troubleshooting</a>
182+
</div>
183+
184+
185+
186+
187+
188+
</div>
189+
</div>
190+
191+
<div class="page-wrapper" id="page">
192+
<div class="row">
193+
<div id="content" class="content large-12 medium-12 columns">
194+
<div class="breadcrumbs">
195+
196+
<a href="..">Docs</a>
197+
198+
199+
<a href="index.html">Building and running a program</a>
200+
201+
202+
</div>
203+
<h1>Building and running a program</h1><h2 id="selecting-a-build-target">Selecting a build target</h2><p>Mbed OS is designed to work on multiple development boards, but each individual build of Mbed OS must match the exact board the binary will be flashed to. This match is known as the <strong>target</strong> or <strong>build target</strong>.</p><p>To select a target, you can:</p><ul>
204+
<li>Connect your board to your computer. Mbed Studio detects the board and suggests a matching target.</li>
205+
<li>Use the <strong>Target</strong> drop-down list. Your target name most likely matches the board name.</li>
206+
</ul><p><span class="images"><img height="265" src="images/selected_target.png" width="480"><span>Set the target for the active program from the <strong>Explorer</strong> view.</span></img></span></p><p>If you have an unsupported board, <a href="../targets/custom-targets.html">please see the Custom targets page</a>.</p><h2 id="building-a-program">Building a program</h2><p>To build, debug or run an Mbed program:</p><ol>
207+
<li>
208+
<p>Ensure the program you want to build or run is set to active.</p>
209+
<p>To make the program active, right-click the program name in the <strong>Explorer</strong> view and select <strong>Set Active Program</strong>.</p>
210+
</li>
211+
<li>
212+
<p>By default, Mbed Studio uses the <em>Debug</em> build profile.</p>
213+
<ul>
214+
<li>
215+
<p>To use the <em>Develop</em> or <em>Release</em> profiles, select them from the <strong>Build profile</strong> drop-down list or right-click the program and select <strong>Set Build Profile</strong>.</p>
216+
</li>
217+
<li>
218+
<p>To select a custom profile, from the <strong>Build profile</strong> drop-down list, select <strong>Import custom profiles</strong>. A window opens. Select a custom profile from any location on your computer.</p>
219+
</li>
220+
</ul>
221+
<p><span class="images"><img height="356" src="images/changing_build_profiles.png" width="536"/></span></p>
222+
<p>To remove a custom profile from the <strong>Build profile</strong> drop-down list for the active program, you must delete or rename the custom profile file.</p>
223+
<p><span class="tips">For more information about Mbed OS build profiles, see <a href="https://os.mbed.com/docs/latest/tools/build-profiles.html">Build profiles</a> on the Mbed OS documentation site. Note, in particular, the effect build profiles have on the device entering sleep.</span></p>
224+
<!--BROWSER <span class="notes">**Note:** In the browser version of Mbed Studio, there is only one default build profile.</span>-->
225+
</li>
226+
<li>
227+
<p>Select a build option:</p>
228+
<ul>
229+
<li>
230+
<p><strong>Build program:</strong> Build the program, without flashing it to the device.</p>
231+
<ul>
232+
<li>
233+
<p><strong>Build:</strong> Checks the <code>BUILD</code> sub-directory (where the previous build is stored) and optimises build time by using as much as it can from the last build. For example, if two consecutive builds are for the same target and using the same build profile, the build will rebuild only the files that actively changed between the two builds, or from the point at which you stopped the previous build attempt.</p>
234+
</li>
235+
<li>
236+
<p><strong>Clean build:</strong> Ignore all previous builds. A clean build is slower than reusing a previous build, but guarantees your build will have no old artefacts.</p>
237+
</li>
238+
</ul>
239+
</li>
240+
<li>
241+
<p><strong>Debug program:</strong> Build the program and flash it to the device, then start a debug session.</p>
242+
</li>
243+
</ul>
244+
<p>For more information about debug, see <a href="../monitor-debug/debugging-with-mbed-studio.html">Debugging with Mbed Studio</a>.</p>
245+
<ul>
246+
<li><strong>Run program:</strong> Build the program and flash it to the device, without starting a debug session.</li>
247+
</ul>
248+
</li>
249+
</ol><p><span class="notes"><strong>Note:</strong> Mbed Studio uses pyOCD to communicate with the connected platform. If you attempt to run a program on a platform with a DAPLink version that is not supported by pyOCD, it will fail with exit code 1. We are still adding support for pyOCD and more platforms will be available over time.</span></p><h2 id="output-view">Output view</h2><p>The output of the build is displayed in the <strong>Output</strong> view. To open the view, go the <strong>View</strong> menu and select <strong>Output</strong>.</p><p>You can turn the auto scrolling on or off by clicking the <strong>Turn Auto Scrolling On</strong> <img height="30" src="images/auto-scrolling-on-button.png" style="display: inline; margin: 0;" width="30"> or <strong>Turn Auto Scrolling Off</strong> <img height="30" src="images/auto-scrolling-off-button.png" style="display: inline; margin: 0;" width="30"> icons.</img></img></p><p><span class="images"><img height="701" src="images/completed_build.png" width="1334"><span>A completed build.</span></img></span></p><p>To copy the output, do a right-click in the <strong>Output</strong> view and select <strong>Copy</strong> or <strong>Copy All</strong>:</p><ul>
250+
<li><strong>Copy</strong>: Copies the line where your cursor is.</li>
251+
<li><strong>Copy All</strong>: Copies the whole output.</li>
252+
</ul><p>Do a right-click in the <strong>Output</strong> view and select <strong>Find</strong> to search the content of the output. When the <strong>Output</strong> view is in focus, you can also go to the <strong>Edit</strong> menu and select <strong>Find</strong>.</p><p>Click the <strong>Clear Output</strong> icon <img height="30" src="images/clear_button.png" style="display: inline; margin: 0;" width="30"> to clear the build output or do a right-click and select <strong>Clear Output</strong>.</img></p>
253+
</div>
254+
</div>
255+
256+
257+
</div>
258+
</div>
259+
</div>
260+
</div>
261+
<script src="../static/js/vendor/jquery-3.2.1.min.mbed-cache-c9f5aeeca3ad37bf2aa006139b935f0a.js"></script>
262+
<script src="../static/js/toc.mbed-cache-261a3b3a8a10e9d430f4bb5fdd0e5b5c.js"></script>
263+
<script src="../static/js/vendor/foundation-6.2.4.min.mbed-cache-9f0af735cc1c2011ddd8e8a94273129a.js"></script>
264+
<script>
265+
$('#docs-content').foundation();
266+
$(document).ready(function() {
267+
initToC();
268+
});
269+
</script>
270+
</body>
271+
</html>

0 commit comments

Comments
 (0)