MMCAU的使用

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

MMCAU的使用

1,434 Views
yingwufang
Contributor I

我添加了cau_api.h、cau_lib.a和lib_mmcau.a文件会出现错误(..\src\drv\mmcau\cau_lib.a(1): error: A1167E: Invalid line start ),然后我做了下面的操作,编译是可以通过了,但是调用cau_des_encrypt()函数又出现这个错误..\obj\LOS_K21F.axf: error: L6008U: Could not recognize the format of member des_functions.o from cau_lib.a.),我用的编译器是Keil5.11,恳请工程师们帮忙解答下。

  • In the Project Explorer on the left, expand Drivers/eMD
  • Find libmpllib.a and right-click on it
  • Click on "Options for File 'libmpllib.a'"
  • Change "File Type" to "Library file"
  • Rebuild the project
0 Kudos
3 Replies

1,002 Views
juying_zhong
NXP Employee
NXP Employee

因为我不能插入附件,所以库文件无法给您。您可以将lib_mmcau.a rename为lib_mmcau.lib,这样也可以。

0 Kudos

1,002 Views
yingwufang
Contributor I

嗯嗯,感谢您的回答,问题已经解决

祝:生活愉快

0 Kudos

1,003 Views
juying_zhong
NXP Employee
NXP Employee

基于您的描述,就K21F MCU来说,存在4个问题如下:

1. 您仅仅需要用cau_api.h 和 lib_mmcau.a,而不需要添加lib_cau.a.

2. 在keil下编译生成的库文件应该是以.lib为后缀的,所以你需要一个lib_mmcau.lib替代lib_mmcau.a.

3. 在Keil的Options--->C/C++ ---> Preprocessor Symbles--->Define栏内,须填加 FREESCALE_MMCAU.

4. 在Keil的Options--->Linker ---> Misc controls 栏内,须填加 .--diag_suppress 6238

请从附件中下载lib_mmcau.lib!

0 Kudos