|
static dwt_config_t config =
{
2, /* Channel number. */
DWT_PRF_16M, /* Pulse repetition frequency. */
DWT_PLEN_128, /* Preamble length. */
DWT_PAC8, /* Preamble acquisition chunk size. Used in RX only. */
9, /* TX preamble code. Used in TX only. */
9, /* RX preamble code. Used in RX only. */
1, /* Use non-standard SFD (Boolean) */
DWT_BR_6M8, /* Data rate. */
DWT_PHRMODE_STD, /* PHY header mode. */
(129 + 8 - 8) /* SFD timeout (preamble length + 1 + SFD length - PAC size). Used in RX only. */
};
把配置改成如上,6.8M, 128 preamble. 收包大概率出错,查看状态位发现 RXRFSL:Receiver Reed Solomon Frame Sync Loss 置位,导致包丢弃。
另外发现低速时状态 0x02806F72, BIT25: CLKPLL_LL: Clock PLL Losing Lock是置位的,是否时钟哪儿有点问题?
请多指点。
|
|