FLASH_DBANK_SUPPORT incorrectly defined for STM32G0B1CB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-08-29 4:56 AM
Hi, I write to report a possible bug in generating a project by selecting an STM32G0B1CB MCU.
I created the basic project using STM32CubeMX (6.9.0).
In the autogenerated file "stm32g0b1xx.h" (in Drivers/CMSIS/Device/ST/STM32G0xx/Include) there is the following define:
#define FLASH_DBANK_SUPPORT
However, the chip in question should have only one bank of 128kB.
Is this a bug or am I missing something?
- Labels:
-
STM32G0 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-08-29 6:22 AM
Seems like a bug to me.
Note that often on chips like this, both banks of FLASH are present, but ST only tests the portion that they specify in the datasheet.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-08-29 6:53 AM - edited ‎2023-08-29 6:54 AM
Hello @locchi93 and welcome to the Community.
The Dual bank feature is supported in STM32G0B01 MCU devices.
For more explanation, please refer to FLASH memory organization Section and FLASH option byte description Section in RM0444.
I suggest also viewing the two links:
- Boot from Bank 2: nSWAP_BANK vs. BFB2 - STMicroelectronics Community
- STM32G0B01xx Dual bank boot implementation - STMicroelectronics Community
Thanks.
Mahmoud.
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-08-29 6:58 AM
> The Dual bank feature is supported in STM32G0B01 MCU devices.
The STM32G0B1CB has 128kB of FLASH per the datasheet (and the OP).
There is no table in the RM which suggests it has dual bank support.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-08-29 7:17 AM
Hello @TDK
Related to the Datasheet, the chip has two banks.
Thanks.
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.
