2025-04-08 1:28 AM - last edited on 2025-04-08 1:45 AM by Andrew Neil
I am trying to use the bootloader of the STM32G474QET6 with USART to program my microcontroller.
I have multiple questions regarding this but the first one is more about hardware. I have found in AN2606 that for the bootloader I can only use one of three USART, as listed under :
So after this info, I can use either USART1, 2 or 3 but when I look at the pins attached and at the datasheet of my microcontroller, pins for USART3 on the MCU are not PC11 and PC10.
The thing is on my PCB I've decided to use PB10 and PB11, and according to the datasheet, they are the pins of USART3.
So my question is pretty simple, which document is right and which should I follow ? Am I going to need to change anything ?
Thanks for the answers !
Solved! Go to Solution.
2025-04-08 1:53 AM
Hello,
>> pins for USART3 on the MCU are not PC11 and PC10
>> So my question is pretty simple, which document is right and which should I follow ?
Both are right,
>> Am I going to need to change anything
If you want to use the bootloader on USART3, probably you'll need to switch to PC10/PC11.
2025-04-08 1:49 AM
@EliazLB wrote:
So after this info, I can use either USART1, 2 or 3 but when I look at the pins attached and at the datasheet of my microcontroller, pins for USART3 on the MCU are not PC11 and PC10. !
I think what it's telling you is that you can use USART1 on PA9,10; or USART2 on PA2,3; or USART3 on PC10,11.
If your particular chip does not provide those specific pins, then you can't use it on that chip.
2025-04-08 1:52 AM
Hang on!
@EliazLB wrote:but when I look at the pins attached and at the datasheet of my microcontroller, pins for USART3 on the MCU are not PC11 and PC10. !
Yes, they are:
2025-04-08 1:53 AM
Hello,
>> pins for USART3 on the MCU are not PC11 and PC10
>> So my question is pretty simple, which document is right and which should I follow ?
Both are right,
>> Am I going to need to change anything
If you want to use the bootloader on USART3, probably you'll need to switch to PC10/PC11.
2025-04-08 1:56 AM
So the simple answer is I need to use pins indicated in AN2606 ?
2025-04-08 1:59 AM
Yes thank you apparently I can't really read...
2025-04-08 2:00 AM
Correct - that's why it specifically states them.
2025-04-08 2:01 AM
Alright perfect then, thank you very much !