cc2538: fix RSSI offset#14672
Conversation
In that section no offset is given, it says "For example, with an offset of 73 [...]". It also says "See the datasheet for the correct offset value to use."... To me, it is not clear what the correct value now actually is. |
|
The datasheet (Sect. 5.12 RSSI/CCA Characteristics) gives an RSSI/CCA offset of 73dBm and the formula to calculate |
|
How can I ran some tests using examples/default on an nrf52840dk and a remote-reva locally.
master
this PR
|
PeterKietzmann
left a comment
There was a problem hiding this comment.
Although I'm not sure this PR fixes the crash in #14655, my ACK holds for this change.
Contribution description
This PR fixes the offset for the RSSI calculation of CC2538 radios and removes an RFCORE_ASSERT that checks that the internal RSSI value is greater than the sensitivity.
The latter produced crashes while testing #14655 when measured values of RSSI were below the RX sensitivity (-97 dBm).
Also according to the Reference Manual, section 23.10.3, the actual power of the reception is calculated with the RSSI register and the RSSI offset (-73).
Testing procedure
Check the RSSI values when receiving data.
Issues/PRs references
Fixes the crash in #14655