<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Archlinux on Fish&#39;s Blog</title>
    <link>https://fishy.us.ci/tags/archlinux/</link>
    <description>Recent content from Fish&#39;s Blog</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    
    <managingEditor>xxx@example.com (Fish)</managingEditor>
    <webMaster>xxx@example.com (Fish)</webMaster>
    
    <copyright>本博客所有文章除特别声明外，均采用 BY-NC-SA 许可协议。转载请注明出处！</copyright>
    
    <lastBuildDate>Fri, 22 May 2026 12:00:00 +0800</lastBuildDate>
    
    
    <atom:link href="https://fishy.us.ci/tags/archlinux/index.xml" rel="self" type="application/rss&#43;xml" />
    

    
    

    <item>
      <title>WSL2&#43;VSCode的STM32开发指南</title>
      <link>https://fishy.us.ci/post/wslembedded/</link>
      <pubDate>Fri, 22 May 2026 12:00:00 &#43;0800</pubDate>
      <author>xxx@example.com (Fish)</author>
      <guid>https://fishy.us.ci/post/wslembedded/</guid>
      <description>
        <![CDATA[<h1>WSL2+VSCode的STM32开发指南</h1><p>作者：Fish（xxx@example.com）</p>
        
          <blockquote>
<p>这是一篇关于使用 WSL2、 VS Code 进行 STM32 开发的教程。</p></blockquote>
<h2 id="wsl2-和相应工具">
<a class="header-anchor" href="#wsl2-%e5%92%8c%e7%9b%b8%e5%ba%94%e5%b7%a5%e5%85%b7"></a>
WSL2 和相应工具
</h2><h3 id="wsl2">
<a class="header-anchor" href="#wsl2"></a>
WSL2
</h3><p>WSL（Windows Subsystem for Linux）是微软开发的一项技术，允许用户在Windows系统中直接运行完整的Linux环境，无需虚拟机。WSL2是WSL的升级版本，提供了更高的性能和完全的系统调用兼容性。</p>
<p>关于 WSL2 下载和相应发行版的选择网上已有很多教程本文不再赘述。</p>
<blockquote>
<p>本文使用的发行版为 archlinux<br>
<a href="https://learn.microsoft.com/zh-cn/windows/wsl/">微软官方WSL文档</a></p></blockquote>
<h3 id="usbipd-win">
<a class="header-anchor" href="#usbipd-win"></a>
usbipd-win
</h3><p>usbipd-win 是 USB/IP 开源项目，它能将 USB 设备连接到 WSL2 上运行的 Linux 分发版。在 Windows 计算机上配置 USB/IP 项目可以实现常见的开发者 USB 场景，例如刷写 Arduino 或访问智能卡读卡器和本文所用到的连接 ST-link烧录 STM32。</p>
<blockquote>
<p><a href="https://learn.microsoft.com/zh-cn/windows/wsl/connect-usb">微软官方下载和使用教程</a></p></blockquote>
<h3 id="vs-code">
<a class="header-anchor" href="#vs-code"></a>
VS Code
</h3><p>Visual Studio Code（简称VS Code）是微软公司发布现代化、轻量级、跨平台的源代码编辑器，内置多种插件，提供了丰富的功能，支持多种编程语言。本教程将用 VSCode 作为代码编辑器和 STM32 的开发环境。</p>
<blockquote>
<p><a href="https://code.visualstudio.com/">VScode下载链接</a></p></blockquote>
<h2 id="开发环境搭建">
<a class="header-anchor" href="#%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%e6%90%ad%e5%bb%ba"></a>
开发环境搭建
</h2><h3 id="archlinux-工具安装">
<a class="header-anchor" href="#archlinux-%e5%b7%a5%e5%85%b7%e5%ae%89%e8%a3%85"></a>
archlinux 工具安装
</h3><blockquote>
<p>默认已经下载 archlinux 基础工具</p></blockquote>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl"><span class="c1"># 软件包更新</span>
</span></span><span class="line"><span class="cl">sudo pacman -Syu
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># 下载java，推荐最低版本是java21</span>
</span></span><span class="line"><span class="cl">sudo pacman -S jdk-openjdk
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># 下载usb查看工具和解压工具</span>
</span></span><span class="line"><span class="cl">sudo pacman -S usbutils unzip
</span></span></code></pre></div><h3 id="wsl2-中下载-stm32cubemx">
<a class="header-anchor" href="#wsl2-%e4%b8%ad%e4%b8%8b%e8%bd%bd-stm32cubemx"></a>
WSL2 中下载 STM32CubeMX
</h3><p>STM32CubeMX（包括STM32CubeMX和STM32CubeMX2）是一款图形化工具，可简化STM32产品的配置，并通过分步引导的过程生成相应的初始化代码。</p>
        
        <hr><p>本文2026-05-22首发于<a href='https://fishy.us.ci/'>Fish's Blog</a>，最后修改于2026-05-22</p>]]>
      </description>
      
        <category>Tech</category>
      
    </item>
    
  </channel>
</rss>
