Skip to main content
SMeru.1
Associate
Question

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

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

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

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

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""."