cancel
Showing results for 
Search instead for 
Did you mean: 

how to create a static lib with cube without any debug information

PGhat.2
Associate

Hi,

i would like to create a static lib with cube without any debug information (this is to share with third party)

I have created static lib and add it to another project and call API(function define in lib), during debug it is showing complete c code, hiding c code would be sufficient in this case.

I tried with adding object file instead static lib .a but result is same.

I read somewhere that during static lib creation uncheck “debug information�? option but unable to locate it in the STM32cudeIDE.

1 ACCEPTED SOLUTION

Accepted Solutions
Semer CHERNI
ST Employee

Hello @PGhat.2​ 

First let me thank you for posting.

The UM2609 STM32CubeIDE user guide contain a description on how to create static lib.

Check the chapter 2.2.2 Creating a new STM32 static library project.

Hope this response helps.

If it's the case don't hesitate to mark it as best answer.

Kind regards,

Semer.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
AScha.3
Chief II

maybe , look in Project -> Properties ...

0693W00000YAGFrQAP.png

If you feel a post has answered your question, please click "Accept as Solution".
Semer CHERNI
ST Employee

Hello @PGhat.2​ 

First let me thank you for posting.

The UM2609 STM32CubeIDE user guide contain a description on how to create static lib.

Check the chapter 2.2.2 Creating a new STM32 static library project.

Hope this response helps.

If it's the case don't hesitate to mark it as best answer.

Kind regards,

Semer.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.