This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to capture the packets with CRC error?

Hi,

 I am trying to get the CRC error packets during nrf_ble_scan_start execution with nRF52840 DK (nRF5_SDK_15.2.0_9412b96) as following:

   ble_stack_init();

   scan_init();

   scan_start();

   unsigned int crc_error_count = 0;

   for (;;)

    {

          if (NRF_RADIO->CRCSTATUS == 0)

          {

             printf("CRCErrorCount: %u\r\n",

                ++crc_error_count);

             … // process other information

          }

     }

 

We can recover some CRC error packet through a special algorithm, so the error packet is also useful for us.

 Is there any better solution to do this?

 Our IDE is Segger Embedded Studio.

Thanks in advance!

Related