Hi
There are two files:
mmcau_aes_functions_M0.S and mmcau_aes_functions.S
The first is used for Cortex-M0+ cores and the second for Cortex-M4.
KDS will try to build both and one will fail on one. Therefore you can exclude the one that you don't want (select the file in the KDS Project Explorer, right mouse click to get the context menu - choose "Resource Configuration", then "Exclude from build" and choose the target(s) that it should be excluded from.
In fact, since the serial loader doesn't use the Crypto directory, this directory could also be generally excluded.
There is no problem when building from the GCC make file since such details can be controlled but with KDS the control is more limited and I haven't found a way of automatically controlling included files based on the core selected so a little manual config may be needed for a specific target.
Regards
Mark
P.S. I may look at merging the code in the two assembler files into one and then using defines (as is done in the file arm_bitreversal2.S) to conditionally compile the correct assembler code for the core involved in order to solve this complication.