Skip to main content
HPam.1
Associate II
July 29, 2020
Solved

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

  • July 29, 2020
  • 2 replies
  • 1957 views

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

This topic has been closed for replies.
Best answer by TDK

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

0693W000003Bd6qQAC.png

2 replies

TDK
TDKBest answer
July 29, 2020

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
July 30, 2020

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