Skip to main content
koster
Associate II
March 5, 2020
Question

re-compile .S files, if a #define has changed in a .h header file, which is included by '#include' in the .S file

  • March 5, 2020
  • 0 replies
  • 629 views

I'm using .c and .S (for assembler) files in my project. I also using '#include' in the .S files as the GNU compiler pre-process the .c files same as .S files. If I change a #define in a C header file, wich is included in a .S file, the affected .S file is not re-compiled. It worked in my previous IDE 'CooCox', but not in STM32CubeIDE. What do I need to change in the options?

This topic has been closed for replies.