How to modify boot configuration bits STM32G030?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-04-26 7:36 AM - edited 2023-11-20 7:05 AM
Hello everybody:
I’m facing the following problem. To boot the microcontroller right know I have pin PA14 – BOOT0 to GND through a 10K pull down resistor (This pin is also shared with SYS_SWCLK) and BOOT0, nBOOT_SEL bit to 0 -> Boot area main Flash memory.
I want to achieve the same thing with nBOOT_SEL, nBOOT1, NBOOT0 bits.
To do that, I connect the programmer and access the option bytes -> user configuration -> set the pins as shown in the image and apply.
When I disconnect the programmer, power off then power on again the program doesn’t boot (now PA14 – BOOT0 is not connected with pull-down resistor). I am doing something wrong?
Thanks in advance.
Solved! Go to Solution.
- Labels:
-
Bootloader
-
STM32G0 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-04-27 6:32 AM - edited 2023-11-20 7:05 AM
Hello @JSope.1,
In fact, once BOOT0 pin is pulled to GND, there is no need to configure nBOOT0 bit and nBOOT1 bit, you either configure these options bytes or work with the BOOT0 pin.
To make it clear, you either work with BOOT0 pin, in this case nBOOT SEL must be 0, nBOOT0 and nBOOT1 bits won't matter
Or you work with options bytes, in this case nBOOT_SEL bit =1, and the option bytes will determine your selected boot area
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-04-27 6:32 AM - edited 2023-11-20 7:05 AM
Hello @JSope.1,
In fact, once BOOT0 pin is pulled to GND, there is no need to configure nBOOT0 bit and nBOOT1 bit, you either configure these options bytes or work with the BOOT0 pin.
To make it clear, you either work with BOOT0 pin, in this case nBOOT SEL must be 0, nBOOT0 and nBOOT1 bits won't matter
Or you work with options bytes, in this case nBOOT_SEL bit =1, and the option bytes will determine your selected boot area
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-05-02 3:51 AM
Hello, first of all sorry for the late response:
I have done a test with only option bits as you described, nBOOT_SEL bit to 1, BOOT0 bit to 0 and nBOOT1 pin to 1.
I made those changes with the programmer connected to the microcontroller with the STM32CubeProgrammer.
I wrote a program to blink a led, when I disconnect the device from power and from the debugger and then power on again, the led doesn't blink. It looks like the micro is in Reset permanently or Halted.
I am doing something wrong?
Thank you in advance. (Using the pin works fine).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-05-02 4:05 AM
> nBOOT_SEL bit to 1, BOOT0 bit to 0 and nBOOT1 pin to 1.
You mean nBOOT0 bit to 0? Look at the second picture of what @Sarra.S posted.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-05-02 4:11 AM
No, sorry for the typo, nBOOT0 bit to 1.
JS
