Giter Club home page Giter Club logo

Comments (4)

peng-zhihui avatar peng-zhihui commented on June 30, 2024 3

main函数最开始加一句RCC_DeInit()就行了,跟DAP没关系,时钟初始化的问题。

from dummy-robot.

sytnocui avatar sytnocui commented on June 30, 2024

LJ)WR}`F8_I)W3O$%(BXIL1
如图所示,会跳进这里,然后卡死

from dummy-robot.

sytnocui avatar sytnocui commented on June 30, 2024

main函数最开始加一句RCC_DeInit()就行了,跟DAP没关系,时钟初始化的问题。

果然可以了,谢谢大佬orz。
另外我也尝试了在stm32cubeide里进行调试,这个调试方式是stlink gdb server,就是什么都不用加就是好使的。我尝试配了一个 clion+gdb+jlink 的debug环境,也是什么都不加就好使。
总结一下就是跟GDB沾边的都是能用的,但用openocd就得加“RCC_DeInit()”这句话。可否再麻烦问一下出现这种情况的详细原因?是和openocd有关系吗?

tip:如果有路人看到了可以参考这篇文章:CLion配置STM32开发环境(JLink GDB Server)

from dummy-robot.

acctZCW avatar acctZCW commented on June 30, 2024

终于找到这个问题的答案了,我也被这个困扰了一下午,下载完全正常,但就是调试的时候过不去,一开始还以为是板载的DAP有问题。

不过小白想问一句:为什么用OpenOCD的时候就必须用DeInit呢?

from dummy-robot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.