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

What is actual size required for scratch area for CCM on nrf52?

Hello:

I read the documentation and errata for Rev 1 of the nrf52. I am using the Rigado BMD300 module (thus the nrf52) without a softdevice attempting to do on the fly encryption/decryption. I have noticed that the scratch area required by the nrf52 is much greater than the 43 bytes mentioned in the documentation. It appears it is more on the order of 67 words (67 * 4 octets).

Has anyone else experienced this before?

Thanks!

Parents
  • Yes, we have seen this before and it may be an error in the Product Specification. It has been pointed out that the number of bytes must be reserved in RAM should be 16 + MAXPACKETSIZE bytes.

    I have reported this internally and will update my answer as soon as I hear back from R&D.

    -Bjørn


    UPDATE 13.04.16:

    Confirmed by R&D that the number of bytes that must be reserved in RAM should be 16 + MAXPACKETSIZE bytes. This will be fixed in the in the next revison of the nRF52832 Product Specification.

  • Hello, I got the same problem and I'm encrypting packet of length 13. The scratch pointer is written on 267 bytes for me too. Is it normal? Can you confirm that SCRATCH DATA area size correspond to maximum value of length field = 255 (in the case i am using a 8bit length field) + 16 bytes? you can see more information on my problem on my post : devzone.nordicsemi.com/.../

    ps: i am using NRF52832-QFAA80XXXX

Reply Children
No Data
Related