Topic

FAQ
Login Register
ZigBee SDK - debugging End Device
Mar 11, 2024 12:58

/

A

/A

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?


2 replies
TL_Soyo Mar 11, 2024 15:03
0
/A

Hi,

  Can you capture the current to ensure that disabling sleep is effective.also click BDT sws button,check the response.

wes58 [Author] Mar 12, 2024 12:21
0
/A

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.