Hi,
I have no "nrf_crypto_allocator.h" in Components. Can anyone help me where to find this file?
Hi,
I have no "nrf_crypto_allocator.h" in Components. Can anyone help me where to find this file?
Hi Raza,
I'm no expert on this matter, but based on the information I found in this page: https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.0%2Fgroup__nrf__crypto__config.html
It seems that you might have set
#define NRF_CRYPTO_ALLOCATOR
to
1 (User macros)
According to the description, this requires you to add your own header file that declares the functions NRF_CRYPTO_ALLOC, NRF_CRYPTO_FREE, and NRF_CRYPTO_ALLOC_ON_STACK
So you'll have to either do that, or choose another option for NRF_CRYPTO_ALLOCATOR.
Best regards,
Raoul Pathak
Hi Raza,
I'm no expert on this matter, but based on the information I found in this page: https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.0%2Fgroup__nrf__crypto__config.html
It seems that you might have set
#define NRF_CRYPTO_ALLOCATOR
to
1 (User macros)
According to the description, this requires you to add your own header file that declares the functions NRF_CRYPTO_ALLOC, NRF_CRYPTO_FREE, and NRF_CRYPTO_ALLOC_ON_STACK
So you'll have to either do that, or choose another option for NRF_CRYPTO_ALLOCATOR.
Best regards,
Raoul Pathak
HI Raaul,
Thanks alot for your reply.
so there is no header in SDK that declares those functions? and what other option can i use for this that uses already present headers in the SDK.
Best,
Raza Abbas
That's correct, that option is there specifically for you to add your own "user" allocator functions. The other options are detailed in the documentation page I linked you.
Just look for the Macro Definition Documentation for #define NRF_CRYPTO_ALLOCATOR
There are options to allocate to stack memory, to heap memory with malloc, or to use nrf_malloc to let it be handled by the SDK Memory Manager
Best regards,
Raoul
Hi Raoul,
can you elaborate more, because i am looking at the code of my precious college and i am new to nordic chips. it would be a great help. thanks in advance