Arm Community
Arm Community
  • Site
  • User
  • Site
  • Search
  • User
  • Groups
    • Research Collaboration and Enablement
    • DesignStart
    • Education Hub
    • Innovation
    • Open Source Software and Platforms
  • Forums
    • AI and ML forum
    • Architectures and Processors forum
    • Arm Development Platforms forum
    • Arm Development Studio forum
    • Arm Virtual Hardware forum
    • Automotive forum
    • Compilers and Libraries forum
    • Graphics, Gaming, and VR forum
    • High Performance Computing (HPC) forum
    • Infrastructure Solutions forum
    • Internet of Things (IoT) forum
    • Keil forum
    • Morello Forum
    • Operating Systems forum
    • SoC Design and Simulation forum
    • 中文社区论区
  • Blogs
    • AI and ML blog
    • Announcements
    • Architectures and Processors blog
    • Automotive blog
    • Graphics, Gaming, and VR blog
    • High Performance Computing (HPC) blog
    • Infrastructure Solutions blog
    • Innovation blog
    • Internet of Things (IoT) blog
    • Operating Systems blog
    • Research Articles
    • SoC Design and Simulation blog
    • Tools, Software and IDEs blog
    • 中文社区博客
  • Support
    • Arm Support Services
    • Documentation
    • Downloads
    • Training
    • Arm Approved program
    • Arm Design Reviews
  • Community Help
  • More
  • Cancel
中文社区
中文社区
中文社区博客 使用Visual Studio+VisualGDB+NUCLEO板载ST-Link开发调试STM32
  • Blogs
  • Forum
  • 视频和文件
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • Jump...
  • Cancel
  • New
中文社区 requires membership for participation - click to join
More blogs in 中文社区
  • ARM中国大学计划博客

  • Arm新闻

  • 中文mbed博客

  • 中文社区博客

  • 恩智浦汽车电子MCU讨论区博客

 

Tags
Actions
  • RSS
  • More
  • Cancel
Related blog posts
Related forum threads

使用Visual Studio+VisualGDB+NUCLEO板载ST-Link开发调试STM32

liposlt
liposlt
June 17, 2016
Less than one minute read time.

1.背景介绍:

在windows平台上进行STM32的开发我们一般选择的是Keil和IAR,因为容易上手官方也提供相应的例程直接可以打开下载调试。但是这些工具在界面和易用性方面总是不太友好,所以作为爱折腾一族,搭建一个简单易用自己的开发环境显得很有必要。

如图所以,NUCLEO开发板的推荐开发工具链还有GCC和mbed,今天要介绍的方法也是基于GCC编译器的。

IMG_20160617_164140.jpg

2.需要安装的软件:

首先我们要安装microsoft大名鼎鼎的开发工具Visual Studio简称VS下载地址:https://www.visualstudio.com/zh-cn/downloads/download-visual-studio-vs.aspx,版本没有限制最基础的社区版就可以。

下来在这个地址:http://visualgdb.com/download/ 下载visualGDB这个插件进行安装,同时下边也有系统需求和安装步骤,大家一步步照做就好了。

在这个地址:http://gnutoolchains.com/download/下载GCC交叉工具链进行安装,肯定选择最新的版本了。

3.工具都安装好了之后就可以好好的玩耍了,下来按照官方的教程进行操作就行,地址:http://visualgdb.com/tutorials/arm/st-link/有几个地方需要注意一下,往下看。

这里选择的是GCC编译器的安装地址,按照你的安装路径进行选择。

如图所示是器件的选择,按照自己的需要下载相应的,下载完成state栏会显示installed。

 。

根据自己的调试器进行选择,我这里测试用的是ST官方的NUCLEO L476RG开发板,所以选择ST-Link v2.1。

开发板插入电脑USB接口,点击test,出现如下图的提示,说明连接正常,可以进行烧写程序和调试。

一个点灯的程序,点击 本地windows调试器 就可以下载调试了,没有问题的话会看到开发板上边的用户指示灯以0.5s间隔闪烁。

4.现在编译环境就算搭建好了,大家就发挥自己的想象力吧。像关键字高亮,变量跳转查看,代码提示等等这些特性都是能加快我们的开发进度的。

ST官方提供的工具CubeMX可以很方便的进行管脚、时钟配置以及外设初始化,下来我们就可以按照这篇教程http://visualgdb.com/tutorials/arm/stm32/cube/把生成的文件导入到我们的工程中来。

在这个地址:http://visualgdb.com/tutorials/往下翻可以看到官方提供了很多关于STM32的帖子同时也有其他的开发平台的,大家要认真看噢。

总结:基于VS的一些相关特性,比如一个解决方案下可以建立好多个项目等我们可以很方便的进行项目开发,而且VisualGDB还支持好多的平台,这样项目之间就可以无缝切换了。帖子可能还有不足之处,欢迎大家来拍砖探讨。

Anonymous
中文社区博客
  • Arm A-Profile构架2022扩展

    Zenon Xiu (修志龙)
    Zenon Xiu (修志龙)
    原文:Arm A-Profile Architecture Developments 2022 - Architectures and Processors blog - Arm Community blogs - Arm Community  作者:Martin Weidmann翻译:修志龙(Zenon Xiu) 与arm构架授权和生态伙伴一起,arm持续演进其构架,开发新功能以满足现有和新市场的要求…
    • October 17, 2022
  • 深入理解 Arm A-profile的non-maskable interrupt -NMI

    Zenon Xiu (修志龙)
    Zenon Xiu (修志龙)
    原文: https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/a-profile-non-maskable-interrupts  翻译: 修志龙 Zenon Xiu Arm A-profile构架一个长久以来的局限性是:缺乏对non-maskable interrupt (NMI…
    • August 24, 2022
  • Arm A-Profile 构架2021扩展

    Zenon Xiu (修志龙)
    Zenon Xiu (修志龙)
    原文: https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/arm-a-profile-architecture-developments-2021 Martin Weidmann September 8, 2021 翻译注释:Zenon Xiu Arm与arm构架授权公司及生态伙伴一起…
    • August 17, 2022