2025-08-28 4:27 AM - edited 2025-08-28 4:45 AM
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
2025-08-28 5:44 AM
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
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-08-28 6:22 AM - edited 2025-08-28 6:23 AM
@ELABI.1
It does have alternate functions in Table 15 :
or what do you mean by " there are no more info about alternate function"
2025-08-28 8:02 AM - edited 2025-08-28 8:03 AM
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
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-08-28 8:52 AM
@ELABI.1
in the link above also this link: 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
on page 103