Skip to main content
Graduate II
August 28, 2025
Solved

stm32h573RIv Datasheet and CubeMX not matching with pin alternate functions

  • August 28, 2025
  • 2 replies
  • 391 views

Good morning all!

I'm using the stm32h573RI chip with the packaging of LQFP64. I'm trying to setup pin PB5 and PB6 for UART5 using the CubeMX, however it's not working. I was reviewing the datasheet and the Alternate function it states is different than what CubeMX has. 

CubeMX has both PB5/6 with an alternative function of 14, but in the Datasheet in table 15 page 103 it states it at AF12. (when counting from 0). However, in Table 16 page 119 it does have both listed with AF14. 

Which is right? and what's the difference between table 15 and 16, when would I use the other and vice-verse?
sources: 
datasheet:  Datasheet - STM32H573xx - Arm<Sup>®</Sup> Cortex<Sup>®</Sup>-M33 32-bit MCU + TrustZone<Sup>®</Sup> + FPU, 375 DMIPS, 250 MHz, 2-Mbyte flash memory, 640-Kbyte RAM, cryptography

    This topic has been closed for replies.
    Best answer by ELABI.1

    Hi @A_Bit_More,

    I confirm that pins PB5 and PB6 have alternate function 14, not 12. This information is found only in Table 17 Alternate functions AF8 to AF15, which is aligned with STM32CubeMX. No information about alternate function in table 15.

    Thanks,

    ELABI.1

    2 replies

    ELABI.1Answer
    Technical Moderator
    August 28, 2025

    Hi @A_Bit_More,

    I confirm that pins PB5 and PB6 have alternate function 14, not 12. This information is found only in Table 17 Alternate functions AF8 to AF15, which is aligned with STM32CubeMX. No information about alternate function in table 15.

    Thanks,

    ELABI.1

    Graduate II
    August 28, 2025

    @ELABI.1 
    It does have alternate functions in Table 15 : 

    A_Bit_More_0-1756387333547.png

    or what do you mean by " there are no more info about alternate function"

    Technical Moderator
    August 28, 2025

    Hi @A_Bit_More,

    In this table, it's not mentioned that pins PB5 and PB6 have the alternate function AF12.

    When did you find this information?

    ELABI.1