How to Create a library file from C file

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Create a library file from C file

Jump to solution
647 Views
bjrajendra
Senior Contributor I

Hello all,

I would like to convert my current .c file into a library file , so as to share the official content to other people. 

Kindly help in this regard.

Raju

Tags (1)
0 Kudos
1 Solution
579 Views
ErichStyger
Senior Contributor IV

Hi Raju,

this is for a different IDE: Creating a Library with Kinetis Design Studio | MCU on Eclipse 

But the same applies to any GNU based IDE/toolchain as the S32DS.

I hope this helps,

Erich

View solution in original post

0 Kudos
3 Replies
580 Views
ErichStyger
Senior Contributor IV

Hi Raju,

this is for a different IDE: Creating a Library with Kinetis Design Studio | MCU on Eclipse 

But the same applies to any GNU based IDE/toolchain as the S32DS.

I hope this helps,

Erich

0 Kudos
579 Views
bjrajendra
Senior Contributor I

Hi Erich,

Thanks for the swift response.

I'd gone through the link you provided below. I've below issues.

1. There is a wizard provided in the S32DS to create a Project. Should I use this?

2. Also, as the screenshot suggests we still keep the include folder as it contains header files related to the Core of the device. Thus it means the library file generated will work only related to that core????

Raju

0 Kudos
579 Views
ErichStyger
Senior Contributor IV

1) You can create a normal project

2) that depends on what you have in your library: if your code is for a dedicated core/device, then it will be the same for your library because the code is compiled with these switches.

Erich

0 Kudos