Hi all,
     I am working on running TinyOS on CC2520DK (msp430f2618+CC2520) ,as the 
msp430f2618 part and the CC2520 part has already been built in the TinyOs 
2.1.2, I have done the following job:
    1.  Buid the  platform  which mainly imitates the Z1 and Sam3s_ek
    2.  Blink application works fine on my platform
    3.  The BlinkToRadio debug result turns out to be(output from the serial 
port):
TACTL = 546
TBCTL = 290
DCOCTL = 102
BCSCTL1 = 135
BCSCTL2 = 0
BCSCTL3 = 4
initRadio
resetRadio!
RadioState.turnOn()
turnOn
freqctrl = 81
setChannel()
TASKLET_CMD_SIGNAL_DONE state
RadioSend.ready()
RadioSend.ready()
CC2520_TXPOWER =32
Status Byte Contents : C1
CCA
tmp1 = 1
tmp2 = 1
Start Sending!!!!!!
writeTxFifo
writeTxFifo
CC2520_TXFIFOCNT = 8
CC2520_EXCFLAG0 : 81 line 1243
CC2520_EXCFLAG1 : 20 line 1244
SfdCapture.captured() line 1784
SFD!
time = 27685
call RadioAlarm.getNow() = 57223
state = 8
SFDCAPTURED!!!!
SFD = 0
TASKLET_radioIrq
serviceRadio()
isSpiAcquired() = 1
STATE_TX_ON line 1876
CC2520_EXCFLAG1 : 0 line 1333
writeTxFifo

       It stucks here, I have to reset the other node then the following 
message shows:
 FifopInterrupt.fired()
downloadMessage() line 1461
CC2520_RXFIFOCNT = 18 line 1462
 readLengthFromRxFifo
length must be correct
 inline void readPayloadFromRxFifo
 inline void readRssiFromRxFifo
readCrcOkAndLqiFromRxFifo
PacketRSSI.set
CC2520_EXCFlAG1 : 0 line 1786
endRx()
CC2520_EXCFlAG1 : 0 line 1456
downloadMessage done! line 1866
SfdCapture.captured() line 1784
SFD!
time = 23809
call RadioAlarm.getNow() = 62349
state = 6
SFDCAPTURED!!!!
SFD = 0
TASKLET_radioIrq
serviceRadio()
isSpiAcquired() = 1
STATE_BUSY_TX_2_RX_ON line 1882
RadioSend.sendDone
CC2520_TXFIFOCNT = 1
Senddone!!!!!!RadioSend.ready()
FifoInterrupt fired!
RadioSend.ready()
CC2520_TXPOWER =32
Status Byte Contents : C1
CCA
tmp1 = 1
tmp2 = 1
Start Sending!!!!!!
writeTxFifo
writeTxFifo
CC2520_TXFIFOCNT = 1
CC2520_EXCFLAG0 : 81 line 1243
CC2520_EXCFLAG1 : 31 line 1244
       It stucks here again! Then if I reset the other node, we would see :
SfdCapture.captured() line 1784
SFD!
time = 4404
call RadioAlarm.getNow() = 45200
state = 8
FIFO line 1817
FIFOP line 1819
SFDCAPTURED!!!!
SFD = 0
TASKLET_radioIrq
serviceRadio()
isSpiAcquired() = 1
STATE_TX_ON line 1876
CC2520_EXCFLAG1 : 31 line 1333
writeTxFifo
FifopInterrupt.fired()
downloadMessage() line 1461
CC2520_RXFIFOCNT = 18 line 1462
 readLengthFromRxFifo
length must be correct
 inline void readPayloadFromRxFifo
 inline void readRssiFromRxFifo
readCrcOkAndLqiFromRxFifo
PacketRSSI.set
CC2520_EXCFlAG1 : 0 line 1786
endRx()
CC2520_EXCFlAG1 : 0 line 1456
downloadMessage done! line 1866
FifoInterrupt fired!
       It seems that the SFD、FIFOP and FIFO(it's not used in the 
CC2520DriverLayerP) work fine! But the communication between two nodes fails. 
Could anyone give me some hints ?!
      

Regards,
Frank
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to