添加Boot to Qt 设备

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

如果Qt Creator 没有自动检测到通过 USB 连接的Boot to Qt 设备,请检查是否按照设备快速入门指南中的说明操作。

如果仍无帮助,但您可以找到设备的 IP 地址,请与其建立网络连接:

  1. 转到首选项>Devices >Devices

    设备偏好设置中的设备选项卡

  2. 选择Add >Boot2Qt Device ,创建设备的网络连接。

    Boot to Qt 网络设备设置向导

  3. Device name 中,输入连接名称。
  4. Device address 中,输入设备的主机名或 IP 地址。该值将成为%{Device:HostAddress} 变量的值。
  5. 选择Finish 测试连接并添加设备。

向导不会显示具有合理默认值的参数,如 SSH 端口号。它可以在变量%{Device:SshPort} 中找到。

要不使用向导添加设备,请在Add 按钮的下拉菜单中选择Boot2Qt Device

注意: 在 Ubuntu Linux 上,开发用户账户必须有访问插入设备的权限。要授予他们通过 USB 访问设备的权限,请按照Boot to Qt 中的说明创建新的 udev 规则:设置 USB 访问嵌入式设备

重启设备

要重新启动所选设备,请选择Reboot Device

恢复默认应用程序

要恢复设备的默认应用程序,请选择Restore Default App

另请参阅 "启用和禁用插件"、"如何:为Boot to Qt 开发"、"使用 GDB 远程调试"、"Boot to Qt 设备开发"和Boot to Qt: 设置 USB 访问嵌入式设备

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.