Skip to main content
Associate II
May 18, 2024
Question

Generate peripheral initialization to specific directory

  • May 18, 2024
  • 1 reply
  • 872 views

STM32CubeIDE 1.10.1

STM32CubeMX 6.6.1-RC2

 

In CubeMX -> Project Manager -> Code Generation there is an option to generate separate file pairs for the peripherals. These files are generated in the Core\Inc and Core\Src folder. Is there a way to have the generated in a separate directory? Ideally I would have them in Drivers\MX. Thanks in advance!

1 reply

Pavel A.
Super User
May 18, 2024

You can do this in the post-generation script.