I can not transmit any packet because RFTXRX flag is not set. I am working on Keil and CC2510 minikit. I know that it is quite hard to program on Keil instead of IAR, I try to write the code by myself. In this problem I have to do sth with Keil compiler, don't I? the flow of program stop at checking RFTXRX and nothing happen. I used example code on this forum but it did not help. Pls help me!
Here is my code:
TX:
RFST = RFST_STX;
while (1) {
i=0;
RFTXRXIE = 1;
EA = 1;
//DMAARM |= DMAARM_CHANNEL0; // Arm DMA channel 0
while(i < 17) {
while(flag!=1)
flag =0;
RFD = radioPktBuffer[i++];
delay(2000);
}
//P1_0 ^= 1;
}
RX:
RFST = RFST_SRX; // Switch radio to RX
while (TRUE) {
i = 0;
rPktBuffer[i++]=RFD;
delay(2000);
rPktBuffer[i++]=RFD;
delay(2000);
rPktBuffer[i++]=RFD;
delay(2000);
rPktBuffer[i++]=RFD;
delay(2000);
P1_0 = rPktBuffer[3]&0x01;
}
}