cancel
Showing results for 
Search instead for 
Did you mean: 

FLASH_DBANK_SUPPORT incorrectly defined for STM32G0B1CB

locchi93
Associate

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?

 

4 REPLIES 4
TDK
Guru

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.

If you feel a post has answered your question, please click "Accept as Solution".
Mahmoud Ben Romdhane
ST Employee

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:

Thanks.

Mahmoud.

@Mahmoud Ben Romdhane 

> 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.

If you feel a post has answered your question, please click "Accept as Solution".
Mahmoud Ben Romdhane
ST Employee

Hello @TDK 

Related to the Datasheet, the chip has two banks.

MahmoudBenRomdhane_1-1693318504489.png

Thanks.