CMSIS & STM32,如何开始?

问题描述

我想在 STM32 上使用 CMSIS 开始项目。网上冲浪,我找不到任何具体的教程。有些开始项目使用 SPL(ST 已停产)。我想要一个在 stm32cube 上学习 CMSIS 的资源。

如果有人帮助我,我会很高兴。

问候

解决方法

  1. 从 STMicro 购买 Discovery 或 Nucleo 开发板。
  2. 选择、下载并安装工具链,例如 Keil、IAR 或 STM32CubeIDE。
  3. 下载用于您的开发的 STM32Cube 库/示例软件包。 董事会从他们的网站。它包括 CMSIS。
  4. 让闪烁示例在您的开发板上运行。
  5. 然后探索其他示例。
,
  1. 下载并安装STM32Cube
  2. 为您的微型创建新的 STM32 立方体项目(我为 STM32F446RE Nucleo 创建了 enter image description here enter image description here 3.为项目命名并按下一步完成。 enter image description here
  3. 删除 HAL 驱动程序: enter image description here enter image description here enter image description here
  4. 打开 main.c 删除其内容。现在您可以开始编写 CMSIS 裸机代码了。 enter image description here
  5. 编译并开始调试(如果您使用开发板或有调试探针) enter image description here enter image description here

享受