Skip to main content
newbie_stm32
Associate III
July 12, 2023
Question

How to generate customised code structure using templates in STM32CubeIDE

Hi Community,

I came across a situation to restructure the code base made out of STM32CubeIDE. Explored an option in Device Configuration Tool > Project Manager > Code Generator > Template Settings for the same.

How to use it to restructure existing code as per the project's need? Is there any other option that serves this purpose?

    This topic has been closed for replies.

    1 reply

    newbie_stm32
    Associate III
    July 25, 2023

    Hi Community,

    Any input or document will be helpful on this topic.

    I just wanted to modify the default directory structure of STM32CubeIDE to something like this

    newbie_stm32_0-1690267742692.png

    The requirement is to put code generated by Device Configuration Tool into the default and code written by the developer into the user to build a project using CMake.