Skip to main content
cgrant
Associate
June 8, 2016
Question

Feature request Stm32CubeMX : Named SPI and I2C buses

  • June 8, 2016
  • 2 replies
  • 557 views
Posted on June 08, 2016 at 11:58

Hi,

I use STM32CubeMX daily to create and modify projects. I really like the way the tool has been improving (e.g. now putting the pin names in a header file for use in the project). An issue I find is that the STM32 devices have so many SPI and I2C buses that I forget which one is connected to particular external peripherals (one of the dangers of working on multiple projects), so it would be great if I could assign a name to each of the SPI and I2C buses in STM32CubeMX. 

Thanks.

#feature
    This topic has been closed for replies.

    2 replies

    Nesrine M_O
    Associate
    June 8, 2016
    Posted on June 08, 2016 at 13:54

    Hi grant.colin,

    Thanks for the suggestion! I will forward this to our MX team.

    -Syrine-

    stm32cube-t
    ST Employee
    June 10, 2016
    Posted on June 10, 2016 at 13:52

    Dear user,

    Right-click on the pin and select ''Enter user label''. You will retrieve pin defines using your user label within the mxconstants.h file.

    Best regards