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

Install micro-ecc with SEGGER

Hi

I'm trying to use Crypto but can't get started because micro-ecc isn't installed

The install instructions say:

Enter the subdirectory for the SoC and the toolchain that you are using to build your application:

  • InstallFolder\external\micro-ecc\nrf52_keil\armgcc
  • InstallFolder\external\micro-ecc\nrf52_iar\armgcc
  • InstallFolder\external\micro-ecc\nrf52_armgcc\armgcc

What about Segger Embedded Studio? (nRF52832)

Also, is it necessary to install extra build tools (i.e. isn't is possible to compile this stuff in the IDE?)

Thanks

Parents
  • Hi,

    We are not allowed to provide micro-ecc with the SDK due to limitations in the license of the library. If you want to use the micro-ecc backend, you need to build it yourself using GCC. See the instructions here.

    By default, the micro-ecc backend is not used in the crypto examples, the nRF_Oberon backend is used (NRF_CRYPTO_BACKEND_OBERON_ENABLED=1). You can exclude/remove the micro-ecc library file (micro_ecc_lib_nrf52.a) from the project if you do not intend to use it. That way you should be able to build the examples in SES without any need for additional tools.

    Best regards,
    Jørgen

  • Hi,

    Sorry for misunderstanding your question. SES uses GCC as the compiler internally. The libraries built by GCC can be used with SES.

    You can see the backends supporting AES in the nrf_crypto library documentation. For nRF52832, only mbedTLS is available, as it does not have the CC310 HW Cryptocell module in the chip. For MD5, this is not supported by the nrf_crypto library at all. I believe this was decided to not implement because it is simple to do in SW and not that much used in small embedded systems. I see that mbedTLS has functions for calculating MD5 (external\mbedtls\library\md5.c), they are included in the nRF_Crypto examples and I think you should be able to call the API without any modifications.

    Best regards,
    Jørgen

Reply
  • Hi,

    Sorry for misunderstanding your question. SES uses GCC as the compiler internally. The libraries built by GCC can be used with SES.

    You can see the backends supporting AES in the nrf_crypto library documentation. For nRF52832, only mbedTLS is available, as it does not have the CC310 HW Cryptocell module in the chip. For MD5, this is not supported by the nrf_crypto library at all. I believe this was decided to not implement because it is simple to do in SW and not that much used in small embedded systems. I see that mbedTLS has functions for calculating MD5 (external\mbedtls\library\md5.c), they are included in the nRF_Crypto examples and I think you should be able to call the API without any modifications.

    Best regards,
    Jørgen

Children
No Data
Related