So the stm32f030f4 has 32Kb flash

Anything not related to STM32
Post Reply
.rpv
Posts: 44
Joined: Wed Dec 18, 2019 10:19 pm

So the stm32f030f4 has 32Kb flash

Post by .rpv »

I was reading a post about ST using the same DIE for several MCUs and saw that the F030F and F030K uses the same DIE, so both must have the same flash size...right?, I did a test using the U8x8 lib,the graphic test, using I2C and yes, it works:

Code: Select all

Sketch uses 31572 bytes (96%) of program storage space. Maximum is 32768 bytes.
Global variables use 1196 bytes (29%) of dynamic memory, leaving 2900 bytes for local variables. Maximum is 4096 bytes.
"C:\Users\.rpv\AppData\Local\Arduino15\packages\STMicroelectronics\tools\STM32Tools\2.3.0/win/busybox.exe" sh "C:\Users\.rpv\AppData\Local\Arduino15\packages\STMicroelectronics\tools\STM32Tools\2.3.0/stm32CubeProg.sh" -i swd -f "C:\Users\.rpv\AppData\Local\arduino\sketches\3191DEF0DDFD5DDB6D1B98351BA3FF58/display_32KB_I2C.ino.bin" -o 0x0 
Selected interface: swd
      -------------------------------------------------------------------
                       STM32CubeProgrammer v2.13.0                  
      -------------------------------------------------------------------

ST-LINK SN  : 48FF6D064986484915420787
ST-LINK FW  : V2J45S7
Board       : --
Voltage     : 3.26V
SWD freq    : 4000 KHz
Connect mode: Under Reset
Reset mode  : Hardware reset
Device ID   : 0x444
Revision ID : Rev 1.0
Device name : STM32F03x
Flash size  : 16 KBytes
Device type : MCU
Device CPU  : Cortex-M0
BL Version  : 0x10



Memory Programming ...
Opening and parsing file: display_32KB_I2C.ino.bin
  File          : display_32KB_I2C.ino.bin
  Size          : 31.05 KB 
  Address       : 0x08000000 


Erasing memory corresponding to segment 0:
Download in Progress:


File download complete
Time elapsed during download operation: 00:00:01.816

RUNNING Program ... 
  Address:      : 0x8000000
Application is running, Please Hold on...
Start operation achieved successfully
It uploads the whole 31K even when it says that only has 16Kb flash :lol:

You just need to edit the boards.txt to change the flash size to 32768 :D
ahsrabrifat
Posts: 2
Joined: Sun Jun 22, 2025 7:59 am

Re: So the stm32f030f4 has 32Kb flash

Post by ahsrabrifat »

Many STM32F030 variants use the same die. F030F4 devices can often use 32 KB flash, just like F030K6, by modifying the boards.txt. It's unofficial and not guaranteed by ST, but it works in practice, as your test confirmed.
Post Reply

Return to “Off topic”