Hi,
Short instruction about the main.c, I uses the rti interrupt to make a count, when the count1is equal to a fix number, the program send a data to the PC through the Ethernet and do something easy when the count2 is equal to another fix number.
About the EMAC, I put the lwIPRxIntHandler() function in the whlie cycle of the main.c, and disable the EMACCore0RxIsr interrupt in the HCG, the EMACCore0TxIsr interrupt is retained.
Now the problem is when RTI interrupt is enabled, the PC send data to the board every 100ms, after several minutes, the program entered into the IntMasterIRQDisable() function and never back to the main function.At this time, the debug window only have the IntMasterIRQDisable() function alone, I cannot know which function call the IntMasterIRQDisable(), it's very strange.
When I comment the rtiStartCounter() function to stop the rti interrupt, the program goes very well, the phenomenon never occurs.
when enter the rtinotification function, _disable_interrupt_() function is called and then the _enable_interrupt_() is called at the end of the rtinotification.
Need your help!~
Regards,
yong