Skip to main content
Associate
March 20, 2025
Solved

BOR for the STM32G031F4P6

  • March 20, 2025
  • 3 replies
  • 794 views

I'm trying to use the BOR in the STM32G031F4P6 microcontroler, as in the datasheet it shows that there is a BOR in this series. But, when I open the STM32cubeProgrammer, it doesn't show the BOR configurations at the Option Bytes window, and I couldn't arrive to activate it by code too.
My question is if there is really a BOR available for all the G0 series or it is just for some of the microcontrolers in that series?

If there is a BOR available, can I do it using the LL library?

Best answer by KDJEM.1

Hello @Fabiom02 ,

 

I reported this issue internally.

Internal ticket number: 205995 (This is an internal tracking number and is not accessible or usable by customers).

Thank you.

Kaouthar

3 replies

KDJEM.1
Technical Moderator
March 21, 2025

Hello @Fabiom02 and welcome to the community;

 

What is the STM32CubeProgrammer version are you using? Try to upgrade STM32CubeProgrammer version.

I tested this behavior with STM32Cubeprogrammer V2.19.0 and Nucleo-G031K8 and I'm able to see the BOR option bytes. 

KDJEM1_0-1742545729938.png

Could you please share a screenshot?

The BOR can be enabled or disabled only through option bytes. It is not available in Shutdown mode.
When the BOR is enabled, four BOR levels can be selected through option bytes, with independent configuration
for rising and falling thresholds.

The BOR options bytes are defined in stm32g0xx_hal_flash.h.

 

Thank you.

Kaouthar 

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.
Fabiom02Author
Associate
March 21, 2025

Hi @KDJEM.1 ,

With the Nucleo board I can see too, but for the project that I'm doing, I'm using a PCB that I made with the STM32G031F4P6, and I can't see the BOR configurations at the STM32CubeProgrammer, and I have the same version as you:

Fabiom02_0-1742550083987.png

Because for my project I need some tension monitoring like the BOR. For the microcontroler that I'm using I saw in the datasheet and in the reference manual that I can use just the BOR or the PVD since the VREF+ is not available for this package (TSSOP20), and the BOR is the fonctionality that fits better for me.

Futhermore, I'm going to change the microcontroler for the STM32C011F6P6, wich has the same package but more memory. But I'm afraid that I'm going to have the same issue.

Do you know if I can solve this or if there is another fonctionality similar wih the BOR that I can use?

KDJEM.1
KDJEM.1Best answer
Technical Moderator
April 10, 2025

Hello @Fabiom02 ,

 

I reported this issue internally.

Internal ticket number: 205995 (This is an internal tracking number and is not accessible or usable by customers).

Thank you.

Kaouthar

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.
KDJEM.1
Technical Moderator
July 8, 2025

Hello @Fabiom02;

 

The issue is fixed in STM32CubeProgrammer 2.20.0 version.

I recommend you to try with the latest version and let me know if the issue is solved or not.

 

Thank you.

Kaouthar

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.