ARM 工具链

Toolchains for ARM

“GNU MCU Eclipse ARM”有什么不同 嵌入式 GCC”和 "GNU ARM Embedded toolchain"?我是 Linux 世界的新手,我需要对 STM32F4DISCOVERY 板进行编程。我不明白需要什么工具链。

GNU MCU Eclipse ARM Embedded GCC是基于GNU ARM Embedded toolchain。来自 README:

Compared to the ARM distribution, the build procedure is more or less the same and there should be no functional differences.

The only addition affects newlib, which was extended with printf()/scanf() support for long long and C99 formats (--enable-newlib-io-long-long and --enable-newlib-io-c99-formats).

用于创建 GNU MCU Eclipse ARM Embedded GCC 版本的 Docker 图像也可以在项目页面上找到,如果您需要它(可能不需要)。

您可以将它们中的任何一个与 GNU MCU Eclipse 套件的其余部分一起安装。

如果您对开始使用工具链感到好奇,我会看一看这篇文章。它来自 Nordic,而不是 ST Micro,但它对理解工具链、makefile 和 IDE 如何协同工作非常有帮助。

https://devzone.nordicsemi.com/tutorials/b/getting-started/posts/development-with-gcc-and-eclipse

我相信对您的问题的简短回答是:

  • GNU MCU Eclipse ARM Embedded GCC 是 Eclipse IDE 的扩展系列,用于为 ARM 设备开发代码
  • GNU ARM Embedded 工具链来自 ARM,它纯粹是编译器、链接器等,需要进行命令行调用来编译 C 文件并为 ARM 处理器生成二进制文件

如果你只是想在你的 STM32 上做一些事情,我会看看他们是否有一个 IDE 用于你的板/应用程序,因为它们通常与工具链预先捆绑在一起和一个 SDK。