雷竞技电竞平台对话半导体客户支持- 14585 user_on_system_powered https://support.dialog-semiconductor.com/resource-keywords/14585-useronsystempowered 在user_on_system_powered中,当代码运行时间超过2.5s时,14585挂起 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/14585-hang-when-code-running-longer-25s < div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”属性= " rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >亲爱的对话框中,< / p > < p > < / p > < p >基于我发展自己的项目DSPS演示,并在user_on_system_powered回调期间添加一些客户流程。

我发现一个问题,当烧下来的代码,如果任务运行超过2.5秒在这个回调,MCU将挂起,永远不会恢复。

但是当我通过J-link调试时,这个问题消失了。代码可以运行良好,只要我们设计。由调试模式和正常模式运行的代码有什么不同?

我试图在这个回调中把任务切成碎片并返回KEEP POWERED by every return。但当时间成本高达2.5秒左右时,它也会失败。

你能给我一些关于这个问题的答案吗?关于长时间成本任务的用户级设计,你还有什么想法吗?

Looking forward to your reply

Roeder

Device: 
2019年3月27日星期三15:22:37 +0000 罗德 297118年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/14585-hang-when-code-running-longer-25s#comments