← index #2635Issue #1308
Off-topic · high · value 0.264
QUERY · ISSUE

stmhal: WDT hangs after programming

openby dhylandsopened 2016-11-14updated 2024-08-28
bugport-stm32

I discovered an interesting quirk related to the IWDG.

If I program my pyboard using pydfu, then trying this in the REPL immediately afterwards hangs:

>>> wdt = machine.WDT(0, 5000)

By hangs, I mean it never returns the REPL. I added some debug prints and it seems to stuck in the IWDG->SR & 1 loop and the value of SR is 3.

If I hit the RESET button, then the wdt = machine.WDT(0, 5000) works exactly as expected.

CANDIDATE · ISSUE

cc3200: The cc3200 chip crashes when I use the finger touch crystal Y3 on LAUNCHXL-board

closedby garyatptopened 2015-06-05updated 2016-12-02

When I use the finger touch crystal Y3 on LAUNCHXL-board, the cc3200 crashes and the computer REPL screen freezes, the heartbeat-light no longer flash.
Even though I have enabled WDT, the situation is still the same.
If WDT have effect, the board should be reset. Right?

TEST CODE:

import pyb
my_wdt=pyb.WDT(5000)
i=0
while 1:
....my_wdt.kick()
....i+=1
....print(i)
....
1
2
3
.
.
131383
131384
^^^
Touching the crystal Y3, cc3200 crashes and computer REPL screen freezes.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied