STM32WL CFO Registers
Hi there,
I am using an STM32WLE4C8 with FSK and I am trying to determine the offset between the internal carrier frequency and an incoming carrier frequency. This offset will be used to calibrate my device using a high accuracy incoming preamble and sync word.
I believe I should be using the CFO registers of the radio (0x06B0 and 0x06B1), based on the function SUBGRF_GetCFO() in radio_driver.c from Semtech. However, I am getting wildly varied results from this function, even after averaging the samples. Repeated tests have resulted in sample variation of up to 10kHz.
Unfortunately, there is minimal documentation on these CFO registers. They are mentioned in RM0461 with the description "actual frequency error from normalized value". They aren't mentioned at all in the SX126x datasheet.
Has anyone successfully used the CFO registers before? Or have any ideas for getting a reliable offset reading? Due to the lack of documentation, I am not quite sure how to use them correctly.
Thanks,
Rebecca
