cancel
Showing results for 
Search instead for 
Did you mean: 

bootloader for STM32G474QET6 - usable UART pins?

EliazLB
Associate

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 :

EliazLB_0-1744100551282.png

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. 

EliazLB_1-1744100662917.png

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 !

1 ACCEPTED SOLUTION

Accepted Solutions
Mike_ST
ST Employee

Hello,

>> pins for USART3 on the MCU are not PC11 and PC10

 

Mike_ST_0-1744102086837.png

 

>> 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.

View solution in original post

7 REPLIES 7

@EliazLB wrote:

EliazLB_0-1744100551282.png

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.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

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:

AndrewNeil_0-1744102282872.png

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
Mike_ST
ST Employee

Hello,

>> pins for USART3 on the MCU are not PC11 and PC10

 

Mike_ST_0-1744102086837.png

 

>> 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.

EliazLB
Associate

So the simple answer is I need to use pins indicated in AN2606 ?

 

Yes thank you apparently I can't really read...

Correct - that's why it specifically states them.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
EliazLB
Associate

Alright perfect then, thank you very much !