stm32cubeide烧写程序_2. 基于STM32CubeIDE搭建开发环境 --- 建立工程

准备工作

根据自己PC的操作系统预先下载并安装好 STM32CubeIDE 和 STM32CubeProg 工具.

下载链接:

新建工程

step1. 新建工程 File >>> New >>> STM32 Project

新建工程

step2. 使用搜索功能快速找到mcu型号

STM32F103RC

step3. 设置工程名, 也可以选择工程的保存位置, 以及配置工程选项

设置工程名

step4. 配置STM32资源

工程创建结束后进入到可视化配置界面, 如下图:

可视化配置界面

启用SW调试接口, 这一步很关键, 没有启用将导致STM32无法下载程序

启用SW调试接口

启用外部时钟源

启用外部晶振

配置时钟树

时钟树

CTRL+S, 保存工程, 至此工程就建立好了.

点灯程序

工程建立好, 写个最简单的点灯 demo 程序, 验证下编译和烧写的步骤. 这里使用 STM32F103RC 最小系统板进行验证.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
d:\stm32dev\stm32cubeide_1.12.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: ./Core/Src/main.o: in function `main': main.c:(.text.startup.main+0x16): undefined reference to `TMC2660_DirectSet' d:\stm32dev\stm32cubeide_1.12.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: main.c:(.text.startup.main+0x1e): undefined reference to `TMC2660Enable' d:\stm32dev\stm32cubeide_1.12.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: main.c:(.text.startup.main+0x26): undefined reference to `TMC2660_MicrostepSet' d:\stm32dev\stm32cubeide_1.12.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: main.c:(.text.startup.main+0x2e): undefined reference to `TMC2660_CurrentScaleSet' d:\stm32dev\stm32cubeide_1.12.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: main.c:(.text.startup.main+0x34): undefined reference to `TMC2660_SPIMoveStep' collect2.exe: error: ld returned 1 exit status make: *** [makefile:64: TMC2660_tset.elf] Error 1 "make -j32 all" terminated with exit code 2. Build might be incomplete.
07-13

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值