Skip to content

Commit

Permalink
Merge pull request #300 from FengHua741/master
Browse files Browse the repository at this point in the history
修改sht36 v2的canboot更新方法
  • Loading branch information
FengHua741 authored Apr 26, 2024
2 parents 7f2db65 + 815c4b3 commit 1363015
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/board/fly_sht_v2/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
* [10. 相关链接](/board/fly_sht_v2/link.md)
* [11. 原理图](/board/fly_sht_v2/schematic.md)
* [12. 三维模型](/board/fly_sht_v2/3dmodel.md)
* [13. 更新Canboot](/board/fly_sht_v2/canbootflash.md)
* [13. 更新Canboot](/board/fly_sht_v2/shtcanboot.md)
42 changes: 37 additions & 5 deletions docs/board/fly_sht_v2/shtcanboot.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,46 @@
# 10. CanBoot
# 更新CANBOOT

500K的CANBOOT下载链接
编译固件前请确保 [连接到SSH](/introduction/conntossh "点击即可跳转")

请使用**MobaXterm_Personal****SSH工具**连接通过**WIFI**到您的上位机,并且需要确定以下几点

1. **请确保上位机安装好了Klipper服务**
2. **请确保登录的用户必须是安装好Klipper的用户**
3. **请确保你的输入法是英文**
4. **请确保你的上位机可以正常搜索到设备**
5. **请确保以上注意事项都做到,否则无法进行下一步**

# 下载FLY_Katapult

* 执行下面命令下载固件包

```
https://cdn.mellow.klipper.cn/BL/FLY_SHT36V2_072_CANBOOT_500K.bin
cd && git clone https://github.com/FengHua741/FLY_Katapult.git
```

1M的CANBOOT下载链接
* 如果已经下载过固件包的建议更新固件包后在进行剩下操作

```
https://cdn.mellow.klipper.cn/BL/FLY_SHT36V2_072_CANBOOT_500K.bin
cd ~/FLY_Katapult && git pull
```

# 更新工具板Katapult固件

* 请注意需要Katapult固件更新原来的Katapult固件需要使用developer目录下的Katapult固件

* 此方法是直接通过CAN更新工具板原有的Katapult固件

```
~/klippy-env/bin/python ~/klipper/lib/canboot/flash_can.py -f <Update firmware path> -u <Toolboard ID>
```

* 需要将`<Update firmware path>`替换成固件路径比如 `~/FLY_Katapult/developer/SHT36/FLY_SHT36V2_103_1M.bin`
* 需要将`<Toolboard ID>`替换成你的工具板ID比如说`72a773244776`

* 固件都在`FLY_Katapult\developer\SHT36`下可自行查看,刷写错会导致使用不了

* 下方是参考命令

```
~/klippy-env/bin/python ~/klipper/lib/canboot/flash_can.py -f ~/FLY_Katapult/developer/SHT36/FLY_SHT36V2_103_1M.bin -u 72a773244776
```

0 comments on commit 1363015

Please sign in to comment.