Skip to main content
Southbranch
Senior
August 17, 2023
Solved

CMake support for STM32CubeIDE and STM32CubeMX?

Hi!

CMake now seems to be supported for STM32CubeIDE which is great. But how will CMake work with GPIO-configuration and STM32CubeMX when staring a CMake project from sqratch?

 

 

    This topic has been closed for replies.
    Pavel A.
    Pavel A.Best answer
    August 18, 2023

    AFAIK not yet. 

    6 replies

    Pavel A.
    August 17, 2023

    CMake is a build tool. GPIO configuration is not its purpose. Neither is it a IDE.

     

     

    Southbranch
    Senior
    August 18, 2023

    Ok thanks, but let me try to rephrase the question.

    Is there a way to let STM32CubeMX configure GPIO:s and update necessary code files in STM32CubeIDE after starting up a CMake project from sqratch? (in the same way as when after starting up a standard STM32 make project)

    jerry_sandc
    Associate III
    September 11, 2023

    I have similar condudrum.  Its nice the IDE has cmake options, but MX doesn't have anything.  Let me know if you found anything since!

     

    Pavel A.
    Pavel A.Best answer
    August 18, 2023

    AFAIK not yet. 

    jerry_sandc
    Associate III
    September 25, 2023

    I've had to play games creating project in IDE, for both cmake based, and then STM32 eclipse project.  I then took those projects and made my own cmake project 'from scratch'.  I'm having some success building and running the elf file on the evaluation board target.   Maybe i'll make a nice long post one day how I did this. :grinning_face: