|
284 | 284 | <nav class="md-nav" aria-label="0.36.0">
|
285 | 285 | <ul class="md-nav__list">
|
286 | 286 |
|
287 |
| - <li class="md-nav__item"> |
288 |
| - <a href="#cli-changed-json-output-for-some-lib-core-config-board-and-sketch-commands" class="md-nav__link"> |
289 |
| - CLI changed JSON output for some lib, core, config, board, and sketch commands. |
290 |
| - </a> |
291 |
| - |
292 |
| -</li> |
293 |
| - |
294 |
| - <li class="md-nav__item"> |
295 |
| - <a href="#the-grpc-ccarduinoclicommandsv1platformrelease-has-been-changed" class="md-nav__link"> |
296 |
| - The gRPC cc.arduino.cli.commands.v1.PlatformRelease has been changed. |
297 |
| - </a> |
298 |
| - |
299 |
| -</li> |
300 |
| - |
301 |
| - <li class="md-nav__item"> |
302 |
| - <a href="#the-grpc-ccarduinoclicommandsv1platformsummary-has-been-changed" class="md-nav__link"> |
303 |
| - The gRPC cc.arduino.cli.commands.v1.PlatformSummary has been changed. |
304 |
| - </a> |
305 |
| - |
306 |
| -</li> |
307 |
| - |
308 |
| - <li class="md-nav__item"> |
309 |
| - <a href="#core-list-now-returns-only-the-latest-version-that-can-be-installed" class="md-nav__link"> |
310 |
| - core list now returns only the latest version that can be installed. |
311 |
| - </a> |
312 |
| - |
313 |
| -</li> |
314 |
| - |
315 |
| - <li class="md-nav__item"> |
316 |
| - <a href="#core-search-now-returns-the-latest-installable-version-of-a-core" class="md-nav__link"> |
317 |
| - core search now returns the latest installable version of a core. |
318 |
| - </a> |
319 |
| - |
320 |
| -</li> |
321 |
| - |
322 |
| - <li class="md-nav__item"> |
323 |
| - <a href="#core-upgrade-and-core-install-will-install-the-latest-compatible-version" class="md-nav__link"> |
324 |
| - core upgrade and core install will install the latest compatible version. |
325 |
| - </a> |
326 |
| - |
327 |
| -</li> |
328 |
| - |
329 |
| - <li class="md-nav__item"> |
330 |
| - <a href="#grpc-service-ccarduinoclisettingsv1-has-been-removed-and-all-rpc-calls-have-been-migrated-to-ccarduinoclicommandsv1" class="md-nav__link"> |
331 |
| - gRPC service cc.arduino.cli.settings.v1 has been removed, and all RPC calls have been migrated to cc.arduino.cli.commands.v1 |
332 |
| - </a> |
333 |
| - |
334 |
| -</li> |
335 |
| - |
336 | 287 | <li class="md-nav__item">
|
337 | 288 | <a href="#grpc-ccarduinoclicommandsv1librarysearchrequest-message-has-been-changed" class="md-nav__link">
|
338 | 289 | gRPC cc.arduino.cli.commands.v1.LibrarySearchRequest message has been changed.
|
|
2214 | 2165 |
|
2215 | 2166 |
|
2216 | 2167 |
|
| 2168 | + |
| 2169 | + |
| 2170 | + |
| 2171 | + |
| 2172 | + |
| 2173 | + <li class="md-nav__item"> |
| 2174 | + <a href="../rpc/settings/" class="md-nav__link"> |
| 2175 | + settings |
| 2176 | + </a> |
| 2177 | + </li> |
| 2178 | + |
| 2179 | + |
| 2180 | + |
| 2181 | + |
2217 | 2182 | </ul>
|
2218 | 2183 | </nav>
|
2219 | 2184 | </li>
|
|
2453 | 2418 | <nav class="md-nav" aria-label="0.36.0">
|
2454 | 2419 | <ul class="md-nav__list">
|
2455 | 2420 |
|
2456 |
| - <li class="md-nav__item"> |
2457 |
| - <a href="#cli-changed-json-output-for-some-lib-core-config-board-and-sketch-commands" class="md-nav__link"> |
2458 |
| - CLI changed JSON output for some lib, core, config, board, and sketch commands. |
2459 |
| - </a> |
2460 |
| - |
2461 |
| -</li> |
2462 |
| - |
2463 |
| - <li class="md-nav__item"> |
2464 |
| - <a href="#the-grpc-ccarduinoclicommandsv1platformrelease-has-been-changed" class="md-nav__link"> |
2465 |
| - The gRPC cc.arduino.cli.commands.v1.PlatformRelease has been changed. |
2466 |
| - </a> |
2467 |
| - |
2468 |
| -</li> |
2469 |
| - |
2470 |
| - <li class="md-nav__item"> |
2471 |
| - <a href="#the-grpc-ccarduinoclicommandsv1platformsummary-has-been-changed" class="md-nav__link"> |
2472 |
| - The gRPC cc.arduino.cli.commands.v1.PlatformSummary has been changed. |
2473 |
| - </a> |
2474 |
| - |
2475 |
| -</li> |
2476 |
| - |
2477 |
| - <li class="md-nav__item"> |
2478 |
| - <a href="#core-list-now-returns-only-the-latest-version-that-can-be-installed" class="md-nav__link"> |
2479 |
| - core list now returns only the latest version that can be installed. |
2480 |
| - </a> |
2481 |
| - |
2482 |
| -</li> |
2483 |
| - |
2484 |
| - <li class="md-nav__item"> |
2485 |
| - <a href="#core-search-now-returns-the-latest-installable-version-of-a-core" class="md-nav__link"> |
2486 |
| - core search now returns the latest installable version of a core. |
2487 |
| - </a> |
2488 |
| - |
2489 |
| -</li> |
2490 |
| - |
2491 |
| - <li class="md-nav__item"> |
2492 |
| - <a href="#core-upgrade-and-core-install-will-install-the-latest-compatible-version" class="md-nav__link"> |
2493 |
| - core upgrade and core install will install the latest compatible version. |
2494 |
| - </a> |
2495 |
| - |
2496 |
| -</li> |
2497 |
| - |
2498 |
| - <li class="md-nav__item"> |
2499 |
| - <a href="#grpc-service-ccarduinoclisettingsv1-has-been-removed-and-all-rpc-calls-have-been-migrated-to-ccarduinoclicommandsv1" class="md-nav__link"> |
2500 |
| - gRPC service cc.arduino.cli.settings.v1 has been removed, and all RPC calls have been migrated to cc.arduino.cli.commands.v1 |
2501 |
| - </a> |
2502 |
| - |
2503 |
| -</li> |
2504 |
| - |
2505 | 2421 | <li class="md-nav__item">
|
2506 | 2422 | <a href="#grpc-ccarduinoclicommandsv1librarysearchrequest-message-has-been-changed" class="md-nav__link">
|
2507 | 2423 | gRPC cc.arduino.cli.commands.v1.LibrarySearchRequest message has been changed.
|
|
3587 | 3503 | <h1 id="upgrading">Upgrading<a class="headerlink" href="#upgrading" title="Permanent link">¶</a></h1>
|
3588 | 3504 | <p>Here you can find a list of migration guides to handle breaking changes between releases of the CLI.</p>
|
3589 | 3505 | <h2 id="0360">0.36.0<a class="headerlink" href="#0360" title="Permanent link">¶</a></h2>
|
3590 |
| -<h3 id="cli-changed-json-output-for-some-lib-core-config-board-and-sketch-commands">CLI changed JSON output for some <code>lib</code>, <code>core</code>, <code>config</code>, <code>board</code>, and <code>sketch</code> commands.<a class="headerlink" href="#cli-changed-json-output-for-some-lib-core-config-board-and-sketch-commands" title="Permanent link">¶</a></h3> |
3591 |
| -<ul> |
3592 |
| -<li> |
3593 |
| -<p><code>arduino-cli lib list --format json</code> results are now wrapped under <code>installed_libraries</code> key</p> |
3594 |
| -<div class="highlight"><pre><span></span><code>{ "installed_libraries": [ {...}, {...} ] } |
3595 |
| -</code></pre></div> |
3596 |
| -</li> |
3597 |
| -</ul> |
3598 |
| -<ul> |
3599 |
| -<li> |
3600 |
| -<p><code>arduino-cli lib examples --format json</code> results are now wrapped under <code>examples</code> key</p> |
3601 |
| -<div class="highlight"><pre><span></span><code>{ "examples": [ {...}, {...} ] } |
3602 |
| -</code></pre></div> |
3603 |
| -</li> |
3604 |
| -</ul> |
3605 |
| -<ul> |
3606 |
| -<li> |
3607 |
| -<p><code>arduino-cli core search --format json</code> and <code>arduino-cli core list --format json</code> results are now wrapped under |
3608 |
| - <code>platforms</code> key</p> |
3609 |
| -<div class="highlight"><pre><span></span><code>{ "platforms": [ {...}, {...} ] } |
3610 |
| -</code></pre></div> |
3611 |
| -</li> |
3612 |
| -</ul> |
3613 |
| -<ul> |
3614 |
| -<li> |
3615 |
| -<p><code>arduino-cli config init --format json</code> now correctly returns a json object containg the config path</p> |
3616 |
| -<div class="highlight"><pre><span></span><code>{ "config_path": "/home/user/.arduino15/arduino-cli.yaml" } |
3617 |
| -</code></pre></div> |
3618 |
| -</li> |
3619 |
| -</ul> |
3620 |
| -<ul> |
3621 |
| -<li> |
3622 |
| -<p><code>arduino-cli config dump --format json</code> results are now wrapped under <code>config</code> key</p> |
3623 |
| -<div class="highlight"><pre><span></span><code>{ "config": { ... } } |
3624 |
| -</code></pre></div> |
3625 |
| -</li> |
3626 |
| -</ul> |
3627 |
| -<ul> |
3628 |
| -<li> |
3629 |
| -<p><code>arduino-cli board search --format json</code> results are now wrapped under <code>boards</code> key</p> |
3630 |
| -<div class="highlight"><pre><span></span><code>{ "boards": [ {...}, {...} ] } |
3631 |
| -</code></pre></div> |
3632 |
| -</li> |
3633 |
| -</ul> |
3634 |
| -<ul> |
3635 |
| -<li> |
3636 |
| -<p><code>arduino-cli board list --format json</code> results are now wrapped under <code>detected_ports</code> key</p> |
3637 |
| -<div class="highlight"><pre><span></span><code>{ "detected_ports": [ {...}, {...} ] } |
3638 |
| -</code></pre></div> |
3639 |
| -</li> |
3640 |
| -</ul> |
3641 |
| -<ul> |
3642 |
| -<li> |
3643 |
| -<p><code>arduino-cli sketch new</code> now correctly returns a json object containing the sketch path</p> |
3644 |
| -<div class="highlight"><pre><span></span><code>{ "sketch_path": "/tmp/my_sketch" } |
3645 |
| -</code></pre></div> |
3646 |
| -</li> |
3647 |
| -</ul> |
3648 |
| -<h3 id="the-grpc-ccarduinoclicommandsv1platformrelease-has-been-changed">The gRPC <code>cc.arduino.cli.commands.v1.PlatformRelease</code> has been changed.<a class="headerlink" href="#the-grpc-ccarduinoclicommandsv1platformrelease-has-been-changed" title="Permanent link">¶</a></h3> |
3649 |
| -<p>We've added a new field called <code>compatible</code>. This field indicates if the current platform release is installable or not. |
3650 |
| -It may happen that a platform doesn't have a dependency available for an OS/ARCH, in such cases, if we try to install |
3651 |
| -the platform it will fail. The new field can be used to know upfront if a specific release is installable.</p> |
3652 |
| -<h3 id="the-grpc-ccarduinoclicommandsv1platformsummary-has-been-changed">The gRPC <code>cc.arduino.cli.commands.v1.PlatformSummary</code> has been changed.<a class="headerlink" href="#the-grpc-ccarduinoclicommandsv1platformsummary-has-been-changed" title="Permanent link">¶</a></h3> |
3653 |
| -<p>We've modified the behavior of <code>latest_version</code>. Now this field indicates the latest version that can be installed in |
3654 |
| -the current OS/ARCH.</p> |
3655 |
| -<h3 id="core-list-now-returns-only-the-latest-version-that-can-be-installed"><code>core list</code> now returns only the latest version that can be installed.<a class="headerlink" href="#core-list-now-returns-only-the-latest-version-that-can-be-installed" title="Permanent link">¶</a></h3> |
3656 |
| -<p>Previously, we showed the latest version without checking if all the dependencies were available in the current OS/ARCH. |
3657 |
| -Now, the latest version will always point to an installable one even if a newer incompatible one is present.</p> |
3658 |
| -<h3 id="core-search-now-returns-the-latest-installable-version-of-a-core"><code>core search</code> now returns the latest installable version of a core.<a class="headerlink" href="#core-search-now-returns-the-latest-installable-version-of-a-core" title="Permanent link">¶</a></h3> |
3659 |
| -<p>We now show in the <code>version</code> column the latest installable version. If none are available then we show a <code>n/a</code> label. |
3660 |
| -The corresponding command with <code>--format json</code> now returns the same output of |
3661 |
| -<code>arduino-cli core search --all --format json</code>.</p> |
3662 |
| -<h3 id="core-upgrade-and-core-install-will-install-the-latest-compatible-version"><code>core upgrade</code> and <code>core install</code> will install the latest compatible version.<a class="headerlink" href="#core-upgrade-and-core-install-will-install-the-latest-compatible-version" title="Permanent link">¶</a></h3> |
3663 |
| -<p>Previously, we'd have tried the installation/upgrade of a core even if all the required tools weren't available in the |
3664 |
| -current OS/ARCH. Now we check this upfront, and allowing the installation of incompatible versions only if a user |
3665 |
| -explicitly provides it like: <code>core install arduino:renesas_uno@1.0.2</code></p> |
3666 |
| -<h3 id="grpc-service-ccarduinoclisettingsv1-has-been-removed-and-all-rpc-calls-have-been-migrated-to-ccarduinoclicommandsv1">gRPC service <code>cc.arduino.cli.settings.v1</code> has been removed, and all RPC calls have been migrated to <code>cc.arduino.cli.commands.v1</code><a class="headerlink" href="#grpc-service-ccarduinoclisettingsv1-has-been-removed-and-all-rpc-calls-have-been-migrated-to-ccarduinoclicommandsv1" title="Permanent link">¶</a></h3> |
3667 |
| -<p>The service <code>cc.arduino.cli.settings.v1</code> no longer exists and all existing RPC calls have been moved to the |
3668 |
| -<code>cc.arduino.cli.commands.v1</code> service adding a <code>Settings</code> prefix to the names of all messages. The existing RPC calls:</p> |
3669 |
| -<ul> |
3670 |
| -<li><code>rpc GetAll(GetAllRequest) returns (GetAllResponse)</code></li> |
3671 |
| -<li><code>rpc Merge(MergeRequest) returns (MergeResponse)</code></li> |
3672 |
| -<li><code>rpc GetValue(GetValueRequest) returns (GetValueResponse)</code></li> |
3673 |
| -<li><code>rpc SetValue(SetValueRequest) returns (SetValueResponse)</code></li> |
3674 |
| -<li><code>rpc Write(WriteRequest) returns (WriteResponse)</code></li> |
3675 |
| -<li><code>rpc Delete(DeleteRequest) returns (DeleteResponse)</code></li> |
3676 |
| -</ul> |
3677 |
| -<p>are now renamed to:</p> |
3678 |
| -<ul> |
3679 |
| -<li><code>rpc SettingsGetAll(SettingsGetAllRequest) returns (SettingsGetAllResponse)</code></li> |
3680 |
| -<li><code>rpc SettingsMerge(SettingsMergeRequest) returns (SettingsMergeResponse)</code></li> |
3681 |
| -<li><code>rpc SettingsGetValue(SettingsGetValueRequest) returns (SettingsGetValueResponse)</code></li> |
3682 |
| -<li><code>rpc SettingsSetValue(SettingsSetValueRequest) returns (SettingsSetValueResponse)</code></li> |
3683 |
| -<li><code>rpc SettingsWrite(SettingsWriteRequest) returns (SettingsWriteResponse)</code></li> |
3684 |
| -<li><code>rpc SettingsDelete(SettingsDeleteRequest) returns (SettingsDeleteResponse)</code></li> |
3685 |
| -</ul> |
3686 | 3506 | <h3 id="grpc-ccarduinoclicommandsv1librarysearchrequest-message-has-been-changed">gRPC <code>cc.arduino.cli.commands.v1.LibrarySearchRequest</code> message has been changed.<a class="headerlink" href="#grpc-ccarduinoclicommandsv1librarysearchrequest-message-has-been-changed" title="Permanent link">¶</a></h3>
|
3687 | 3507 | <p>The <code>query</code> field has been removed, use <code>search_args</code> instead.</p>
|
3688 | 3508 | <h3 id="cli-core-list-and-core-search-changed-json-output">CLI <code>core list</code> and <code>core search</code> changed JSON output.<a class="headerlink" href="#cli-core-list-and-core-search-changed-json-output" title="Permanent link">¶</a></h3>
|
@@ -3842,7 +3662,7 @@ <h3 id="cli-debug-info-changed-json-output">CLI <code>debug --info</code> change
|
3842 | 3662 | <span class="w"> </span><span class="nt">"executable"</span><span class="p">:</span><span class="w"> </span><span class="s2">"/tmp/arduino/sketches/002050EAA7EFB9A4FC451CDFBC0FA2D3/Blink.ino.elf"</span><span class="p">,</span>
|
3843 | 3663 | <span class="w"> </span><span class="nt">"toolchain"</span><span class="p">:</span><span class="w"> </span><span class="s2">"gcc"</span><span class="p">,</span>
|
3844 | 3664 | <span class="w"> </span><span class="nt">"toolchain_path"</span><span class="p">:</span><span class="w"> </span><span class="s2">"/home/user/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/"</span><span class="p">,</span>
|
3845 |
| -<span class="w"> </span><span class="nt">"toolchain_prefix"</span><span class="p">:</span><span class="w"> </span><span class="s2">"arm-none-eabi"</span><span class="p">,</span> |
| 3665 | +<span class="w"> </span><span class="nt">"toolchain_prefix"</span><span class="p">:</span><span class="w"> </span><span class="s2">"arm-none-eabi-"</span><span class="p">,</span> |
3846 | 3666 | <span class="w"> </span><span class="nt">"server"</span><span class="p">:</span><span class="w"> </span><span class="s2">"openocd"</span><span class="p">,</span>
|
3847 | 3667 | <span class="w"> </span><span class="nt">"server_path"</span><span class="p">:</span><span class="w"> </span><span class="s2">"/home/user/.arduino15/packages/arduino/tools/openocd/0.10.0-arduino7/bin/openocd"</span><span class="p">,</span>
|
3848 | 3668 | <span class="w"> </span><span class="nt">"server_configuration"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
|
@@ -5544,7 +5364,7 @@ <h3 id="changes-in-debug-command">Changes in <code>debug</code> command<a class=
|
5544 | 5364 | <div class="highlight"><pre><span></span><code>debug.executable={build.path}/{build.project_name}.elf
|
5545 | 5365 | debug.toolchain=gcc
|
5546 | 5366 | debug.toolchain.path={runtime.tools.arm-none-eabi-gcc-7-2017q4.path}/bin/
|
5547 |
| -debug.toolchain.prefix=arm-none-eabi |
| 5367 | +debug.toolchain.prefix=arm-none-eabi- |
5548 | 5368 | debug.server=openocd
|
5549 | 5369 | debug.server.openocd.path={runtime.tools.openocd-0.10.0-arduino7.path}/bin/
|
5550 | 5370 | debug.server.openocd.scripts_dir={runtime.tools.openocd-0.10.0-arduino7.path}/share/openocd/scripts/
|
|
0 commit comments