【发布时间】:2018-01-19 15:24:45
【问题描述】:
如果有人解释如何使用 Ubuntu 平台在 eclips 中使用 .c++ 和 .h 文件来编译它并获得 .elf、.hex 和 .bin 文件,我将非常感激。 我有一些来自 mbed STM32f4 板的文件。 请指导我 谢谢
【问题讨论】:
标签: linux eclipse stm32f4discovery mbed
如果有人解释如何使用 Ubuntu 平台在 eclips 中使用 .c++ 和 .h 文件来编译它并获得 .elf、.hex 和 .bin 文件,我将非常感激。 我有一些来自 mbed STM32f4 板的文件。 请指导我 谢谢
【问题讨论】:
标签: linux eclipse stm32f4discovery mbed
两种选择:
通过mbed CLI 构建。安装后在 Eclipse 中将构建命令设置为:
mbed compile -m YOUR_BOARD -t GCC_ARM --profile ./mbed-os/tools/profiles/debug.json
通过 Makefile 构建。在 mbed Online Compiler 中右键单击您的项目,选择 Export > Eclipse (GCC ARM)。这将为您提供一个带有 makefile 的 Eclipse 项目。
【讨论】: