Skip to main content
Hi world!
Associate III
July 22, 2019
Solved

STM32F072C8 Total Flash Memory?

  • July 22, 2019
  • 2 replies
  • 1519 views

Hi guys,

The STM32F072C8 microprocessor has a total of 31 flash pages. Each page is 2 kb in size. Thus, the processor has 64 (2x32) kb flash memory. The interesting thing is that I can read / write on page 63. How is that possible?

Thanks.

This topic has been closed for replies.
Best answer by Ozone

Because it' actually a 128k Flash device, but there is a defect somewhere in the upper 64k.

ST will retreat to guaranteed values & sizes in the datasheet, and beyond that, you are on your own.

2 replies

Uwe Bonnes
Chief
July 22, 2019

STM32F072x8 and STM32F072xB have the same datasheet, the same MCUID and so the same die. So it means upper flash is on the chip. Some chip may get the STM32F072x8 marking when

  • perhaps upper flash tested bad
  • perhaps upper flash was not tested at all
  • perhaps when market pressure requires to mark good xB chips as x8
  • perhaps some non reversable fuse disables upper flash

What really happens is ST secret.

Hi world!
Hi world!Author
Associate III
July 22, 2019

Thanks for reply.

I also think like you. The odd thing is that after page 31, writing and reading is only possible with the program. For example, I can't write there with ST Link Utility.

Tesla DeLorean
Guru
July 22, 2019

The Utilities read a value written in OTP indicating how much was tested, and how product was marked.

Test time for flash is significant. If they test only half, they can have approx twice the throughput on the equipment.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Uwe Bonnes
Chief
July 22, 2019

If the programmer reads out the flash size register, it can disallow write above the indicated flash size register. The same happens with "well-havehaving" DFU adapters. Try e.g. https://github.com/blacksphere/bl*ckm*g*c/wiki with the pc-stlinkv2 platform and it should work.