Skip to main content
OBAYR
Associate
May 15, 2019 8:12 PM UTC
Solved

STM32F407 no erase system memory 0x1FFF 0000 - 0x1FFF 77FF, How can i erase and than write it?

Hi,

I have a STM32F407 Discovery kit, I'm working on costum bootloader program. I writed my codes, make the necessary changes in the Flash.id file with CubeIDE.

I want to write bootloader section (0x1FFF 0000 address system memory) with STM32 ST-Link Utiliy but it is error. How can i write system memory my codes? Thanks..

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
May 15, 2019 8:18 PM UTC

You don't get to update this memory, it is factory programmed.

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

6 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
May 15, 2019 8:18 PM UTC

You don't get to update this memory, it is factory programmed.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
OBAYR
OBAYRAuthor
Associate
May 15, 2019 8:28 PM UTC

So, how and where can I install my own bootloader software

Tesla DeLorean
Guru
May 15, 2019 8:31 PM UTC

You'd put it in the first sector(s) of FLASH starting at 0x08000000, and you'd put the app code deeper into FLASH say at 0x08004000, or 0x08010000 depending on how compact your loader was. Your loader would then validate and transfer control to the app code.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
OBAYR
OBAYRAuthor
Associate
May 15, 2019 8:45 PM UTC

Ok, i will try it.

Well what is the system memory? As I read from all the documents, it is used for the boot process.

Tesla DeLorean
Guru
May 15, 2019 8:57 PM UTC
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
OBAYR
OBAYRAuthor
Associate
May 15, 2019 11:11 PM UTC

Oh, OK. thank you very much. ;)