Skip to main content
HPam.1
Associate II
Jul 29, 2020 9:26 AM UTC
Solved

How do I see a C/C++ source file after preprocessing in STM32CubeIDE

I want to check if the preprocessing are correctly adding my function macros

This topic has been closed for replies.
TDK
TDKBest answer
Jul 29, 2020 1:27 PM UTC

Use the "Preprocess only" checkbox. After that, the converted files will be in the build directory with a "*.o" extension.

0693W000003Bd6qQAC.png

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

2 replies

TDK
TDKBest answer
Jul 29, 2020 1:27 PM UTC

Use the "Preprocess only" checkbox. After that, the converted files will be in the build directory with a "*.o" extension.

0693W000003Bd6qQAC.png

"If you feel a post has answered your question, please click ""Accept as Solution""."
HPam.1
HPam.1Author
Associate II
Jul 30, 2020 8:15 AM UTC

I checked the "Preprocess only" in all the places , and I open my Debug folder and sub directories ,I could not find the *.o extension. Am I doing it correctly?

0693W000003BhHJQA0.png

EDIT: I found the main.o at last. It's in the sub directory users folder

0693W000003Bjd2QAC.png