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

NRF9160 SDK 1.4 crash in random number generation

Hi,

I am trying to update from SDK 1.3 to 1.4 and struggling with crashes. COAP uses random number generator to generate new tokens to the header. First time when this happens it goes fine, but second time(when making registration update in LWM2M level) app crashes to spm_request_random_number.

I can see that there is a workaround (for preventing some secure services crash) added to this release https://devzone.nordicsemi.com/f/nordic-q-a/60850/nrf9160-secure-services-causing-a-crash but disabling or enabling that workaround makes no difference.

So far I just have to disable the whole random number generation to prevent the crash.

CONFIG_ENTROPY_CC3XX=n

I also found out that someone has made a "workaround" for LWM2M sample to something that sounds awfully similar. But I can't find any more info or known issues etc.

https://github.com/nrfconnect/sdk-nrf/commit/8b8c42f84a64c3f17cb915a4c2c76ff2450c1f31

Any ideas? I should not really leave that random number generator away as we are few weeks from going into production.

Related