Problem in using lib_mmcau.lib(ksdk)!

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Problem in using lib_mmcau.lib(ksdk)!

ソリューションへジャンプ
1,283件の閲覧回数
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 解決策
1,006件の閲覧回数
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 返答(返信)
1,007件の閲覧回数
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 件の賞賛
返信
1,006件の閲覧回数
zahomz
Contributor III

Hi, Iva,

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

Best Regards,

zahom