捣腾很长时间了,用vscode编译、调试stm32F4系列mcu的程序。记录下。

launch.json @TOC
// AUTOMATICALLY GENERATED FILE. PLEASE DO NOT MODIFY IT MANUALLY

// PIO Unified Debugger
//
// Documentation: https://docs.platformio.org/page/plus/debugging.html
// Configuration: https://docs.platformio.org/page/projectconf/section_env_debug.html

{
“version”: “0.2.0”,
“configurations”: [
{
“cwd”: “workspaceRoot","executable":"C:/Users/hrstek/Documents/PlatformIO/Projects/stm405cubemxtest/.pio/build/genericSTM32F407VET6/firmware.elf","name":"DebugMicrocontroller","request":"launch","type":"cortex−debug","servertype":"jlink","serverpath":"C:/ProgramFiles(x86)/SEGGER/JLinkV634b/JLinkGDBServerCL.exe","device":"STM32F407VE","interface":"swd","serialNumber":"",//ifyouhavemorethanoneJ−Linkprobeaddtheserialnumberhere"svdFile":"D:Keilv5ARMPACKKeilSTM32F4xxDFP2.13.0CMSISSVDSTM32F40x.svd",//"jlinkscript":"{workspaceRoot}", "executable": "C:/Users/hrstek/Documents/PlatformIO/Projects/stm405cubemxtest/.pio/build/genericSTM32F407VET6/firmware.elf", "name": "Debug Microcontroller", "request": "launch", "type": "cortex-debug", "servertype": "jlink", "serverpath": "C:/Program Files (x86)/SEGGER/JLink_V634b/JLinkGDBServerCL.exe", "device": "STM32F407VE", "interface": "swd", "serialNumber": "", //if you have more than one J-Link probe add the serial number here "svdFile": "D:\\Keil_v5\\ARM\\PACK\\Keil\\STM32F4xx_DFP\\2.13.0\\CMSIS\\SVD\\STM32F40x.svd", //"jlinkscript":"workspaceRoot","executable":"C:/Users/hrstek/Documents/PlatformIO/Projects/stm405cubemxtest/.pio/build/genericSTM32F407VET6/firmware.elf","name":"DebugMicrocontroller","request":"launch","type":"cortex−debug","servertype":"jlink","serverpath":"C:/ProgramFiles(x86)/SEGGER/JLinkV​634b/JLinkGDBServerCL.exe","device":"STM32F407VE","interface":"swd","serialNumber":"",//ifyouhavemorethanoneJ−Linkprobeaddtheserialnumberhere"svdFile":"D:Keilv​5ARMPACKKeilSTM32F4xxD​FP2.13.0CMSISSVDSTM32F40x.svd",//"jlinkscript":"{workspaceRoot}/BSP/SEGGER/K66FN2M0_emPower/Setup/Kinetis_K66_Target.js”,
“runToMain”: true,
}// ,
// {
// “type”: “platformio-debug”,
// “request”: “launch”,
// “name”: “PIO Debug”,
// “executable”: “c:/Users/hrstek/Documents/PlatformIO/Projects/stm405cubemxtest/.pio/build/genericSTM32F407VET6/firmware.elf”,
// “toolchainBinDir”: “C:/Users/hrstek/.platformio/packages/toolchain-gccarmnoneeabi/bin”,
// “svdPath”: “C:/Users/hrstek/.platformio/platforms/ststm32/misc/svd/STM32F40x.svd”,
// “internalConsoleOptions”: “openOnSessionStart”
// }
]
}

setting.json
{
“remote.SSH.configFile”: “C:\Users\hrstek\.ssh\config”,
“remote.SSH.showLoginTerminal”: true,
“remote.SSH.defaultForwardedPorts”: [

],

“remote.SSH.path”: “C:\Program Files\OpenSSH”,
“remote.SSH.remotePlatform”: {
“Raspberry”: “linux”
},
“editor.suggestSelection”: “first”,
“vsintellicode.modify.editor.suggestSelection”: “automaticallyOverrodeDefaultValue”,
“cortex-debug.JLinkGDBServerPath”: “C:\Program Files (x86)\SEGGER\JLink_V634b”,
“cortex-debug.openocdPath”: “D:\OpenOCD-20200530-0.10.0\bin”,
“cortex-debug.armToolchainPath”: “D:\arm-none-eabi\bin”

/* "remote.SSH.remotePlatform": {"linux"
} */

// “code-runner.runInTerminal”: true,
// “code-runner.saveAllFilesBeforeRun”: true
}

vscode编译、调试stm32F4系列mcu的程序相关推荐

  1. Vscode编译调试C++程序

    一.简介 本文讲述在windows平台下在Vscode中使用g++编译本地C++程序,并使用gdb调试的方法.可能有些朋友会说:windows上不是已经有visual studio这个最强IDE了吗, ...

  2. 【转载】【VSCode】Windows下VSCode编译调试c/c++

    转载自:http://blog.csdn.net/c_duoduo/article/details/51615381 懒得自己配置或自己配置出现不明问题的朋友可以点这里:  [VSCode]Windo ...

  3. ubuntu中用vscode编译调试C\C++

    版权声明:本文为博主原创文章,未经博主允许不得转载. https://blog.csdn.net/q932104843/article/details/51924900 </div>< ...

  4. 【VSCode】Windows下VSCode编译调试c/c++【更新】

    版权声明:本文为博主原创文章,转载请注明出处. --------– 2017.06.10 更新--------- 便携版已更新,点此获取便携版 用于cpptools插件的配置文件更新 更新的launc ...

  5. vscode怎么写qt项目_使用VSCode 编译调试QT程序

    预备知识 bat文件,或者其他的脚本语法. qmake基本语法,qmake shadow build是啥. vscode 的task,lanch的配置. 前提 各个程序正确安装,即使用QtCreato ...

  6. VSCode编译调试复杂C/C++项目

    这里写自定义目录标题 一.前言 二.安装编译器 三.创建项目目录 四.Makefile 五.VSCode设置 5.1 tasks.json 5.2 launch.json 六.Go! 七.注意 八.参 ...

  7. Ubuntu下使用VSCode编译调试Betaflight飞控

    开源飞控交流:562983648 日期:2019.05.05 开发环境:ubuntu18.04 工具链:gcc-arm-none-eabi-7-2018-q2(7.3.1) 一.基础软件 vscode ...

  8. ARM-GCC环境搭建:适用STM32/GD32的编译调试总结

    本文重点参考了一位博主的文章,他的文章写的也是十分详细,推荐阅读. Win10配置 STM32/GD32 单片机 GCC+VScode 编译调试总结 2021版_秋阳 Cody的博客-CSDN博客_g ...

  9. 在Keil MDK中创建STM32F4系列的工程模板(标准外设库)

    在Keil MDK中创建STM32F4系列的工程模板(标准外设库) 一.前往ST官网下载标准外设库 二.根据个人风格创建文件夹目录 三.创建MDK工程,创建分组 四.添加系统启动必要源文件 五.添加头 ...

最新文章

  1. LVM-HOWTO/学习笔记(二)
  2. IT技术人生路之我的大学--我技术方向的转变
  3. [CF843D]Dynamic Shortest Path
  4. 使用反射代替不断添加的if-else来实现代码的可扩展性
  5. JavaScript常用方法(工具类的封装)
  6. A*算法在最短路问题的应用及其使用举例
  7. python 的csr_python的高级数组之稀疏矩阵
  8. asio 组播包ssdp
  9. python-打开网页
  10. [算法]海量数据问题之一
  11. [VMware] vSphere 5 安装手记[1]-VMware ESXi 5.0.0 安装基本设置
  12. js实现select动态添加option,默认为选中状态
  13. windows部署django项目
  14. 降维算法原理篇:主成分分析PCA、奇异值分解SVD、因子分析法FA、独立成分分析ICA等原理详推
  15. Docker镜像安装的一般步骤
  16. Mac 平台下功能强大的Shimo软件使用指南
  17. 微信小程序 编程小结(不定期更新)
  18. 【NOIP 2015】斗地主
  19. 02.微软官方启动U盘装机教程
  20. 3 、OpenCvSharp 图片转视频

热门文章

  1. 三维数据可视化软件html5,基于 HTML5 的 WebGL 自定义 3D 摄像头监控模型 | 3D组态|图扑软件|数据可视化|blog...
  2. Excel VLOOKUP() 函数实现自动填充内容
  3. 语音转换成文字要怎么做呢?
  4. Oracle greatest函数
  5. 自定义实现IOC与DI
  6. scala当中的文件操作、网络请求和隐式转换
  7. MySQL主从- slave跳过错误
  8. Nexus默认账号密码
  9. 柯西定理与留数定理的应用总结
  10. 计算机基础知识应用电子邮件,计算机基础知识及应用普及