Watchdog hang pic32mx460f512l

General discussion on mikroC PRO for PIC32.
Post Reply
Author
Message
engahmed
Posts: 92
Joined: 14 May 2013 19:13

Watchdog hang pic32mx460f512l

#1 Post by engahmed » 30 Nov 2023 12:51

- I Turn on Watchdog Timer in Edit Project window.
- Set Watchdog TImer Postcaler to 1:1024 (1024 ms)


void main() {
AD1PCFG = 0xFFFF; // Configure AN pins as digital
TRISD = 0; // Configure PORTD as output
LATD = 0x0000; // Initialize PORTD
Delay_ms(300); // Wait 0.3 seconds
LATD = 0xFFFF; // Change PORTD :: value

while (1) // Endless loop, WatchDog_Timer will reset PIC32
;
} :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops:


After watchdog kick out 1024 s the pic32 is hang out and dont reset it just hang

need help

User avatar
IvanJeremic
mikroElektronika team
Posts: 316
Joined: 05 Sep 2022 14:32

Re: Watchdog hang pic32mx460f512l

#2 Post by IvanJeremic » 01 Dec 2023 12:16

Hi,

Are you using the Clock scheme from our watchdog timer example for that MCU?

Regards,

Ivan.

Post Reply

Return to “mikroC PRO for PIC32 General”