连接Boot to Qt 设备

Boot to Qt设备和Qt Creator 之间创建连接,以便在这些设备上运行、调试和分析应用程序。

注意: 启用Boot to Qt 插件才能使用。

配置Qt CreatorBoot to Qt 设备之间的连接:

  1. 检查是否能连接到设备的 IP 地址,或使用 USB 进行连接。
  2. 转到首选项>Kits >Qt Versions
  3. 选择Add ,为Boot to Qt 添加 Qt XML 版本。
  4. 转到首选项>Kits >Compilers
  5. 选择Add 添加用于编译应用程序的编译器。
  6. 转到Tools > Flash Boot to Qt使用Boot to Qt Flashing Wizard 将Boot to Qt 映像闪存到 SD 卡。

    <span translate=Boot to Qt 闪烁向导" src="images/qtcreator-boot2qt-flashing-wizard.png" title="Boot to Qt 闪烁向导"/>

  7. 按照向导的指示将映像闪存到 SD 卡。
  8. 转到首选项>Devices >Devices
  9. 选择Add 添加Boot to Qt 设备。

    Qt Creator 自动检测通过 USB 连接的设备。

  10. 转至首选项>Kits
  11. 选择Add ,为设备添加构建工具包。
  12. 选择上面添加的 Qt 版本、编译器和设备。
  13. Run device 中选择Boot2Qt Device ,在Type 中选择 ,然后在Device 中选择要运行的实际设备。
  14. 指定构建设置:
    1. 为要在设备上开发的应用程序打开一个项目。
    2. 转到Projects >Build & Run ,激活上文指定的工具包。
  15. 选择Run ,指定运行设置。通常可以使用默认设置。

    运行项目时,Qt Creator 会按照部署步骤的指定部署应用程序。默认情况下,Qt Creator 将应用程序文件复制到设备。

另请参阅 "配置 SSH 连接"、"生成 SSH 密钥"、"启用和禁用插件"、"如何:为Boot to Qt 开发"、"如何:管理工具包"、"Boot to Qt 部署配置"、" Boot to Qt 运行设置"和 "Boot to Qt 设备开发"

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.