STM32G041 boot mode selection
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-04-10 10:27 PM
Hello All,
We are using STM32G041F8P6 in our project. This IC will be programmed through I2C/USART and we will be using System Memory for booting(internal flash).
As per the datasheet:
At startup, the boot pin and boot selector option bit are used to select one of the three boot
options:
• boot from User Flash memory
• boot from System memory
• boot from embedded SRAM
Can you please let me know where I can find the info about Boot0 pin and Boot bit setting to boot from internal flash memory?
Thank you
Solved! Go to Solution.
- Labels:
-
Bootloader
-
Flash
-
I2C
-
STM32G0 Series
-
UART-USART
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-04-11 1:58 AM - edited 2023-11-20 8:34 AM
Hello @sagar_bn ,
Yes indeed on STM32G0x1 devices there are three different boot mode which can be selected through the BOOT0 pin (PA14) and the boot configuration bits nBOOT1, BOOT_SEL and nBOOT0in the User option byte.
Here is the different configurations, you can find them in the Reference Manual (attached) "section 2.5 Boot configuration"
In summary, if you want to boot from the internal flash, you can :
- if you use Boot0 pin (PA14) : put BOOT0 pin (PA14) and the bits BOOIT_LOCK, nBOOT_SEL at 0
- if you use the Boot bit : put nBOOT_SEL and nBOOT0 bits to 1
Best Regards,
A.MVE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-04-11 1:58 AM - edited 2023-11-20 8:34 AM
Hello @sagar_bn ,
Yes indeed on STM32G0x1 devices there are three different boot mode which can be selected through the BOOT0 pin (PA14) and the boot configuration bits nBOOT1, BOOT_SEL and nBOOT0in the User option byte.
Here is the different configurations, you can find them in the Reference Manual (attached) "section 2.5 Boot configuration"
In summary, if you want to boot from the internal flash, you can :
- if you use Boot0 pin (PA14) : put BOOT0 pin (PA14) and the bits BOOIT_LOCK, nBOOT_SEL at 0
- if you use the Boot bit : put nBOOT_SEL and nBOOT0 bits to 1
Best Regards,
A.MVE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-04-13 12:44 AM
Hi @sagar_bn ,
Do you need any additional support on this topic?
Please let me know ;)
BR
A.MVE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-04-13 12:46 AM
HI @Aime
Thank you for the support.
