硬汉嵌入式论坛

 找回密码
 立即注册
查看: 692|回复: 7
收起左侧

[VS Code] Vscode配合STM32CUBEMX 6.11,利用STM32 VSOCE插件开发,美滋滋

[复制链接]

2

主题

10

回帖

16

积分

新手上路

积分
16
发表于 2024-4-28 10:43:09 | 显示全部楼层 |阅读模式
stm32-vscode-extension 2.0.1发布了,CUBEMX 6.11可以生成CMAKE工程,使用VSCODE 开发调试,确实美滋滋,使用了一个星期了,好用。
回复

使用道具 举报

59

主题

288

回帖

465

积分

高级会员

积分
465
发表于 2024-4-28 12:33:03 | 显示全部楼层
能否配几张图?谢谢
回复

使用道具 举报

3

主题

125

回帖

134

积分

初级会员

积分
134
发表于 2024-4-28 13:04:45 | 显示全部楼层
cubemx很早就可以生成makefile了吧,现在支持cmake了?
回复

使用道具 举报

0

主题

1

回帖

1

积分

新手上路

积分
1
发表于 2024-4-28 13:40:13 | 显示全部楼层
图呢,没图没真相啊
回复

使用道具 举报

13

主题

192

回帖

231

积分

高级会员

积分
231
发表于 2024-4-28 14:52:34 | 显示全部楼层
是吗?我去试试
回复

使用道具 举报

13

主题

192

回帖

231

积分

高级会员

积分
231
发表于 2024-4-29 11:16:18 | 显示全部楼层
试完了,安装个STM32 VS Code Extension后,还安装了ninja,arm-none-eabi编译工具,这个工具的版本gcc-arm-10.3-2021.07-mingw-w64-i686-arm-none-eabi编译不了H7版本的,会报错,在这里卡了很久。
后来试了CubeIDE里面的12.3版本,是可以编译的,然后装了个最新的13.2,明显编译速度比12.3要慢,不知道什么原因。总体来说,debug应该没问题,如果生产的话,应该还需要配置,没有具体继续研究。
不过已经很棒了,我一直就想用cmake开发来着,cmake很方便。
回复

使用道具 举报

2

主题

10

回帖

16

积分

新手上路

积分
16
 楼主| 发表于 2024-4-29 17:51:51 | 显示全部楼层
zhang0352505 发表于 2024-4-29 11:16
试完了,安装个STM32 VS Code Extension后,还安装了ninja,arm-none-eabi编译工具,这个工具的版本gcc-arm ...

首先去试了,那还是不错的。但是你需要看一下STM32 VS Code Extension的说明。
Prerequisites
STM32CubeCLT v1.15.0 : STM32CubeCLT is a package containing toolchain and STM32 device related data required for project creation, build, and debug functionality.
To have all features available, you also need to install the following:

STM32CubeMX v6.11.0 : STM32CubeMX simplifies the configuration of STM32 microcontrollers and generates the corresponding initialization C code. Starting from v6.11.0, STM32CubeMX can generate VSCode-compatible CMake projects, eliminating the need for .cproject/.project conversion in CubeIDE.

ST-MCU-FINDER : ST-MCU-FINDER-PC connects to and explores the full range of STM32 and STM8 microcontrollers, processors, dev boards, and examples.

Libncurses : Ncurses is a tool that helps programmers create text-based user interfaces that work on different types of computers. It is mandatory to install this requirement when using Linux.


安装STM32CubeCLT v1.15.0、STM32CubeMX v6.11.0,后环境自动搭建不需要自己去安装什么编译器啥的。
回复

使用道具 举报

3

主题

1227

回帖

1236

积分

至尊会员

积分
1236
发表于 6 天前 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-5-14 02:43 , Processed in 0.167707 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表