2024-03-28 03:18 AM
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 ?
Solved! Go to Solution.
2024-04-15 04:59 AM
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.
2024-03-28 03:28 AM
it is the STM32G031J6
2024-03-28 04:09 AM - edited 2024-03-28 06:19 AM
Hello @Nnabb.1 ,
Which CubeProgrammer version are you using?
Flash size information in Datasheet for STM32G031J6 is (32KB).
2024-03-28 04:42 AM
hi ,
I use STM32CubeProgrammer v2.13.1. But know i have my forth core that use more than 32Kb. It works perfectly on it.
2024-03-28 05:38 AM
2024-04-15 04:59 AM
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.
2024-04-15 11:40 AM
One die frequently services several part# and an appropriate subset of the FLASH is tested at Final Test
2024-04-16 02:38 AM
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.