完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,
我可以通过ST-Link Utility或Atollic GDB与BlueNRG-2进行通信。 不幸的是,当我开始定期使用DTM固件时,这些工具会失去通信。这是什么原因? 它是由BlueNRG进入睡眠模式引起的吗?我该如何解决这个问题? 使用debuger对于查找错误至关重要。 亲切的问候, Piotr Romaniuk 以上来自于谷歌翻译 以下为原文 Hi, I am able to communicate with BlueNRG-2 either by ST-Link Utility or by Atollic GDB. Unfortunatelly, when I start regular work of DTM firmware, these tools lose communication.What is the reason of that? Is it caused by going the BlueNRG into sleep mode?How can I solve this problem? Having debuger is crucial for bug finding. Kind regards, Piotr Romaniuk |
|
相关推荐
6个回答
|
|
如果接口引脚关闭或内部逻辑关闭,您将失去连接。调试时可能有助于设置DBGMCU位,并阻止代码进入某些低功耗和睡眠模式。 WFI的行为也可以定义为在等待下一个中断时关闭。
有很多方法可以调试,除了需要单步执行一切以查看它是如何工作的,考虑使用USART输出状态和遥测,转储寄存器,这样你就可以看到系统在没有连接调试器的情况下的行为(它们通常是系统如何遍历电源状态,重置等以及代码如何流动并与事物交互。 以上来自于谷歌翻译 以下为原文 If the interface pins turn off or the internal logic shuts down you will lose connectivity. When debugging it might help to set DBGMCU bits, and stop the code from going into some of the low power and sleep modes. The behaviour of WFI can also be defined to turn things off when waiting for the next interrupt. There are many ways to debug things, beyond the need to single step everything to see how it works, consider using a USART to output state and telemetry, dump registers, so you can see how the system behaves without a debugger attached (they are often invasive) and how the system traverses power states, resets, etc and how your code flows and interacts with things. |
|
|
|
我宁愿期望即使CPU处于WFI状态,ARM Cortex的Debug Cell仍然可以被控制。
[更新]:请参阅Cortex-M0文档中的说明。 问候, 彼得· 以上来自于谷歌翻译 以下为原文 I rather expected that Debug Cell of ARM Cortex can be still controlled even if CPU is in WFI state. [updated]: See description from Cortex-M0 documentation. Regards, Piotr |
|
|
|
在某些情况下,它不能,这就是重点。
以上来自于谷歌翻译 以下为原文 There are situations where it can't and that was the point. |
|
|
|
你好
Piotr Romaniuk, 是的,这是因为当BlueNRG-2进入睡眠或待机状态时,调试端口未通电。 有一种解决方法,如数据表3.21.1调试提示中所述 http://www.st.com/resource/en/datasheet/bluenrg-2.pdf 在某些情况下,禁用调试访问并且无法访问芯片,包括: •禁用调试引脚的应用程序 •将设备设置为睡眠或待机状态的应用程序,其中调试端口未通电。 这些情况在应用程序开发期间很常见,并且设备最终可能处于调试访问状态 不再可能。要恢复这种情况,建议强制IO7引脚高电平并硬件复位 设备,以强制执行更新程序代码(参见第3.23节预编程的引导程序)。用户 然后可以连接SWD接口并擦除器件闪存。 最好的祝福, 温弗雷德 以上来自于谷歌翻译 以下为原文 Hi Piotr Romaniuk, Yes, it is because when BlueNRG-2 entering sleep or standby state, the debug port is not powered. There is a workaround for this, as described in datasheet 3.21.1 Debugging tips http://www.st.com/resource/en/datasheet/bluenrg-2.pdf There are certain situations where debug access is disabled and the chip cannot be accessed, including: • application that disables debug pins • application that set the device in sleep or standby state, in which the debug port is not powered. These cases are common during application development and device can end up in a state where debug access is no longer possible. To recover this situation, it is recommended to force IO7 pin high and hardware reset the device in order to force execution of the updater code (see Section 3.23 Pre-programmed bootloader). The user can then connect with SWD interface and erase the device Flash memory. Best Regards, Winfred |
|
|
|
>> [更新]:请参阅Cortex-M0文档中的说明。
好吧,但是你在体验它不工作,这些都是复杂的设备,并以一些子弹点无法充分捕捉的方式与自己互动。 您要么停止执行某些操作,以便可以按照自己的方式进行调试,或者需要更改调试方式以适应设备的行为。 有时,观察行为会改变测试/实验的结果。 以上来自于谷歌翻译 以下为原文 >>[updated]: See description from Cortex-M0 documentation. Ok, but you're physically experiencing it NOT WORKING, these are complicated devices and interact with themselves in ways that a few bullet-points doesn't adequately capture. You've either got to stop doing certain things so you can debug in the way you want, or you need to change the way you debug to accommodate the behaviour of the device. Some times the act of observation alters the outcome of a test/experiment. |
|
|
|
嗨克莱夫,
我希望ST-Link设备可能是一个原因。调试器看起来不太专业,并且在工作时出现问题。我想确定是否存在硬件障碍。 我需要一个debuger来检查处理器状态,并尽可能地进行非侵入性操作。我认为通过调试端口与处理器的连接将是这样的方法。醒来时我只是非常卑鄙的问题( https://community.st.com/0D50X00009Xkht1SAB )。 当你提到我时,我会广泛使用其他调试方法。感谢你的评论。 问候, 彼得· 注意:原始帖子包含大量线程对话,只能迁移到第9级 以上来自于谷歌翻译 以下为原文 Hi Clive, I hoped that ST-Link device may be a reason. The debugger does not look very professional and has issues while is working. I wanted to be sure that there is or not hardware obstacle. I needed a debuger for checking processor state, and doing that as non-invasive as is it possible. I thought that connection to processor by debug port would be such method. I just have very mean issue with waking up ( https://community.st.com/0D50X00009Xkht1SAB ). I use extensively other methods of debugging as you mention.Thank you for your comments. Regards, Piotr Note: the original post contained a large number of threaded conversations and was only able to be migrated to the 9th level |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2738 浏览 1 评论
3241 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1810 浏览 1 评论
3650 浏览 6 评论
6039 浏览 21 评论
1339浏览 4评论
201浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
353浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
444浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
274浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-25 02:28 , Processed in 1.253188 second(s), Total 88, Slave 72 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号