Skip to main content
Associate II
November 4, 2024
Question

Flash writing is not working

  • November 4, 2024
  • 4 replies
  • 2134 views

Hello, Flash writing is not working.

When i update firmware, then Writing is working well only one time.

But after this time, result is fail in HAL_FLASH_PROGRAM() 

 

MCU : STM32F446RCT7

TaronKim_0-1730701297775.png

 

 

Thanks.

This topic has been closed for replies.

4 replies

ST Employee
November 4, 2024
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Tesla DeLorean
Guru
November 4, 2024

Please use the code pasting tool </>  and not bitmapped screen shots.

Working once suggest you fail to erase the blocks on the second go around.

You don't show enough code to fully convey the context. 

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Shirley.Ye
ST Employee
November 5, 2024

hello,

Before you program the flash, you need to erase it first.

TaronKimAuthor
Associate II
November 5, 2024

Oh i see.

Then for example, when i use 0x0801FFF0 address for flag, how can i erase only 0x0801FF0 address?

Do you have any solution?