hello:
I am using the NDK example helloworld.pjt to receve data ,and I have tested it ,the program can run for whole day long without errors.Then I add a interrupt which is on INT6 ,the interrupt is frequently occured,and the data from the network is very large ,that is the interrupt may occure during receving data,I see other post says the NDK uses INT5,from the prority I think there will not be any problems,but after the program run about an hour,it stops at the function j=recevnc(..),and the interrupt regester IFR indecate the INT5 and INT6 is turned to 1,and then I tried to use INT9,it is no use,and then try to unenable the INT6 before j=recevnc(..) function,and enable it after the receve function,alse no use,,me program is like
for(;;)
{
while(cent!=CENT)
{
unenable the intc interrupt;
flag=1;
j=recevnc(...);
flag=2;
enable the intc interrupt;
start data tranfer;
cnt+=j;
}
cnt=0;
}
the CNT and the time when to send data is dedicated .the final result is flag=1,it seems stop in the recevnc function and can not get next, and the interrupt can not be responsed also,It has takes me much time and has got solved ,because the problem occurs random ,sometimes twenty minites or so,sometimes more than one hour,I try to explain the problem clearly,and now i do not bring the source code home ,I will post it if necessary,Anyone has any good idea ?thank you very much!