Deploying to gh-pages from @ Klipper3d/klipper@defce11235 🚀
This commit is contained in:
@@ -1239,6 +1239,13 @@
|
||||
带MSC引导程序的STM32F103/STM32F072
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#stm32f103stm32f0x2-with-canboot-bootloader" class="md-nav__link">
|
||||
STM32F103/STM32F0x2 with CanBoot bootloader
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
@@ -1487,6 +1494,13 @@
|
||||
带MSC引导程序的STM32F103/STM32F072
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#stm32f103stm32f0x2-with-canboot-bootloader" class="md-nav__link">
|
||||
STM32F103/STM32F0x2 with CanBoot bootloader
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
@@ -1700,7 +1714,7 @@ at91samd bootloader 16384
|
||||
</code></pre></div>
|
||||
|
||||
<h2 id="stm32f103-blue-pill">STM32F103 微控制器(Blue Pill 开发板)<a class="headerlink" href="#stm32f103-blue-pill" title="Permanent link">¶</a></h2>
|
||||
<p>STM32F103 产品线的芯片包含一个可以通过 3.3V 串口刷写引导程序或应用程序的ROM。要访问这个ROM,在"boot 0 "引脚接到高电平"boot 1 " 引脚接到低电平后重置芯片。然后,可以使用 "stm32flash "软件包,使用类似以下的命令刷写:</p>
|
||||
<p>The STM32F103 devices have a ROM that can flash a bootloader or application via 3.3V serial. Typically one would wire the PA10 (MCU Rx) and PA9 (MCU Tx) pins to a 3.3V UART adapter. To access the ROM, one should connect the "boot 0" pin to high and "boot 1" pin to low, and then reset the device. The "stm32flash" package can then be used to flash the device using something like:</p>
|
||||
<div class="highlight"><pre><span></span><code>stm32flash -w out/klipper.bin -v -g 0 /dev/ttyAMA0
|
||||
</code></pre></div>
|
||||
|
||||
@@ -1784,6 +1798,21 @@ make
|
||||
|
||||
<p>此引导加载程序使用 8KiB 或 16KiB 的闪存空间,请参阅引导加载程序的说明(必须使用相应的起始地址编译应用程序)。</p>
|
||||
<p>可以通过按两次电路板上的复位按钮来激活引导程序。一旦启动引导程序,该板就会显示为一个 USB 闪存驱动器,可以将 klipper.bin 文件复制到该驱动器上。</p>
|
||||
<h3 id="stm32f103stm32f0x2-with-canboot-bootloader">STM32F103/STM32F0x2 with CanBoot bootloader<a class="headerlink" href="#stm32f103stm32f0x2-with-canboot-bootloader" title="Permanent link">¶</a></h3>
|
||||
<p>The <a href="https://github.com/Arksine/CanBoot">CanBoot</a> bootloader provides an option for uploading Klipper firmware over the CANBUS. The bootloader itself is derived from Klipper's source code. Currently CanBoot supports the STM32F103, STM32F042, and STM32F072 models.</p>
|
||||
<p>It is recommended to use a ST-Link Programmer to flash CanBoot, however it should be possible to flash using <code>stm32flash</code> on STM32F103 devices, and <code>dfu-util</code> on STM32F042/STM32F072 devices. See the previous sections in this document for instructions on these flashing methods, substituting <code>canboot.bin</code> for the file name where appropriate. The CanBoot repo linked above provides instructions for building the bootloader.</p>
|
||||
<p>The first time CanBoot has been flashed it should detect that no application is present and enter the bootloader. If this doesn't occur it is possible to enter the bootloader by pressing the reset button twice in succession.</p>
|
||||
<p>The <code>flash_can.py</code> utility supplied in the <code>lib/canboot</code> folder may be used to upload Klipper firmware. The device UUID is necessary to flash. If you do not have a UUID it is possible to query nodes currently running the bootloader:</p>
|
||||
<div class="highlight"><pre><span></span><code>python3 flash_can.py -q
|
||||
</code></pre></div>
|
||||
|
||||
<p>This will return UUIDs for all connected nodes not currently assigned a UUID. This should include all nodes currently in the bootloader.</p>
|
||||
<p>Once you have a UUID, you may upload firmware with following command:</p>
|
||||
<div class="highlight"><pre><span></span><code>python3 flash_can.py -i can0 -f ~/klipper/out/klipper.bin -u aabbccddeeff
|
||||
</code></pre></div>
|
||||
|
||||
<p>Where <code>aabbccddeeff</code> is replaced by your UUID. Note that the <code>-i</code> and <code>-f</code> options may be omitted, they default to <code>can0</code> and <code>~/klipper/out/klipper.bin</code> respectively.</p>
|
||||
<p>When building Klipper for use with CanBoot, select the 8 KiB Bootloader option.</p>
|
||||
<h2 id="stm32f4-skr-pro-11">STM32F4 微控制器 (SKR Pro 1.1)<a class="headerlink" href="#stm32f4-skr-pro-11" title="Permanent link">¶</a></h2>
|
||||
<p>STM32F4微控制器配备了一个内置的系统引导程序,能够通过USB(通过DFU)、3.3v串口和其他各种方法进行刷写(更多信息见STM文件AN2606)。一些STM32F4板,如SKR Pro 1.1,不能进入DFU引导程序。基于STM32F405/407的板子可以使用HID引导程序,如果用户愿意通过USB刷写而不是使用SD卡。请注意,你可能需针对你的板子配置和构建一个特定的版本,<a href="https://github.com/Arksine/STM32_HID_Bootloader/releases/latest">针对SKR Pro 1.1的构建可以在这里找到</a>。</p>
|
||||
<p>除非你的板子有DFU功能,否则最容易的写入方法可能是通过3.3v的串口,这与<a href="#stm32f103-micro-controllers-blue-pill-devices">使用stm32flash刷写STM32F103</a>的步骤相同。例如:</p>
|
||||
|
||||
Reference in New Issue
Block a user