Skip to content

" cubemx + cmake + vscode + openocd + cortex-debug = nb_arm_toolchain "

Notifications You must be signed in to change notification settings

Specific-Cola/stm32f4_template

Repository files navigation

This is a template project

How to flash and debug via vscode cortex-debug extension

下载一定记得加上--recursive参数,否则不会下载子模块

git clone --recursive https://github.com/IRobot-EC-2024/stm32f4_template.git

相关文件都在 ./openocd/ 下面

  • 首先要有openocd工具,可以从官网下载安装。还要有cortex debug插件。
  • 主要有三个target可以使用:cmake .. make后可以使用
  1. make download flash to stm32
  2. make reset reset stm32
  3. make erase erase stm32
  • 自动生成了 launsh.json 文件,可以直接在vscode的调试中使用。

About

" cubemx + cmake + vscode + openocd + cortex-debug = nb_arm_toolchain "

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages