ARM Watchdog timer not working

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
ninea_a
Posts: 1
Joined: Tue Dec 22, 2020 7:37 pm
Contact:

ARM Watchdog timer not working

Post 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?

Post Reply