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