The board was developed by applying PIC32MZ2048EFH.
The basic code was developed by applying Harmony.
But there is something strange about it.
A core timer is applied and an interrupt occurs every 10ms to execute the code.
Although the cycle is not constant, there is a phenomenon that the interrupt is excessively generated and processed.
The attached scope graph is the change in output that toggles whenever an interrupt occurs.
If you look at the indicated places, it is showing the phenomenon that an infinite number of interrupts are generated.
I would like to know why this is happening and if there is no solution.
Further evaluation was carried out.
It seems that the cycle in which the phenomenon occurs is approximately 42 seconds elapsed.
How is it going to happen?
The board was developed by applying PIC32MZ2048EFH. The basic code was developed by applying Harmony.
But there is something strange about it. A core timer is applied and an interrupt occurs every 10ms to execute the code.
Although the cycle is not constant, there is a phenomenon that the interrupt is excessively generated and processed.
The attached scope graph is the change in output that toggles whenever an interrupt occurs. If you look at the indicated places, it is showing the phenomenon that an infinite number of interrupts are generated. I would like to know why this is happening and if there is no solution.
---------------------------- Code ---------------------------------
void hMotorStatus(uint32_t intCause, uintptr_t context)
{ uint8_t i=0;
}