Skip to main content
Explorer II
November 4, 2024
Question

Flash writing is not working

  • November 4, 2024
  • 3 replies
  • 1136 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.

    3 replies

    Graduate II
    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. 

    ST Employee
    November 5, 2024

    hello,

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

    TaronKimAuthor
    Explorer 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?