Skip to main content
PGhat.2
Visitor II
February 8, 2023
Solved

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

  • February 8, 2023
  • 2 replies
  • 1455 views

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.

This topic has been closed for replies.
Best answer by Semer CHERNI

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.

2 replies

AScha.3
Super User
February 8, 2023

maybe , look in Project -> Properties ...

0693W00000YAGFrQAP.png

If you feel a post has answered your question, please click on " Best Answer ".
Semer CHERNI
Semer CHERNIBest answer
ST Employee
February 9, 2023

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.