STM32CubeMxIDE+ Eclipse 编译下载配置

嵌入式开发环境

参考博客

安装java环境

https://www.java.com/zh-CN/download/
在这里插入图片描述

STM32 软件下载

https://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-configurators-and-code-generators/stm32cubemx.html

在这里插入图片描述

STM32CubeIDE

https://www.st.com/zh/development-tools/stm32cubeide.html

在这里插入图片描述

MDK下载安装

https://www.keil.com/

MDK库更新

https://www.keil.com/dd2/Pack/#/eula-container

eclipse编译环境配置

https://eclipse-embed-cdt.github.io/

在这里插入图片描述

//环境变量中,填写这些
C:\ST\STM32CubeIDE_1.4.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.4.0.202007081208\tools\bin;
C:\ST\STM32CubeIDE_1.4.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.make.win32_1.4.0.202007081208\tools\bin;
C:\ST\STM32CubeIDE_1.4.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.make.win32_1.4.0.202007081208\tools\bin;
C:\ST\STM32CubeIDE_1.4.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.ide_1.4.0.202007081208\resources\project_importer\windows;
C:\ST\STM32CubeIDE_1.4.0\STM32CubeIDE\jre\bin;C:\ST\STM32CubeIDE_1.4.0\STM32CubeIDE\jre\lib;

STM32 ST-LINK Utility

https://www.st.com/zh/development-tools/stsw-link004.html
在这里插入图片描述

下载到开发板配置

Run->External Tools -> External Tool Configurations (打开)

 "C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility\ST-LINK_CLI.exe" -P C:\STM32CubeMx_workspace\test\test.hex -V -Rst

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述

Variable references empty selection: ${project_loc}的解决办法

在navigator或package explorer中先选中工程,然后再clean

编译

10:33:15 **** Incremental Build of configuration Default for test ****
make all 
Linking test
Generating bin file
   text	   data	    bss	    dec	    hex	filename
 665812	   2928	20333360	21002100	1407774	C:/STM32CubeMx_workspace/test/test.elf
Generating list file

10:33:20 Build Finished. 0 errors, 0 warnings. (took 5s.389ms)
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值