Hi,
It is based from the one contributed by z80 a while ago. It is very simple, use is trivial.
So far I tested it on an STM32F3 and it works. I need to update all other platforms.
Giovanni
[INFO] Watchdog driver added
- Giovanni
- Site Admin
- Posts: 14891
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: [INFO] Watchdog driver added
I use the driver for STM32F407. He began to work only when I comment out the line:
// while (wdgp-> wdg-> SR! = 0)
//;
// while (wdgp-> wdg-> SR! = 0)
//;
- Giovanni
- Site Admin
- Posts: 14891
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
- Giovanni
- Site Admin
- Posts: 14891
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: [INFO] Watchdog driver added
Hi,
Fixed by moving the loop before the assignments (according to the RM). Added a demo for the F4 too.
Giovanni
Fixed by moving the loop before the assignments (according to the RM). Added a demo for the F4 too.
Giovanni
Re: [INFO] Watchdog driver added
Works fine on the F4; however just a little tip when debugging.
Make sure you set a breakpoint within chSysHalt(). Otherwise the watchdog resets the processor, and you can't see why you got to chSysHalt()......
Make sure you set a breakpoint within chSysHalt(). Otherwise the watchdog resets the processor, and you can't see why you got to chSysHalt()......
- Giovanni
- Site Admin
- Posts: 14891
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: [INFO] Watchdog driver added
It should also be possible to halt the WDG while debugging.
Giovanni
Giovanni