cancel
Showing results for 
Search instead for 
Did you mean: 

Programming Flash without HAL

???????? ??????_3
Associate II

Hello, I am trying to make my own bootloader for STM32H743AIIx. Unluckly, I can't erase or program flash memory by my code. I unlock both of banks and see LOCK in FLASH_CR goes down. I put PG to up and write data until EOP flag is set. Despite the fact the full sequence was complete without any errors, I don't see any changes in memory monitor.

This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
???????? ??????_3
Associate II

Also, I have tried to use HAL. It could nor program nor erase too. I used next commands -

HAL_FLASH_Unlock();

FLASH_Erase_Sector(1, FLASH_BANK_1, FLASH_VOLTAGE_RANGE_1);

For erasing value 0x12345678 which was written to 0x0802000 address via memory browser. But nothing happend, the value was unchanged.

TDK
Super User

It helps if you show your actual code.

> For erasing value 0x12345678 which was written to 0x0802000 address via memory browser.

Address 0x0802000 isn't within the flash.

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