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

setting up CRC in nrf52832

Hi,

I am using nrf52832 SDK11 with an S132 Soft device. I want to set the CRC.How to set up the CRC for this?Is there any library for this?

thanks

  • Hi,

     

    Could you elaborate on what you want to do, or what you want to generate a checksum of?

    A generic CRC library is located in the SDK: \components\libraries\crc16 and \components\libraries\crc32

    Cheers,

    Håkon

  • I am sending the BLE packet from the android phone and in order to ensure the correctness of the packet I need CRC at the nrf52832 side.So I want to know how to generate the CRC? Is there any tutorial for it? How does the CRC work for incoming packets?

  • The Softdevice stack and the radio core automatically checks for CRC in the link-layer of the bluetooth protocol. This is already done for you when you receive your data.

    If you want to generate a generic checksum, please see the crc16 and crc32 libraries