PIC32 hangs while executing interrupts with ethernet

General discussion on mikroC PRO for PIC32.
Post Reply
Author
Message
rojinroy
Posts: 1
Joined: 03 Feb 2023 12:55

PIC32 hangs while executing interrupts with ethernet

#1 Post by rojinroy » 19 Dec 2023 15:52

We are using PIC32MX795F512L microcontroller with ethernet library.
We have enabled external interrupts and the interrupt will be triggered every 10 seconds.
We have enabled a timer interrupt every 100usec and it has the highest priority of 7 and sub priority of 3.
We are responding to TCP request in the Ethernet_UserTCP function.
The code is working fine while we use INT3 interrupt.
While using INT0 and INT1 interrupts, the microcontroller hangs after 1 to 4 hours.
Even the timer interrupt is not getting executed.

iingberate
Posts: 1
Joined: 23 Jan 2024 02:45

Re: PIC32 hangs while executing interrupts with ethernet

#2 Post by iingberate » 23 Jan 2024 02:46

Hi rojinroy!
Did you check Interrupt Priority and Subpriority again?
Firstly, ensure that the interrupt priority and subpriority settings for INT0 and INT1 are properly configured. Make sure they are set to a lower priority than the timer interrupt (which has the highest priority). It's important to avoid interrupt priority conflicts that could result in the microcontroller hanging.

Post Reply

Return to “mikroC PRO for PIC32 General”