AnsweredAssumed Answered

Add AES from AN11241 to MCUXpresso Project for Freedom Board FRDMKL03Z

Question asked by James Morrison on Mar 2, 2019
Latest reply on Mar 6, 2019 by James Morrison

Hello everyone,


I'm new to the MCUXpresso tool and hoping someone could point me in the right direction.


I'm having difficulty compiling the code from AN11242 (AES libraries) into a project that started as the rtc_func example for the Freedom Board FRDMKL03Z.  I copied over the code to the working folder, added the appropriate folders for include and source so the compiler could find them (and it does).


But now I get the following error when compiling:


../aes/crypt_lib/inc/cypher_internal.h:37:25: warning: implicit declaration of function '__ROR' [-Wimplicit-function-declaration]
 #define rotWord(word)   __ROR(word, 8)
../aes/crypt_lib/src/gen_aes256_expkey.c:100:11: note: in expansion of macro 'rotWord'
    temp = rotWord(temp);

So it's obviously having trouble figuring out how to resolve __ROR.  I see that is defined in cmsis_armcc.h but when I include that other things seem to blow up.


Any suggestions on how to get by this issue?