cancel
Showing results for 
Search instead for 
Did you mean: 

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

HPam.1
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

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

View solution in original post

2 REPLIES 2
TDK
Guru

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
Associate II

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