本帖最后由 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.
===================================================================================
|