I want to know how to enable cw11.1 MC56F84786 output lib based the current application project without establishing a new library project?
is there a only way to create a lib poject? but my appliction had finished,I need to creat a projcet to output the lib?
Solved! Go to Solution.
Hi,
If you want to generate a library, the project must consist of just api functions, it can not have main(),...., all functions have not address.
I suppose that you have main()..., it can run directly and all functions have fixed address, in this case, you can not generate *.lib, only *.elf
Hope it can help you
BR
Xiangjun rong
Hi,
I think you are right to create a project which can generate a library.
After you have established a project, you can add a file in the source group as the screenshot:
I add a add.c file and create an api function like:
It appears that it is okay to generate a library.
Hope it can help you
BR
XiangJun Rong
Dear,Rong:
Creat a new library project is a way and work well,but my project had completed ,this project can not output a lib? and only output a elf file? that's confuse me.
Hi,
If you want to generate a library, the project must consist of just api functions, it can not have main(),...., all functions have not address.
I suppose that you have main()..., it can run directly and all functions have fixed address, in this case, you can not generate *.lib, only *.elf
Hope it can help you
BR
Xiangjun rong