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

Is there a checksum embedded in the S110?

Hello everyone,

I haven't read anything in the official documentation about it, but I was wondering if the S110 has an embedded checksum that I can use to verify its integrity at runtime.

I already do something similar for my application and it would be useful to extend the concept to the SoftDevice as well.

Thanks!

Parents
  • Hi Moloch,

    We don't have an embedded checksum for the softdevice. You need to do it manually.

    The softdevice size may change when doing DFU, so it may not be a good idea to store it at the end of the softdevice. Same with storing at the end of master boot record as Clem suggest, because when the softdevice is updated, you need to update the checksum, and then will have to erase 1 page in the MBR that can cause trouble. I would suggest to store the checksum in the bootloader setting page 0x3FC00, it will not be overwrite when doing DFU.

    You can also protect the softdevice from being modified by application by ticking the check box "Enable Softdevice protection" or write to CLENR0 in the UICR. But note that, by doing that, the size of the softdevice can not be changed.

  • Hi Clem,

    You mean the CRC you put at the end of the MBR is the CRC check for the MBR ? Then it should be fine (at least for the current version of the MBR). I was confused and thought it's the CRC of the softdevice which needs to be updated when you update the softdevice.

    Yes, you can store CRC for softdevice the at the end of the softdevice, there is no guarantee that address would be free in the future version of the softdevice.

    We may come up with the embedded CRC for softdevice in the future but I don't know when.

Reply
  • Hi Clem,

    You mean the CRC you put at the end of the MBR is the CRC check for the MBR ? Then it should be fine (at least for the current version of the MBR). I was confused and thought it's the CRC of the softdevice which needs to be updated when you update the softdevice.

    Yes, you can store CRC for softdevice the at the end of the softdevice, there is no guarantee that address would be free in the future version of the softdevice.

    We may come up with the embedded CRC for softdevice in the future but I don't know when.

Children
No Data
Related