|
查看: 3988|回复: 0

[reprinted]ZigBee SDK - debugging End Device

[复制链接]

29

主题

364

回帖

1167

积分

版主

积分
1167
发表于 2024-8-22 19:56:13 | 显示全部楼层 |阅读模式 来自 上海
本帖最后由 TL_YB 于 2024-8-23 14:51 编辑

[Transferred from old forum] Author: wes58

I have a device (TLSR8258) which is an End Device with PM enabled (#define PM_ENABLE1)
Is it possible to debug this device with BDT?
When I try to do it I get:
- when clicking on "Pause" button in BDT I get
pause mcu, pc : 0x000002
- when clicking on "PC"button I get
pc : 0x000000
- when I try to read variables I get
[88]: read memory err!
This is obviously because when I click on the button, the device is in sleep mode.

I there a way to debug such a device?

I also tried to disable PM (#define PM_ENABLE 0), clean the project, re-build and flash the device but the device still behaves like it is with PM enabled - I get the same results when pausing, reading variables as described above.
I don't want to erase the device which would probably fix it, but then I would have to pair it with the gateway again.
I would like to avoid it.

Why would this be happening?

===================================================================================

I found the reason why I couldn't debug the device and I thought that the device was still in sleep mode after I disabled PM.
The reason was that I had configured the SWS pin as GPIO input which disabled SWS.

===================================================================================

本版积分规则

关注公众号
隐私政策|Telink forum

相关侵权、举报、投诉及建议等,请发 E-mail:forum@telink-semi.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.|沪ICP备17008231号-1 |沪公网安备31011502403548号

在本版发帖返回顶部
公告×