Problem in using lib_mmcau.lib(ksdk)!

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Problem in using lib_mmcau.lib(ksdk)!

跳至解决方案
1,015 次查看
zahomz
Contributor III

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,

144655_144655.pngpastedImage_4.png

2. In main, add code,

int main (void)

{

        uint8_t aucHashData[20];

        mmcau_sha1_initialize_output((const unsigned int *)aucHashData);

       ....

}

 

Thanks for any help!

标签 (1)
1 解答
738 次查看
ivadorazinova
NXP Employee
NXP Employee

Hi zahom z​,

please try to disable warning 6238 and let me know, if this helps you.

keil.png

Best Regards,

Iva

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
2 回复数
739 次查看
ivadorazinova
NXP Employee
NXP Employee

Hi zahom z​,

please try to disable warning 6238 and let me know, if this helps you.

keil.png

Best Regards,

Iva

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
738 次查看
zahomz
Contributor III

Hi, Iva,

     Thank you very much for your help! It works well now.

Best Regards,

zahom