Giter Site home page Giter Site logo

使用RT-Studio生产的STM32F407VE工程运行一段时间后自动停止, update -> 发现是串口无法持续输出 about rt-thread HOT 11 CLOSED

CN-CaoJun avatar CN-CaoJun commented on May 24, 2024
使用RT-Studio生产的STM32F407VE工程运行一段时间后自动停止, update -> 发现是串口无法持续输出

from rt-thread.

Comments (11)

chnykn avatar chnykn commented on May 24, 2024 1

正好 我这里有一个STM32F407VE,工具及配置与你的完全一样。试了一下,并不会出错。 没有任何特殊的设置,除了我用的ST-Link;貌似 你用的DAP-Link。理论上,应该不是这个原因。
1

麻烦您这边多跑一段时间看看,thx。

图我就不贴了,刚刚连续跑了一个多小时,不会出错!
RT-Thread 5.0.2,针对F407VE的默认项目,没有特殊配置。

from rt-thread.

chnykn avatar chnykn commented on May 24, 2024

正好 我这里有一个STM32F407VE,工具及配置与你的完全一样。试了一下,并不会出错。
没有任何特殊的设置,除了我用的ST-Link;貌似 你用的DAP-Link。理论上,应该不是这个原因。

1

from rt-thread.

Rbb666 avatar Rbb666 commented on May 24, 2024

可以debug看看,在卡死的时候停止调试看看停在哪里,再看看为什么不切换到目标线程

from rt-thread.

CN-CaoJun avatar CN-CaoJun commented on May 24, 2024

感谢各位,有时间了再试下我再来更新

from rt-thread.

CN-CaoJun avatar CN-CaoJun commented on May 24, 2024

这个问题在我这边是必现的,当前出现的情况是:306个tick之后就没有打印了,在调试界面暂停的时候,发现任务就在IDLE task里面。
image
image

from rt-thread.

CN-CaoJun avatar CN-CaoJun commented on May 24, 2024

正好 我这里有一个STM32F407VE,工具及配置与你的完全一样。试了一下,并不会出错。 没有任何特殊的设置,除了我用的ST-Link;貌似 你用的DAP-Link。理论上,应该不是这个原因。

1

麻烦您这边多跑一段时间看看,thx。

from rt-thread.

CN-CaoJun avatar CN-CaoJun commented on May 24, 2024

可以debug看看,在卡死的时候停止调试看看停在哪里,再看看为什么不切换到目标线程

还在学习RTTHREAD中,希望我能弄清楚一下为啥切不了目标线程

from rt-thread.

CN-CaoJun avatar CN-CaoJun commented on May 24, 2024

Update:
今天工作之余再调试了下,
在debug模式下跑:
跑一段时间之后,调试器自己会在idle里面停一下, 然后run可以继续跑下去,但是需要串口监控软件重置下才能打印出接下来的log。
image

在正常模式下跑:
跑一段时间后串口没有输出,重置串口后可以看到接下来的打印。使用的串口软件是ScureCRT

因此我认为可以把这个问题的描述调整成:
使用RT-Studio生产的STM32F407VE工程运行一段时间后串口无法输出,但是重置串口软件后可以看到后续的输出。

我认为这对我也是值得研究的,因为同样的环境在监控其他软件的串口输出时并没有出现类似的情况,接下来看下是什么打断了串口的输出。

from rt-thread.

Rbb666 avatar Rbb666 commented on May 24, 2024

Update: 今天工作之余再调试了下, 在debug模式下跑: 跑一段时间之后,调试器自己会在idle里面停一下, 然后run可以继续跑下去,但是需要串口监控软件重置下才能打印出接下来的log。 image

在正常模式下跑: 跑一段时间后串口没有输出,重置串口后可以看到接下来的打印。使用的串口软件是ScureCRT

因此我认为可以把这个问题的描述调整成: 使用RT-Studio生产的STM32F407VE工程运行一段时间后串口无法输出,但是重置串口软件后可以看到后续的输出。

我认为这对我也是值得研究的,因为同样的环境在监控其他软件的串口输出时并没有出现类似的情况,接下来看下是什么打断了串口的输出。

换个串口助手试试呢?比如我使用的是mobaxterm

from rt-thread.

CN-CaoJun avatar CN-CaoJun commented on May 24, 2024

Update: 今天工作之余再调试了下, 在debug模式下跑: 跑一段时间之后,调试器自己会在idle里面停一下, 然后run可以继续跑下去,但是需要串口监控软件重置下才能打印出接下来的log。 image
在正常模式下跑: 跑一段时间后串口没有输出,重置串口后可以看到接下来的打印。使用的串口软件是ScureCRT
因此我认为可以把这个问题的描述调整成: 使用RT-Studio生产的STM32F407VE工程运行一段时间后串口无法输出,但是重置串口软件后可以看到后续的输出。
我认为这对我也是值得研究的,因为同样的环境在监控其他软件的串口输出时并没有出现类似的情况,接下来看下是什么打断了串口的输出。

换个串口助手试试呢?比如我使用的是mobaxterm

Mobaxterm也是同样的情况,这个现象非常奇妙,😂

from rt-thread.

CN-CaoJun avatar CN-CaoJun commented on May 24, 2024

换了开发的电脑和串口之后,发现问题不再复现😂,感谢支持!

from rt-thread.

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.