Skip to main content
Explorer
March 28, 2024
Solved

size of flash in STM32G0J6

  • March 28, 2024
  • 3 replies
  • 2065 views
Spoiler
 

Hi, 

I have a question about the size of the flash of STM32G0J6. When i use STM32 cube programmer - CLI i saw that the size of the flash of the STM32G0J6 is 64Kb. I try to write everywhere in this memory it works. The datasheet say that the STM32G0J6 flash size is 32Kb and when you look at register 0x1FFFF75E0 it says that the flash size is 32Kb. Is it  normal ? 

 

    This topic has been closed for replies.
    Best answer by Nnabb.1

    conclusion : 

    STM32G031J6 have a 64kb of usable flash

    register 0x1FFFF75E0 return 32Kb 

    Datasheet says it has only 32Kb of flash 

    If you want to read protect the flash you have enough bit to protect 64Kb ( and you have to set all these bit ). 

    I will check other models of microcontroller if we have the same problem. 

    3 replies

    Nnabb.1Author
    Explorer
    March 28, 2024

    it is the STM32G031J6

    Technical Moderator
    March 28, 2024

    Hello @Nnabb.1 ,

    Which CubeProgrammer version are you using?

    Flash size information in Datasheet for STM32G031J6 is (32KB). 

    Nnabb.1Author
    Explorer
    March 28, 2024

    hi , 

    I use STM32CubeProgrammer v2.13.1. But know i have my forth core that use more than 32Kb. It works perfectly on it. 

    Nnabb.1AuthorAnswer
    Explorer
    April 15, 2024

    conclusion : 

    STM32G031J6 have a 64kb of usable flash

    register 0x1FFFF75E0 return 32Kb 

    Datasheet says it has only 32Kb of flash 

    If you want to read protect the flash you have enough bit to protect 64Kb ( and you have to set all these bit ). 

    I will check other models of microcontroller if we have the same problem. 

    Graduate II
    April 15, 2024

    One die frequently services several part# and an appropriate subset of the FLASH is tested at Final Test

    Nnabb.1Author
    Explorer
    April 16, 2024

    Ok but you still have a problem with the documentation. To write protect the flash you have to consider that you have 64Kb of flash and not 32Kb in FLASH_WRP. If you don't set all the bit it doesn't works.