Deploying to gh-pages from @ Klipper3d/klipper@cba119db3a 🚀

This commit is contained in:
KevinOConnor
2023-04-17 00:03:38 +00:00
parent 13f13bf7d5
commit e172d515bc
108 changed files with 3049 additions and 1001 deletions

View File

@@ -1776,7 +1776,7 @@ stm32flash -w generic_boot20_pc13.bin -v -g 0 /dev/ttyAMA0
<p>啟動載入程式通常只在啟動后的一小段時間執行。在輸入以上命令的時候需要確保啟動載入程式還在執行啟動載入程式執行的時候會控制板上的led閃爍。此外啟動后如果設定「boot 0」引腳為低設定「boot 1」引腳為高則可以一直停留在啟動載入程式。</p>
<h3 id="hid-stm32f103">帶有 HID 載入程式的STM32F103<a class="headerlink" href="#hid-stm32f103" title="Permanent link">&para;</a></h3>
<p><a href="https://github.com/Serasidis/STM32_HID_Bootloader">HID bootloader</a>是一個緊湊的、不包含驅動的啟動載入程式能夠通過USB進行刷寫。此外還有一個<a href="https://github.com/Arksine/STM32_HID_Bootloader/releases/latest">針對SKR Mini E3 1.2構建的分支</a></p>
<p>對於常見的STM32F103板如Blue Pill,和 stm32duino 章節中一樣,可以通過 3.3v 序列用stm32flash 刷寫啟動載入程式,將檔名替換為所需的 hid載入程式二進制檔案例如Blue Pill 使用的 hid_generic_pc13.bin)。</p>
<p>For generic STM32F103 boards such as the blue pill it is possible to flash the bootloader via 3.3V serial using stm32flash as noted in the stm32duino section above, substituting the file name for the desired hid bootloader binary (ie: hid_generic_pc13.bin for the blue pill).</p>
<p>SKR Mini E3無法使用stm32flash 因為boot 0引腳被直接接到GND且沒有跳線斷開。推薦使用STLink V2通過STM32Cubeprogrammer刷寫啟動載入程式。如果你沒有STLink ,也可以按照以下晶片配置使用<a href="#running-openocd-on-the-raspberry-pi">樹莓派和OpenOCD</a> 刷寫:</p>
<div class="highlight"><pre><span></span><code>來源 [查詢目標/stm32f1x.cfg]
</code></pre></div>
@@ -1829,10 +1829,10 @@ make
<div class="highlight"><pre><span></span><code>make flash FLASH_DEVICE=/dev/ttyACM0
</code></pre></div>
<p>可能需要手動進入載入程式,這可以通過設定 "boot 0 "的低電平和 "boot 1 "的高電平來完成。在SKR Mini E3上,"Boot 1 "是不可用的,所以如果你寫入過"hid_btt_skr_mini_e3.bin"可以通過設定PA2的低電平來完成。在SKR Mini E3 "PIN "檔案中這個引腳在TFT插座上被標記為 "TX0"。在PA2旁邊有一個接地引腳你可以用它來把PA2拉低。</p>
<p>It may be necessary to manually enter the bootloader, this can be done by setting "boot 0" low and "boot 1" high. On the SKR Mini E3 "Boot 1" is not available, so it may be done by setting pin PA2 low if you flashed "hid_btt_skr_mini_e3.bin". This pin is labeled "TX0" on the TFT header in the SKR Mini E3's "PIN" document. There is a ground pin next to PA2 which you can use to pull PA2 low.</p>
<h3 id="stm32f103stm32f072-with-msc-bootloader">STM32F103/STM32F072 with MSC bootloader<a class="headerlink" href="#stm32f103stm32f072-with-msc-bootloader" title="Permanent link">&para;</a></h3>
<p>The <a href="https://github.com/Telekatz/MSC-stm32f103-bootloader">MSC bootloader</a> is a driverless bootloader capable of flashing over USB.</p>
<p>It is possible to flash the bootloader via 3.3v serial using stm32flash as noted in the stm32duino section above, substituting the file name for the desired MSC bootloader binary (ie: MSCboot-Bluepill.bin for the blue pill).</p>
<p>It is possible to flash the bootloader via 3.3V serial using stm32flash as noted in the stm32duino section above, substituting the file name for the desired MSC bootloader binary (ie: MSCboot-Bluepill.bin for the blue pill).</p>
<p>For STM32F072 boards it is also possible to flash the bootloader over USB (via DFU) with something like:</p>
<div class="highlight"><pre><span></span><code> dfu-util -d 0483:df11 -a 0 -R -D MSCboot-STM32F072.bin -s0x08000000:leave
</code></pre></div>
@@ -1841,7 +1841,7 @@ make
<p>The bootloader can be activated by pressing the reset button of the board twice. As soon as the bootloader is activated, the board appears as a USB flash drive onto which the klipper.bin file can be copied.</p>
<h3 id="stm32f103stm32f0x2-with-canboot-bootloader">STM32F103/STM32F0x2 with CanBoot bootloader<a class="headerlink" href="#stm32f103stm32f0x2-with-canboot-bootloader" title="Permanent link">&para;</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>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 repository 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
@@ -1855,8 +1855,8 @@ make
<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">&para;</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>
<p>STM32F4 micro-controllers come equipped with a built-in system bootloader capable of flashing over USB (via DFU), 3.3V Serial, and various other methods (see STM Document AN2606 for more information). Some STM32F4 boards, such as the SKR Pro 1.1, are not able to enter the DFU bootloader. The HID bootloader is available for STM32F405/407 based boards should the user prefer flashing over USB over using the sdcard. Note that you may need to configure and build a version specific to your board, a <a href="https://github.com/Arksine/STM32_HID_Bootloader/releases/latest">build for the SKR Pro 1.1 is available here</a>.</p>
<p>Unless your board is DFU capable the most accessible flashing method is likely via 3.3V serial, which follows the same procedure as <a href="#stm32f103-micro-controllers-blue-pill-devices">flashing the STM32F103 using stm32flash</a>. For example:</p>
<div class="highlight"><pre><span></span><code>wget https://github.com/Arksine/STM32_HID_Bootloader/releases/download/v0.5-beta/hid_bootloader_SKR_PRO.bin
stm32flash -w hid_bootloader_SKR_PRO.bin -v -g 0 /dev/ttyAMA0