Skip to main content
Javier1
Principal
December 13, 2023
Solved

using CUBEMX to generate makefile type project output (custom .h .c files)

  • December 13, 2023
  • 1 reply
  • 1137 views

Is there a way to include in the makefile out custom .c .h , other than manually including each .c by hand in the makefile C_SOURCES?

Javier1_0-1702476202316.png

 

 

This topic has been closed for replies.
Best answer by Pavel A.

Yes. Since recent CubeMX versions can specify a post-generate command, this is how you can modify the generated output and add your files. Also see the CubeMX user guide UM1718 on the .extSettings file.

1 reply

Pavel A.
Pavel A.Best answer
Super User
December 13, 2023

Yes. Since recent CubeMX versions can specify a post-generate command, this is how you can modify the generated output and add your files. Also see the CubeMX user guide UM1718 on the .extSettings file.