I want to use lib_mmcau.lib, but it compile err:
Build Project 'hello_world' - Target 'hello_world Debug'
compiling main.c...
linking...
debug\hello_world.out: Error: L6238E: mmcau_sha1_functions.o(.text) contains invalid call from '~PRES8 (The user did not require code to preserve 8-byte aligment of 8-byte data objects)' function to 'REQ8 (Code was permitted to depend on the 8-byte aligment of 8-byte data items)' function mmcau_sha1_hash_n.
debug\hello_world.out: Error: L6238E: mmcau_sha1_functions.o(.text) contains invalid call from '~PRES8 (The user did not require code to preserve 8-byte aligment of 8-byte data objects)' function to 'REQ8 (Code was permitted to depend on the 8-byte aligment of 8-byte data items)' function mmcau_sha1_hash_n.
Finished: 0 information, 0 warning and 2 error messages.
"debug\hello_world.out" - 2 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:01
Here is my step in Keil5:
1. Use ksdk hello_world demo, and configure Linker option,
2. In main, add code,
int main (void)
{
uint8_t aucHashData[20];
mmcau_sha1_initialize_output((const unsigned int *)aucHashData);
....
}
Thanks for any help!
解決済! 解決策の投稿を見る。
Hi zahom z,
please try to disable warning 6238 and let me know, if this helps you.
Best Regards,
Iva
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi zahom z,
please try to disable warning 6238 and let me know, if this helps you.
Best Regards,
Iva
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi, Iva,
Thank you very much for your help! It works well now.
Best Regards,
zahom