2025-02-17 04:10 PM
Given an MCU (say an STM32H755ZIT) and a function (say SPI2_MOSI), how can you find which pins may be configured as SPI2_MOSI, short of clicking on every pin in the Pinout View of the MX Device Configuration Tools?
2025-02-17 04:21 PM
Two ways:
On the bottom right, you can search pins by function. Typing in "SPI2_MOSI" will have all pins that can be configured as that flash. Typing in "SPI2" will flash all pins with an SPI2 function.
It's also listed in the datasheet where you could Ctrl+F to search for it.
2025-02-17 04:25 PM
The Datasheet has a table which tells you what alternate functions are mapped to each pin.
For the case of STM32H755ZIT:
https://www.st.com/resource/en/datasheet/stm32h755zi.pdf#page=61
For how to select each Alternate Function, see:
2025-02-17 04:57 PM
Thanks! :)
2025-02-17 05:32 PM
You're welcome.
It it's answered your question, please mark the solution:
https://community.st.com/t5/community-guidelines/help-others-to-solve-their-issues/ta-p/575256