littleshrimp 发表于 2021-11-21 18:40

使用 VSCode 编译和调试BlueNRG-1 的代码

<h1 dir="auto" style="border-bottom:1px solid var(--color-border-muted); margin-bottom:16px; padding-bottom:0.3em; text-align:start"><span style="font-size:2em"><span style="box-sizing:border-box"><span style="font-weight:600"><span style="1.25"><span style="color:#24292f"><span style="font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="white-space:normal"><span style="background-color:#ffffff"><span style="text-decoration-thickness:initial"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">BlueNRG-1-VSCode</font></font></span></span></span></span></span></span></span></span></span></span></span></span></span></h1>

<p dir="auto" style="margin-bottom:16px; text-align:start"><span style="font-size:16px"><span style="box-sizing:border-box"><span style="color:#24292f"><span style="font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-weight:400"><span style="white-space:normal"><span style="background-color:#ffffff"><span style="text-decoration-thickness:initial"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">此 repo 是一个模板,用于设置 VSCode 以编译和调试 EMB-1061 BlueNRG-1 模块的代码</font></font></span></span></span></span></span></span></span></span></span></span></span></span></p>

<p dir="auto" style="margin-bottom:16px; text-align:start"><span style="font-size:16px"><span style="box-sizing:border-box"><span style="color:#24292f"><span style="font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-weight:400"><span style="white-space:normal"><span style="background-color:#ffffff"><span style="text-decoration-thickness:initial"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">观看此视频以了解该项目的介绍</font></font></span></span></span></span></span></span></span></span></span></span></span></span></p>

<p dir="auto" style="margin-bottom:16px; text-align:start"><span style="font-size:16px"><span style="box-sizing:border-box"><span style="color:#24292f"><span style="font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-weight:400"><span style="white-space:normal"><span style="background-color:#ffffff"><span style="text-decoration-thickness:initial"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><a href="https://youtu.be/VH6JlEohDSQ" rel="nofollow" style="box-sizing:border-box; color:var(--color-accent-fg); text-decoration:none"><img alt="看这个视频" data-canonical-src="https://img.youtube.com/vi/VH6JlEohDSQ/0.jpg" src="https://camo.githubusercontent.com/27a9003e12719bcd6e606050636e1b183486440ed58df6e173604e4272e4f989/68747470733a2f2f696d672e796f75747562652e636f6d2f76692f5648364a6c456f684453512f302e6a7067" style="box-sizing:content-box; border-style:none; max-width:100%; background-color:var(--color-canvas-default)" /></a></span></span></span></span></span></span></span></span></span></span></span></span></p>

<h2 dir="auto" style="border-bottom:1px solid var(--color-border-muted); margin-top:24px; margin-bottom:16px; padding-bottom:0.3em; text-align:start"><span style="font-size:1.5em"><span style="box-sizing:border-box"><span style="font-weight:600"><span style="1.25"><span style="color:#24292f"><span style="font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="white-space:normal"><span style="background-color:#ffffff"><span style="text-decoration-thickness:initial"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><a aria-hidden="true" class="anchor" href="https://github.com/calebmarting/BlueNRG-1-VSCode#please-note" id="user-content-please-note" style="box-sizing:border-box; color:var(--color-accent-fg); text-decoration:none; float:left; padding-right:4px; margin-left:-20px; 1"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z" fill-rule="evenodd"></path></svg></a><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">请注意:</font></font></span></span></span></span></span></span></span></span></span></span></span></span></span></h2>

<p dir="auto" style="margin-bottom:16px; text-align:start"><span style="font-size:16px"><span style="box-sizing:border-box"><span style="color:#24292f"><span style="font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-weight:400"><span style="white-space:normal"><span style="background-color:#ffffff"><span style="text-decoration-thickness:initial"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">这是一个正在进行的项目,存在一些问题和 jank。</font><font style="box-sizing:border-box; vertical-align:inherit">打印浮标之类的东西可能无法正常工作。</font><font style="box-sizing:border-box; vertical-align:inherit">当您决定使用该芯片时,请考虑到这一点。</font></font></span></span></span></span></span></span></span></span></span></span></span></span></p>

<p dir="auto" style="margin-bottom:16px; text-align:start"><span style="font-size:16px"><span style="box-sizing:border-box"><span style="color:#24292f"><span style="font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-weight:400"><span style="white-space:normal"><span style="background-color:#ffffff"><span style="text-decoration-thickness:initial"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">不过,它仍然比每年为 IAR 或 MDK5 的许可证支付 1500 美元要好&hellip;&hellip;</font></font></span></span></span></span></span></span></span></span></span></span></span></span></p>

<h2 dir="auto" style="border-bottom:1px solid var(--color-border-muted); margin-top:24px; margin-bottom:16px; padding-bottom:0.3em; text-align:start"><span style="font-size:1.5em"><span style="box-sizing:border-box"><span style="font-weight:600"><span style="1.25"><span style="color:#24292f"><span style="font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="white-space:normal"><span style="background-color:#ffffff"><span style="text-decoration-thickness:initial"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><a aria-hidden="true" class="anchor" href="https://github.com/calebmarting/BlueNRG-1-VSCode#features" id="user-content-features" style="box-sizing:border-box; color:var(--color-accent-fg); text-decoration:none; float:left; padding-right:4px; margin-left:-20px; 1"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z" fill-rule="evenodd"></path></svg></a><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">特征</font></font></span></span></span></span></span></span></span></span></span></span></span></span></span></h2>

<ul dir="auto" style="box-sizing:border-box; padding-left:2em; margin-bottom:16px; color:#24292f; font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size:16px; font-style:normal; font-variant-ligatures:normal; font-weight:400; text-align:start; white-space:normal; background-color:#ffffff; text-decoration-thickness:initial; text-decoration-style:initial; text-decoration-color:initial">
        <li style="box-sizing:border-box"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">OTA</font></font></li>
        <li style="box-sizing:border-box; margin-top:4px"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">低功耗(纽扣电池可使用多年)</font></font></li>
</ul>

<h2 dir="auto" style="border-bottom:1px solid var(--color-border-muted); margin-top:24px; margin-bottom:16px; padding-bottom:0.3em; text-align:start"><span style="font-size:1.5em"><span style="box-sizing:border-box"><span style="font-weight:600"><span style="1.25"><span style="color:#24292f"><span style="font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="white-space:normal"><span style="background-color:#ffffff"><span style="text-decoration-thickness:initial"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><a aria-hidden="true" class="anchor" href="https://github.com/calebmarting/BlueNRG-1-VSCode#base-setup--all-os-" id="user-content-base-setup--all-os-" style="box-sizing:border-box; color:var(--color-accent-fg); text-decoration:none; float:left; padding-right:4px; margin-left:-20px; 1"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z" fill-rule="evenodd"></path></svg></a><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">基本设置(所有操作系统)</font></font></span></span></span></span></span></span></span></span></span></span></span></span></span></h2>

<ol dir="auto" style="box-sizing:border-box; padding-left:2em; margin-bottom:16px; color:#24292f; font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size:16px; font-style:normal; font-variant-ligatures:normal; font-weight:400; text-align:start; white-space:normal; background-color:#ffffff; text-decoration-thickness:initial; text-decoration-style:initial; text-decoration-color:initial">
        <li style="box-sizing:border-box"><a href="https://github.com/calebmarting/BlueNRG-1-VSCode/generate" style="box-sizing:border-box; color:var(--color-accent-fg); text-decoration:none"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">Fork这个模板</font></font></a><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">用于您自己的项目并克隆到您的计算机</font></font></li>
        <li style="box-sizing:border-box; margin-top:4px"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">下载并安装 VSCode 并打开您克隆的项目</font></font></li>
        <li style="box-sizing:border-box; margin-top:4px"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">通过 marus25 安装 Cortex-Debug 扩展</font></font>
        <ol dir="auto" style="box-sizing:border-box; padding-left:2em; list-style-type:lower-roman">
                <li style="box-sizing:border-box"><code style="box-sizing:border-box; font-family:ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size:13.6px; padding:0.2em 0.4em; background-color:var(--color-neutral-muted); border-radius:6px">marus25.cortex-debug</code><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">在扩展菜单中</font><font style="box-sizing:border-box; vertical-align:inherit">搜索</font><font style="box-sizing:border-box; vertical-align:inherit">并安装</font></font></li>
        </ol>
        </li>
        <li style="box-sizing:border-box; margin-top:4px"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">安装</font></font><a href="https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads" rel="nofollow" style="box-sizing:border-box; color:var(--color-accent-fg); text-decoration:none"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">Arm Cortex 调试工具</font></font></a></li>
</ol>

<h2 dir="auto" style="border-bottom:1px solid var(--color-border-muted); margin-top:24px; margin-bottom:16px; padding-bottom:0.3em; text-align:start"><span style="font-size:1.5em"><span style="box-sizing:border-box"><span style="font-weight:600"><span style="1.25"><span style="color:#24292f"><span style="font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="white-space:normal"><span style="background-color:#ffffff"><span style="text-decoration-thickness:initial"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><a aria-hidden="true" class="anchor" href="https://github.com/calebmarting/BlueNRG-1-VSCode#windows-setup" id="user-content-windows-setup" style="box-sizing:border-box; color:var(--color-accent-fg); text-decoration:none; float:left; padding-right:4px; margin-left:-20px; 1"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z" fill-rule="evenodd"></path></svg></a><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">视窗设置</font></font></span></span></span></span></span></span></span></span></span></span></span></span></span></h2>

<ol dir="auto" start="5" style="box-sizing:border-box; padding-left:2em; margin-bottom:16px; color:#24292f; font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size:16px; font-style:normal; font-variant-ligatures:normal; font-weight:400; text-align:start; white-space:normal; background-color:#ffffff; text-decoration-thickness:initial; text-decoration-style:initial; text-decoration-color:initial">
        <li style="box-sizing:border-box"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">在你在VSCode中打开的项目中,打开修改</font></font><code style="box-sizing:border-box; font-family:ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size:13.6px; padding:0.2em 0.4em; background-color:var(--color-neutral-muted); border-radius:6px">.vscode/settings.json</code><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">如下:</font></font>

        <ol dir="auto" style="box-sizing:border-box; padding-left:2em; list-style-type:lower-roman">
                <li style="box-sizing:border-box"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">在集成终端中运行 getShort.bat 并以您的 Arm Cortex 调试工具版本的 bin 文件位置作为参数,例如:&nbsp;</font></font><code style="box-sizing:border-box; font-family:ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size:13.6px; padding:0.2em 0.4em; background-color:var(--color-neutral-muted); border-radius:6px">./getshort.bat &quot;C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\bin&quot;</code></li>
                <li style="box-sizing:border-box; margin-top:4px"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">复制输出并将其放入</font></font><code style="box-sizing:border-box; font-family:ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size:13.6px; padding:0.2em 0.4em; background-color:var(--color-neutral-muted); border-radius:6px">&quot;cortex-debug.armToolchainPath&quot;</code><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">设置中,例如:&nbsp;</font></font><code style="box-sizing:border-box; font-family:ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size:13.6px; padding:0.2em 0.4em; background-color:var(--color-neutral-muted); border-radius:6px">&#39;&quot;cortex-debug.armToolchainPath&quot;: &quot;C:/PROGRA\~2/GNUARM\~1/102020~1/bin&quot;,&#39;</code></li>
                <li style="box-sizing:border-box; margin-top:4px"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">在资源管理器中打开您的 Arm Cortex 调试工具版本的文件位置,然后导航到</font></font><code style="box-sizing:border-box; font-family:ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size:13.6px; padding:0.2em 0.4em; background-color:var(--color-neutral-muted); border-radius:6px">\lib\gcc\arm-none-eabi</code><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">并复制该位置的文件名。</font></font>
                <ul dir="auto" style="box-sizing:border-box; padding-left:2em">
                        <li style="box-sizing:border-box"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">我的完整路径是 C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\lib\gcc\arm-none-eabi</font></font></li>
                        <li style="box-sizing:border-box; margin-top:4px"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">我复制的文件名是10.2.1</font></font></li>
                </ul>
                </li>
                <li style="box-sizing:border-box; margin-top:4px"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">将设置&ldquo;armToolchainVersion&rdquo;替换为您复制的文件名,例如:&nbsp;</font></font><code style="box-sizing:border-box; font-family:ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size:13.6px; padding:0.2em 0.4em; background-color:var(--color-neutral-muted); border-radius:6px">&quot;armToolchainVersion&quot;: &quot;10.2.1&quot;,</code></li>
                <li style="box-sizing:border-box; margin-top:4px"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">(如果使用 JLink,则可选)将您的 JLink 服务器的安装位置复制到设置中</font></font><code style="box-sizing:border-box; font-family:ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size:13.6px; padding:0.2em 0.4em; background-color:var(--color-neutral-muted); border-radius:6px">&quot;cortex-debug.JLinkGDBServerPath&quot;</code><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">,例如:&nbsp;</font></font><code style="box-sizing:border-box; font-family:ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size:13.6px; padding:0.2em 0.4em; background-color:var(--color-neutral-muted); border-radius:6px">&#39;&quot;cortex-debug.JLinkGDBServerPath&quot;: &quot;C:/Program Files (x86)/SEGGER/JLink_V635c/JLinkGDBServerCL.exe&quot;&#39;</code></li>
        </ol>
        </li>
        <li style="box-sizing:border-box; margin-top:4px"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">安装</font></font><a href="https://www.st.com/content/st_com/en/products/embedded-software/evaluation-tool-software/stsw-bluenrg1-dk.html" rel="nofollow" style="box-sizing:border-box; color:var(--color-accent-fg); text-decoration:none"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">BlueNRG-1_2 DK</font></font></a>
        <ol dir="auto" style="box-sizing:border-box; padding-left:2em; list-style-type:lower-roman">
                <li style="box-sizing:border-box"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">如果构建项目不起作用,您可能需要使用文件位置更新 settings.json。</font><font style="box-sizing:border-box; vertical-align:inherit">检查并确保&nbsp;</font></font><code style="box-sizing:border-box; font-family:ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size:13.6px; padding:0.2em 0.4em; background-color:var(--color-neutral-muted); border-radius:6px">&quot;bluenrgDkLocation&quot;</code><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">设置的值是您的 BlueNRG DK 的安装位置。</font><font style="box-sizing:border-box; vertical-align:inherit">如果不是,请找到它并使用其 lib 文件位置运行 getshort.bat。</font></font>
                <ul dir="auto" style="box-sizing:border-box; padding-left:2em">
                        <li style="box-sizing:border-box"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">例如,我的安装位于</font></font><code style="box-sizing:border-box; font-family:ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size:13.6px; padding:0.2em 0.4em; background-color:var(--color-neutral-muted); border-radius:6px">C:\Users\&lt;USER&gt;\ST\BlueNRG-1_2 DK 3.2.1\Library</code><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">所以我的设置看起来像</font></font><code style="box-sizing:border-box; font-family:ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size:13.6px; padding:0.2em 0.4em; background-color:var(--color-neutral-muted); border-radius:6px">&quot;bluenrgDkLocation&quot;: &quot;C:/Users/&lt;USER&gt;/ST/BLUENR~1.1/Library&quot;</code></li>
                </ul>
                </li>
        </ol>
        </li>
</ol>

<p dir="auto" style="margin-bottom:16px; text-align:start"><span style="font-size:16px"><span style="box-sizing:border-box"><span style="color:#24292f"><span style="font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-weight:400"><span style="white-space:normal"><span style="background-color:#ffffff"><span style="text-decoration-thickness:initial"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">你应该完成!</font></font></span></span></span></span></span></span></span></span></span></span></span></span></p>

<h2 dir="auto" style="border-bottom:1px solid var(--color-border-muted); margin-top:24px; margin-bottom:16px; padding-bottom:0.3em; text-align:start"><span style="font-size:1.5em"><span style="box-sizing:border-box"><span style="font-weight:600"><span style="1.25"><span style="color:#24292f"><span style="font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="white-space:normal"><span style="background-color:#ffffff"><span style="text-decoration-thickness:initial"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><a aria-hidden="true" class="anchor" href="https://github.com/calebmarting/BlueNRG-1-VSCode#linux-setup" id="user-content-linux-setup" style="box-sizing:border-box; color:var(--color-accent-fg); text-decoration:none; float:left; padding-right:4px; margin-left:-20px; 1"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z" fill-rule="evenodd"></path></svg></a><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">Linux 设置</font></font></span></span></span></span></span></span></span></span></span></span></span></span></span></h2>

<ol dir="auto" start="5" style="box-sizing:border-box; padding-left:2em; margin-bottom:16px; color:#24292f; font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size:16px; font-style:normal; font-variant-ligatures:normal; font-weight:400; text-align:start; white-space:normal; background-color:#ffffff; text-decoration-thickness:initial; text-decoration-style:initial; text-decoration-color:initial">
        <li style="box-sizing:border-box">
        <p dir="auto" style="margin-top:16px; margin-bottom:16px"><span style="box-sizing:border-box"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">在你在VSCode中打开的项目中,打开修改</font></font><code style="box-sizing:border-box; font-family:ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size:13.6px; padding:0.2em 0.4em; background-color:var(--color-neutral-muted); border-radius:6px">.vscode/settings.json</code><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">如下:</font></font></span></p>

        <ol dir="auto" style="box-sizing:border-box; padding-left:2em; list-style-type:lower-roman">
                <li style="box-sizing:border-box"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">在设置中设置工具链的路径</font></font><code style="box-sizing:border-box; font-family:ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size:13.6px; padding:0.2em 0.4em; background-color:var(--color-neutral-muted); border-radius:6px">&quot;cortex-debug.armToolchainPath&quot;</code><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">,例如:&nbsp;</font></font><code style="box-sizing:border-box; font-family:ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size:13.6px; padding:0.2em 0.4em; background-color:var(--color-neutral-muted); border-radius:6px">&#39;&quot;cortex-debug.armToolchainPath&quot;: &quot;/home/&lt;user&gt;/gcc-arm-none-eabi-10-2020-q4-major/bin&quot;,&#39;</code></li>
                <li style="box-sizing:border-box; margin-top:4px"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">在资源管理器中打开您的 Arm Cortex 调试工具版本的文件位置,然后导航到</font></font><code style="box-sizing:border-box; font-family:ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size:13.6px; padding:0.2em 0.4em; background-color:var(--color-neutral-muted); border-radius:6px">\lib\gcc\arm-none-eabi</code><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">并复制该位置的目录名称。</font></font>
                <ul dir="auto" style="box-sizing:border-box; padding-left:2em">
                        <li style="box-sizing:border-box"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">我的完整路径是 /home//gcc-arm-none-eabi-10-2020-q4-major/lib/gcc/arm-none-eabi</font></font></li>
                        <li style="box-sizing:border-box; margin-top:4px"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">我复制的目录名称是 10.2.1</font></font></li>
                </ul>
                </li>
                <li style="box-sizing:border-box; margin-top:4px"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">将设置&ldquo;armToolchainVersion&rdquo;替换为您复制的文件名,例如:&nbsp;</font></font><code style="box-sizing:border-box; font-family:ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size:13.6px; padding:0.2em 0.4em; background-color:var(--color-neutral-muted); border-radius:6px">&quot;armToolchainVersion&quot;: &quot;10.2.1&quot;,</code></li>
        </ol>
        </li>
        <li style="box-sizing:border-box; margin-top:4px">
        <p dir="auto" style="margin-top:16px; margin-bottom:16px"><span style="box-sizing:border-box"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">安装</font></font><a href="https://www.st.com/content/st_com/en/products/embedded-software/evaluation-tool-software/stsw-bluenrg1-dk.html" rel="nofollow" style="box-sizing:border-box; color:var(--color-accent-fg); text-decoration:none"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">BlueNRG-1_2 DK</font></font></a></span></p>

        <ol dir="auto" style="box-sizing:border-box; padding-left:2em; list-style-type:lower-roman">
                <li style="box-sizing:border-box"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">注册并等待电子邮件下载:(</font></font></li>
                <li style="box-sizing:border-box; margin-top:4px"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">使用 innoextract 从 exe 中获取文件</font></font></li>
                <li style="box-sizing:border-box; margin-top:4px"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">将 %USERPROFILE/ST/BlueNRG-1_2 DK 3.2.1 复制到您想要的目的地</font></font></li>
                <li style="box-sizing:border-box; margin-top:4px"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">使用文件位置更新 settings.json。</font><font style="box-sizing:border-box; vertical-align:inherit">检查并确保&nbsp;</font></font><code style="box-sizing:border-box; font-family:ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size:13.6px; padding:0.2em 0.4em; background-color:var(--color-neutral-muted); border-radius:6px">&quot;bluenrgDkLocation&quot;</code><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">设置的值是您的 BlueNRG DK 的安装位置,例如:&nbsp;</font></font><code style="box-sizing:border-box; font-family:ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size:13.6px; padding:0.2em 0.4em; background-color:var(--color-neutral-muted); border-radius:6px">&quot;/home/&lt;user&gt;/BlueNRG-1_2-DK-3.2.1&quot;</code></li>
        </ol>
        </li>
        <li style="box-sizing:border-box; margin-top:4px">
        <p dir="auto" style="margin-top:16px; margin-bottom:16px"><span style="box-sizing:border-box"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">构建并安装 openocd-0.11.0-rc2</font></font></span></p>

        <ol dir="auto" style="box-sizing:border-box; padding-left:2em; list-style-type:lower-roman">
                <li style="box-sizing:border-box"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">有关说明,请参阅 openocd 自述文件</font></font><a href="http://openocd.org/doc-release/README" rel="nofollow" style="box-sizing:border-box; color:var(--color-accent-fg); text-decoration:none"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">http://openocd.org/doc-release/README</font></font></a></li>
        </ol>

        <ul dir="auto" style="box-sizing:border-box; padding-left:2em">
                <li style="box-sizing:border-box"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">不需要特殊选项,默认值有效</font></font></li>
        </ul>
        </li>
</ol>

<h2 dir="auto" style="border-bottom:1px solid var(--color-border-muted); margin-top:24px; margin-bottom:16px; padding-bottom:0.3em; text-align:start"><span style="font-size:1.5em"><span style="box-sizing:border-box"><span style="font-weight:600"><span style="1.25"><span style="color:#24292f"><span style="font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="white-space:normal"><span style="background-color:#ffffff"><span style="text-decoration-thickness:initial"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><a aria-hidden="true" class="anchor" href="https://github.com/calebmarting/BlueNRG-1-VSCode#building-and-running-the-example-project" id="user-content-building-and-running-the-example-project" style="box-sizing:border-box; color:var(--color-accent-fg); text-decoration:none; float:left; padding-right:4px; margin-left:-20px; 1"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z" fill-rule="evenodd"></path></svg></a><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">构建和运行示例项目</font></font></span></span></span></span></span></span></span></span></span></span></span></span></span></h2>

<ol dir="auto" style="box-sizing:border-box; padding-left:2em; margin-bottom:16px; color:#24292f; font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size:16px; font-style:normal; font-variant-ligatures:normal; font-weight:400; text-align:start; white-space:normal; background-color:#ffffff; text-decoration-thickness:initial; text-decoration-style:initial; text-decoration-color:initial">
        <li style="box-sizing:border-box"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">按 ctrl+shift+b 构建项目,如果一切都设置好了,就应该构建了!</font></font></li>
        <li style="box-sizing:border-box; margin-top:4px"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">导航到左侧的运行菜单并根据您使用的调试设备将调试配置设置为&ldquo;调试(ST-Link)&rdquo;或&ldquo;调试(JLink)&rdquo;</font></font>
        <ul dir="auto" style="box-sizing:border-box; padding-left:2em">
                <li style="box-sizing:border-box"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">您还需要使用 SWDIO、SWCLK 和 GND 引脚将调试设备连接到 ST-Link 或 JLink。</font></font><strong style="box-sizing:border-box; font-weight:600"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">注意:</font></font></strong><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">我不建议使用 3.3V 线为您的 BlueNRG 模块供电,它会导致错误。</font><font style="box-sizing:border-box; vertical-align:inherit">请使用 1.7 至 3.6 V 之间的外部电源或纽扣电池</font></font></li>
        </ul>
        </li>
        <li style="box-sizing:border-box; margin-top:4px"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">单击运行或按 f5,应弹出调试窗口。</font><font style="box-sizing:border-box; vertical-align:inherit">请注意,这也会执行 make 任务,因此您无需在每次要构建和上传时按 ctrl+shift+b。</font><font style="box-sizing:border-box; vertical-align:inherit">要修改此行为,请编辑 .vscode/launch.json 文件</font></font></li>
        <li style="box-sizing:border-box; margin-top:4px"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">您应该能够逐步执行您的程序,或者单击继续让它运行。</font><font style="box-sizing:border-box; vertical-align:inherit">运行时,它应该使 LED 闪烁(我的开发板上的 GPIO_Pin_14)并成为 BLE 信标。</font><font style="box-sizing:border-box; vertical-align:inherit">您应该能够通过手机上的 BLE 嗅探器看到 BLE 设备</font></font></li>
</ol>

<h2 dir="auto" style="border-bottom:1px solid var(--color-border-muted); margin-top:24px; margin-bottom:16px; padding-bottom:0.3em; text-align:start"><span style="font-size:1.5em"><span style="box-sizing:border-box"><span style="font-weight:600"><span style="1.25"><span style="color:#24292f"><span style="font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="white-space:normal"><span style="background-color:#ffffff"><span style="text-decoration-thickness:initial"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><a aria-hidden="true" class="anchor" href="https://github.com/calebmarting/BlueNRG-1-VSCode#file-locations-explanation" id="user-content-file-locations-explanation" style="box-sizing:border-box; color:var(--color-accent-fg); text-decoration:none; float:left; padding-right:4px; margin-left:-20px; 1"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z" fill-rule="evenodd"></path></svg></a><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">文件位置说明</font></font></span></span></span></span></span></span></span></span></span></span></span></span></span></h2>

<p dir="auto" style="margin-bottom:16px; text-align:start"><span style="font-size:16px"><span style="box-sizing:border-box"><span style="color:#24292f"><span style="font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="font-weight:400"><span style="white-space:normal"><span style="background-color:#ffffff"><span style="text-decoration-thickness:initial"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">下面是其中BlueNRG-1 DK是从位置</font></font><a href="https://www.st.com/content/st_com/en/products/embedded-software/evaluation-tool-software/stsw-bluenrg1-dk.html" rel="nofollow" style="box-sizing:border-box; color:var(--color-accent-fg); text-decoration:none"><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">https://www.st.com/content/st_com/en/products/embedded-software/evaluation-tool-software/stsw-bluenrg1-dk.html</font></font></a><font style="box-sizing:border-box; vertical-align:inherit"><font style="box-sizing:border-box; vertical-align:inherit">当你安装这个DK文件的实际位置应该是</font></font><code style="box-sizing:border-box; font-family:ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size:13.6px; padding:0.2em 0.4em; background-color:var(--color-neutral-muted); border-radius:6px">C:/Users/&lt;your user&gt;/ST/BlueNRG-1_2 DK 3.2.1</code></span></span></span></span></span></span></span></span></span></span></span></span></p>

<h2 dir="auto" style="border-bottom:1px solid var(--color-border-muted); margin-top:24px; margin-bottom:16px; padding-bottom:0.3em; text-align:start"><span style="font-size:1.5em"><span style="box-sizing:border-box"><span style="font-weight:600"><span style="1.25"><span style="color:#24292f"><span style="font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;"><span style="font-style:normal"><span style="font-variant-ligatures:normal"><span style="white-space:normal"><span style="background-color:#ffffff"><span style="text-decoration-thickness:initial"><span style="text-decoration-style:initial"><span style="text-decoration-color:initial"><a aria-hidden="true" class="anchor" href="https://github.com/calebmarting/BlueNRG-1-VSCode#bluenrg-1-dev-board" id="user-content-bluenrg-1-dev-board" style="box-sizing:border-box; color:var(--color-accent-fg); text-decoration:none; float:left; padding-right:4px; margin-left:-20px; 1"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z" fill-rule="evenodd"></path></svg></a></span></span></span></span></span></span></span></span></span></span></span></span></span></h2>

<p dir="auto"><font color="#24292f" face="-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji"><span style="font-size: 21px;"><b>来源:https://github.com/calebmarting/BlueNRG-1-VSCode/</b></span></font></p>

<p dir="auto"><font color="#24292f" face="-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji"><span style="font-size: 21px;"><b>源码:</b></span></font></p>

lucienkuang 发表于 2021-11-22 09:38

<p>虾哥好样的。</p>

<p>使用BlueNRG-1/2/3 的朋友,Keil 可以免费使用。<a href="http://www2.keil.com/stmicroelectronics-stm32/mdk#">http://www2.keil.com/stmicroelectronics-stm32/mdk#</a></p>

<p>还有免费的官方基于Eclipse的开发工具。</p>

<p><a href="https://www.st.com/content/st_com/en/products/embedded-software/wireless-connectivity-software/stsw-wise-studio.html">https://www.st.com/content/st_com/en/products/embedded-software/wireless-connectivity-software/stsw-wise-studio.html</a></p>

<p>&nbsp;</p>

annysky2012 发表于 2021-11-22 22:44

<p>感谢分享</p>
页: [1]
查看完整版本: 使用 VSCode 编译和调试BlueNRG-1 的代码