Transform DAvE CE project into Library Generation

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MaxECU
Employee
Employee
Welcome!
I cannot find the way to transform a DAvE CE project into a Library code compilation. I mean: I create a brand new DAvE CE project and by default it has 'main.c' and generate an executable file. My purpose is instead to generate a library (lib.a) out of that code. How to do?

Thanks in advance.
0 Likes
3 Replies
Not applicable
Hi Massimo,

You may refer to "DAVE TIP of the day: How to build and include a static library?".

Best regards,
Sophia
0 Likes
MaxECU
Employee
Employee
Welcome!
Thanks but I was meaning to convert a DAVE CE project to library and not to create another project space, copy a DAVE generated files and create the library (anyhow this is the workaround I'm using now, but is quite painful: change configuration via DAVE, generate, copy, switch workspace, generate the library).
0 Likes
Not applicable
Hi Massimo,

You may try to change the project configuration as followings:
1) Right click on the project > select “Project Properties” > “C/C++ Build
1a. select "Settings" > click "Build Artifact" tab --> change "Artifact Type" to “ARM-GCC Library for XMC Project” and "Artifact extension" to “a”
550.attach

1b. select "Tool Chani Editor" --> change "Current toolchain" to “ARM-GCC Library for XMC”
551.attach

2) Rebuild the project --> output shall be a library file

Best regards,
Sophia
0 Likes