当前位置: 首页 > news >正文

betaflight configurator 如何正确烧写飞控

概述

最近玩FPV无人机,betaflight configurator 烧写飞控遇到一些坑,这里把过程记录一下

配置udev

配置udev 规则文件(终端输入如下命令),不然会出 Are udev rules installed correctly see docs for instructions的错误

(echo '# DFU (Internal bootloader for STM32 and AT32 MCUs)'echo 'ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="2e3c", ATTRS{idProduct}=="df11", MODE="0664", GROUP="plugdev"'echo 'ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="0664", GROUP="plugdev"') | sudo tee /etc/udev/rules.d/45-stdfu-permissions.rules > /dev/null

配置完我们可以用以下代码查看配置是否正常

cat /etc/udev/rules.d/45-stdfu-permissions.rules

如果显示如下则正常

# DFU (Internal bootloader for STM32 and AT32 MCUs)
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="2e3c", ATTRS{idProduct}=="df11", MODE="0664", GROUP="plugdev"
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="0664", GROUP="plugdev"

重新加载 udev 规则

sudo udevadm control --reload-rules
sudo udevadm trigger

将当前用户加入 dialout 组(串口访问默认组)

sudo usermod -aG dialout $USER

直接打开betaflight-configurator会找不到串口(没有写权限,报错 Chrome API Error: Failed to connect to the port),我们用超级用户打开

sudo /opt/betaflight/betaflight-configurator/betaflight-configurator

betaflight-configurator 界面配置

在这里插入图片描述
主要配置no reboot sequence 和 full chip erase,附操作指南


If you have lost communication with your board follow these steps to restore communication:。Power off。Enable 'No reboot sequence', enable 'Full chip erase'.。Jumper the BOOT pins or hold BOOT button. 。Power on (activity LED will NOT flash if done correctly).。Install all STM32 drivers and Zadig if required (see USB Flashing section of Betaflight manual).。Close configurator, Restart Configurator.。Release BOOT button if your FC has one.。Flash with correct firmware (using manual baud rate if specified in your FC's manual).。Power off.。Remove BOOT jumper.。Power on (activity LED should flash).。Connect normally.

重要的 Jumper the BOOT pins or hold BOOT button [按住boot按钮再插电,然后亮红灯或过2秒释放按钮,进入DFU模式]。Ubuntu下一般不用安装驱动,使用lsusb命令能正常看到串口就没问题。

最后就是烧写系统,如果没问题一般在2分钟内就可以完成。

参考

Installing-Betaflight

http://www.xdnf.cn/news/1374085.html

相关文章:

  • 基于muduo库的图床云共享存储项目(二)
  • Linux 云服务器内存不足如何优化
  • 【RAG】使用llamaindex进行RAG开发
  • 6 种无需 iTunes 将照片从 iPhone 传输到电脑
  • TDengine IPv6 支持用户手册
  • “java简单吗?”Java的“简单”与PHP的挑战:编程语言哲学-优雅草卓伊凡
  • KDMS V4 重磅升级,智能迁移赋能国产化替代!
  • android证书相关
  • 像WPS Office 一样处理pdf页面尺寸
  • AI 解决生活小事 2——用 AI 做一回新闻播客
  • 使用人工智能写一个websocket聊天页面
  • PDF补丁丁:开源多年,完全免费的多功能 PDF 工具箱
  • Agno Agent​​
  • 如何借助文档控件 TX Text Control 轻松优化 PDF 文件大小?
  • 计算机视觉(三):opencv环境搭建和图片显示
  • 主键索引和普通索引的区别
  • 基于 Qt 实现的动态流程图画板框架设计与实现
  • 在Windows系统上升级Node.js和npm
  • FastAPI + SQLModel 从 0 搭到完整 CRUD
  • STL库——vector(类模拟实现)
  • skywalking 原理
  • 当AI有了温度,三星正在重新定义生活的边界
  • 技术分析 | Parasoft C/C++test如何突破单元测试的隔离难题
  • SyntaxError: Failed to execute ‘open‘ on ‘XMLHttpRequest‘: Invalid URL
  • 【C++】set 容器的使用
  • Android/Java中枚举的详解
  • 基于Spring Boot+Vue的生活用品购物平台/在线购物系统/生活用户在线销售系统/基于javaweb的在线商城系统
  • JMeter —— 压力测试
  • 基于 Docker Compose 的若依多服务一键部署java项目实践
  • C# OpenCVSharp 实现物体尺寸测量方案