Skip to main content
togsin
Associate III
Jul 14, 2025 1:28 PM UTC
Solved

Stm32f412vet6 flash issue

Hi 

 

I use stm32f412 vet6.

Flash size is 512kbye.

But stm utility program is 1mbyte size.

 

Why??

1752499675223.png

This topic has been closed for replies.
TDK
TDKBest answer
Jul 14, 2025 5:43 PM UTC

Your question has already been answered.

 

The chip has 512 kB of FLASH memory that has been tested and verified.

 

Because it uses the same die as a chip with larger flash, it has additional memory beyond this. This additional memory has not been tested and is not guaranteed to work correctly, or exist on future versions of the chip, although there is a strong possibility that both of these are true. It is up to you if you want to accept the risk of using this additional memory in your projects.

"If you feel a post has answered your question, please click ""Accept as Solution""."

17 replies

mƎALLEm
ST Technical Moderator
Jul 14, 2025 1:36 PM UTC

Hello,

Please consider using STM32CubeProgrammer instead of STLINK utility. The latter is no more active and it was deprecated.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
togsin
togsinAuthor
Associate III
Jul 14, 2025 1:42 PM UTC

Hi

 

I use stmprogramer. But same problem.

512kbyte size  is 0x80000.

But tool is 0x100000.

 

Why???

mƎALLEm
ST Technical Moderator
Jul 14, 2025 1:43 PM UTC

Please share the screen shot of your Cube Programmer after connecting to the MCU

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
mƎALLEm
ST Technical Moderator
Jul 14, 2025 1:53 PM UTC

I think because 512kB and 1MB devices have the same die.

512KB is physically 1MB but only the first 512KB is tested in factory.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
togsin
togsinAuthor
Associate III
Jul 14, 2025 1:59 PM UTC

Sorry i don't understand.

 

So can i don't use 0x80e0000?

togsin
togsinAuthor
Associate III
Jul 14, 2025 2:00 PM UTC

I use 0x80e0000.

1752501602081.png

TDK
TDKBest answer
Jul 14, 2025 5:43 PM UTC

Your question has already been answered.

 

The chip has 512 kB of FLASH memory that has been tested and verified.

 

Because it uses the same die as a chip with larger flash, it has additional memory beyond this. This additional memory has not been tested and is not guaranteed to work correctly, or exist on future versions of the chip, although there is a strong possibility that both of these are true. It is up to you if you want to accept the risk of using this additional memory in your projects.

"If you feel a post has answered your question, please click ""Accept as Solution""."