为Bare Metal 设备开发
使用 GDB 或硬件调试器在远程 Linux 设备插件不支持的小型设备上运行和调试程序。
注意: 启用Bare Metal 插件才能使用。
在计算机上安装Bare Metal 工具链,以便为Bare Metal 设备构建应用程序。将设备连接到计算机,以便在设备上运行和调试应用程序。
注意: 如果使用 qmake 构建项目,而设备没有 Qt 库,则需要安装符合自建 Qt 版本要求的 Qt。此外,mkspecs
目录必须足够完整,以便解析 .pro 文件。
构建应用程序支持以下工具链:
- GCC:Microchip Technology(AVR、AVR32、PIC16、PIC32)、NXP Semiconductors(ColdFire、M68K)、Texas Instruments(MSP430)、National Semiconductor(CR16C)、Renesas Electronics(M32R、M32C、RL78、RX、SuperH、V850)、Tensilica XTENSA(ESP8266、ESP32)、RISC-V、Arm。
- IAR EW:Microchip Technology(AVR、AVR32)、NXP Semiconductors(ColdFire、M68K)、Texas Instruments(MSP430)、National Semiconductor(CR16C)、Renesas Electronics(78K、M16/R8C、M32C、R32C、RH850、RL78、RX、SuperH、V850)、STMicroelectronics(STM8)、8051、RISC-V、Arm
- Keil:Arm、C51 (8051)、C251 (80251)、C166 (C16x、XC16x)
- SDCC:意法半导体(STM8)、8051
裸机器件类型接受在器件首选项中指定的自定义 GDB 命令。您可以指定使用特定调试服务器提供商连接时要执行的命令。
调试服务器提供程序
使用 GDB 时,支持以下调试服务器提供程序:
ST-Link 和 J-Link 调试服务器提供程序可与uVision IDE 一起使用。
要使用调试服务器提供程序创建与裸机设备的连接,请转至首选项>Devices > 并选择 。 Bare Metal并选择Add 。
可用设置取决于调试服务器提供程序。
另请参阅 "添加工具包"、"启用和禁用插件 "和 "如何:为Bare Metal 开发"。
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.