View: 6858|Reply: 5

Watchdog

[Copy link]

10

Threads

27

Replies

360

Credits

Credits
360
Posted on 2025-2-4 23:54:53 | Show all posts |Reading mode From 俄罗斯
information
Notes:   建议参照本版块置顶帖内容输入必要信息
Chip model: TLSR8258F1
SDK & version: V3.7.1.2(PR)
Hello.


How to find where the program freezes and reboot from watchdog?



Thanks.

10

Threads

27

Replies

360

Credits

Credits
360
 Author| Posted on 2025-2-13 00:25:37 | Show all posts From 俄罗斯
No solution?

30

Threads

374

Replies

1196

Credits

Credits
1196
Posted on 2025-2-14 13:48:34 | Show all posts From 上海
Hi,
You can use register DEEP_ANA_REG10 to implement it.
The description of registers can refer to the pm.h header file.
  1. /**
  2. * @brief these analog register can store data in deepsleep mode or deepsleep with SRAM retention mode.
  3. *               Reset these analog registers by watchdog, chip reset, RESET Pin, power cycle
  4. */
  5. #define DEEP_ANA_REG6                       0x35 //initial value =0x20
  6. #define DEEP_ANA_REG7                       0x36 //initial value =0x00
  7. #define DEEP_ANA_REG8                       0x37 //initial value =0x00
  8. #define DEEP_ANA_REG9                       0x38 //initial value =0x00
  9. #define DEEP_ANA_REG10                      0x39 //initial value =0xff
Copy code

10

Threads

27

Replies

360

Credits

Credits
360
 Author| Posted on 2025-2-15 03:24:24 | Show all posts From 俄罗斯
Hello.

How does this help us understand where the program crashed?

30

Threads

374

Replies

1196

Credits

Credits
1196
Posted on 2025-2-18 10:58:02 | Show all posts From 上海
For example, when your system is running normally, you can write a value to register DEEP_ANA_REG10.
  1. analog_write(DEEP_ANA_REG10, VALUE)
Copy code

When the system restarts, check if the expected value written in register DEEP_ANA_REG10 is correct.
If not, it indicates that the watchdog restart has been triggered.

10

Threads

27

Replies

360

Credits

Credits
360
 Author| Posted on 2025-3-15 23:12:50 | Show all posts From 俄罗斯
Hello.

Doesn't work without PM?

I write 0x65 to the register, but after reboot it always returns 0xFF.

Credit rules for this forum

Follow our WeChat
Privacy Policy|Telink Developer Community

For copyright infringement reports, complaints or suggestions, please email forum@telink-semi.com

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

inThis forumPostBack to top