This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2520: Some Issue on CC2520 Debug

Part Number: CC2520

Hi Team,

we faced some issue while debugging the CC2520:

1. RF register setting:

{RF_TXPOWER,     0xF7},       // Max TX output power

    {RF_CCACTRL0,    0xF8},       // CCA treshold -8-76=-84

 

    // Recommended RX settings

    {RF_MDMCTRL0,    0x85},

    {RF_MDMCTRL1,    0x14},

    {RF_RXCTRL,      0x3F},

    {RF_FIFOPCTRL,   0x7F},

    {RF_FSCTRL,      0x5A},

    {RF_FSCAL1,      0x2B},

    {RF_AGCCTRL1,    0x11},

    {RF_ADCTEST0,    0x10},

    {RF_ADCTEST1,    0x0E},

    {RF_ADCTEST2,    0x03},

 

    // Configuration for applications

    {RF_FRMFILT1,    0x00},               //disable MAC_CMD, ACK,Beacon

    {RF_FRMCTRL0,    0x40},               //only Auto-CRC 0x40

    {RF_FRMCTRL1,    0x01},               //RXON enabled after transmission completes

       

    {RF_GPIOCTRL3,   1 + RF_EXC_RX_FRM_DONE},  

          {RF_GPIOCTRL4,   RF_GPIO_FIFO},  

    {RF_GPIOCTRL5,   RF_GPIO_FIFOP}

2. Issue 1:

In the receive interrupt processing function of RX, there will be a situation where the RF state machine is in the TX state.
ISR code of RX:

testing log:

3. Issue2:

When RF appears that all registers read 0x61, RF crashes.

in blue block, the data are Decimal format;

BR

Brandon

  • Brandon,

    Is the customer using software based on one of the provided software examples? If so, which example?

    Can you describe the circumstances that lead to the two issues you see above? Do they happen randomly, or due to a set of events? Can the issues described be recreated?

    Can you also provide information about the hardware setup?

    Thanks,

    Daniel

  • Daniel,

    I use myself software to raise the above issues. The RF settings are shown as same as the first log. The RF settings disable all the filter. the two issues are inevitable. When the Issue2 happened, EXCFLAG0, EXCFLAG1, EXCFLAG2 and other registers have the same value, maybe 0x61 is not the true value.

    My hardware setup is as same as the datasheet of CC2520, but there are two pieces CC2520 chips, and they are independent.

    Thanks,

    Tong Wang

  • Tong,

    Can you share more code snippets with us? Specifically, how are you setting up your interrupts? Can you also share all of your interrupt handlers so we can see how interrupts are being handled?

    Have you verified that the printed register values match the actual register values with a debugger at the time of the issues?

    Regards,

    Daniel