Problem in using lib_mmcau.lib(ksdk)!

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem in using lib_mmcau.lib(ksdk)!

Jump to solution
1,011 Views
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!

Labels (1)
1 Solution
734 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
735 Views
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 Kudos
734 Views
zahomz
Contributor III

Hi, Iva,

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

Best Regards,

zahom