Page 1 of 1

ARM Watchdog timer not working

Posted: Tue Dec 22, 2020 7:52 pm
by ninea_a
I am using Flowcode 8, I while I use AT91SAM7S64 I have a problem, no matter if I write c code or ASSEMBLER code part in the program it doesn't work while it is working when I write watchdog timer code for Atmega microcontrollers, I need help.

here is codes that I try for AT91SAM7S64 :
"
AT91C_BASE_WDTC->WDTC_WDMR = ((FCV_TIME*256) << 16)
| AT91C_WDTC_WDRSTEN
| (FCV_TIME *256);
AT91C_BASE_WDTC -> WDTC_WDCR = (0xA5 << 24) | AT91C_WDTC_WDRSTT;
"

OR

"
AT91C_BASE_WDTC -> WDTC_WDCR ==0xA5000001;
AT91C_BASE_WDTC->WDTC_WDMR ==0x00AFA0FF;

"

what should I do?