LR1121
User Manual Rev 1.1
UM.LR1121.W.APP Mar 2023
30 of 130
Semtech
Proprietary & Confidential
www.semtech.com
3.6 Errors
3.6.1 GetErrors
Command GetErrors(...) returns the pending errors that occurred since the last ClearErrors(...), or the circuit startup.
It is possible to generate an interrupt on DIO9 or DIO11 when an error occurs. The error cannot be masked.
ErrorStat contains all the possible error flags that could occur during chip operations:
• Bit 0: LF_RC_CALIB_ERR. Calibration of low frequency RC was not done. To fix it redo a calibration.
• Bit 1: HF_RC_CALIB_ERR. Calibration of high frequency RC was not done. To fix it redo a calibration.
• Bit 2: ADC_CALIB_ERR. Calibration of ADC was not done. To fix it redo a calibration.
• Bit 3: PLL_CALIB_ERR. Calibration of maximum and minimum frequencies was not done. To fix it redo the PLL
calibration.
• Bit 4: IMG_CALIB_ERR. Calibration of the image rejection was not done. To fix it redo the image calibration.
• Bit 5: HF_XOSC_START_ERR. High frequency XOSC did not start correctly. To fix it redo a reset, or send
SetTcxoCmd(...) if a TCXO is connected and redo calibrations.
• Bit 6: LF_XOSC_START_ERR. Low frequency XOSC did not start correctly. To fix it redo a reset.
• Bit 7: PLL_LOCK_ERR. The PLL did not lock. This can come from too high or too low frequency configuration, or if the
PLL was not calibrated. To fix it redo a PLL calibration, or use other frequencies.
• Bit 8: RX_ADC_OFFSET_ERR. Calibration of ADC offset was not done. To fix it redo a calibration.
• Bit 9-15: RFU.
3.6.2 ClearErrors
Command ClearErrors(...) clears all errors flags pending in the device. The error flags cannot be cleared individually.
Table 3-4: GetErrors Command
Byte 0 1
Data from Host 0x01 0x0D
Data to Host Stat1 Stat2
Table 3-5: GetErrors Response
Byte 0 1 2
Data from Host 0x00 0x00 0x00
Data to Host Stat1 ErrorStat(15:8) ErrorStat(7:0)
Table 3-6: ClearErrors Command
Byte 0 1
Data from Host 0x01 0x0E
Data to Host Stat1 Stat2