Skip to main content
SMeru.1
Associate
March 29, 2022
Question

how to generate .s file or assembly file for stm32g473 in STM32 Cube IDE

  • March 29, 2022
  • 3 replies
  • 4613 views

Please let me know the flags and options that have to used in STM32 Cube IDE and where it has to be used and where this .s file goes

This topic has been closed for replies.

3 replies

Nikita91
Lead II
March 29, 2022

You can generate .s file with GCC option: https://stackoverflow.com/questions/137038/how-do-you-get-assembler-output-from-c-c-source-in-gcc

The .list file generated in the Debug folder is also useful.

SMeru.1
SMeru.1Author
Associate
March 29, 2022

I have tried the above stack overflow link but it's now working and also I'm unable to find the .list file in debug folder

TDK
March 29, 2022

The link works here.

Did you build the project? Show the files you have in the Debug folder.

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