linux mint 下stm32调试环境搭建记录(vscode stlink openocd)

参考:【已解决】Ubuntu安装vscode 打开界面空白_SUKI547的博客-CSDN博客_ubuntu安装vscode图标不显示

STM32高级开发(6)-makefile与调试器驱动_Foresights的博客-CSDN博客 

parallels下ubuntu更新导致重启死机,换成传说比ubuntu好用的mint,过程还算顺利。

1、parallels安装mint,更新mint软件源

2、安装vscode,启动时需要禁用gpu硬件加速

cd /usr/share/applications
sudo gedit code.desktop

[Desktop Entry]
Name=Visual Studio Code
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=/usr/share/code/code --disable-gpu --unity-launch %F
Icon=com.visualstudio.code
Type=Application
StartupNotify=false
StartupWMClass=Code
Categories=TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;application/x-code-workspace;
Actions=new-empty-window;
Keywords=vscode;

[Desktop Action new-empty-window]
Name=New Empty Window
Exec=/usr/share/code/code --disable-gpu --new-window %F
Icon=com.visualstudio.code

3、安装stlink

sudo apt-get install libusb-1.0.0-dev

sudo apt-get install cmake

git clone https://github.com/texane/stlink.git

cd ./stlink

make 

cd ./build/Release

sudo make install

4、安装openocd

sudo apt-get install libusb++-dev

sudo apt install libncurses5

./configure

make 

sudo make install

 5、安装arm-none-eabi-

6、安装stm32cubemx

可以调试了

        

你可能感兴趣的:(硬件,stm32,linux,stm32,linux)