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

mbedtls-cannot compile 'Error aesni.o unrecognized file format'

Hello,

I am trying to run the mbdedtls example of random number generator shown here https://tls.mbed.org/kb/how-to/add-a-random-generator

I added MBEDTLS_CONFIG_FILE="nrf_crypto_mbedtls_config.h" this to my build configuration -> Pre Processor , Now while compile I get 1> Linking blinky_pca10040_s132.elf
1> aesni.o: file not recognized: file format not recognized

I added the required mbedtls files from NRF5-> SDK -> external -> mbedtls to the blinky project.

A good amount of my code is in mbedtls(mbedcrypto) and I'd like to reuse it , so don't plan to use the nrf-crypto lib.

All i want to do is generate a random string , for my AES CBC mbedtls_aes_crypt_cbc()

My Board is NRF52-DK

Platform is Ubuntu 18.04

IDE : Segger Embedded

I am new to the Nordic Dev Community forgive me for poor formatting(I will change once I know how to do the formatting :) ) , in case if someone requires more information to help me, Please reply , and I will try to get all the relevant information to better form this question so it can be more helpful to others.

Related