cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G031Jx SO8N embedded uart bootloader

yo3hcv
Associate II

Hello,

I plan to use STM32G031Jx in a SO8N package and use embedded bootloader over UART.

According AN2606, both USART1 and 2 can be used

yo3hcv_0-1751554151805.png

But PA3 is not available on SO8N, so remains only USART1.

yo3hcv_1-1751554200858.png

But USART1 is used by bootloader on PA9,10 which are not directly available on SO8N packages.
These pins become available after remap (SYSCFG_CFGR1) which is default 0.

yo3hcv_2-1751554360558.png

Also in AN2606 says that

yo3hcv_3-1751554583275.png

So question, how this is working?
These devices comes (blanks) having remapping activated from SYSCFG_CFGR1?

It means that PA11,12 cannot be used anymore, because if I remap them, I will not be able to enter to bootloader at next reset, right?

Thanks for clarifications,

 

 

 

1 REPLY 1
TDK
Super User

It means the bootloader is remapping PA11/PA12 to PA9/PA10 when the bootloader starts up. Unlike option bytes, these settings are volatile and are cleared on reset or power-on, so the change must be done after that. Changing them in the application won't affect how this works. Once you jump to the bootloader, it takes over.

If you feel a post has answered your question, please click "Accept as Solution".