cancel
Showing results for 
Search instead for 
Did you mean: 

CPU halted during flash erase opertaion

sm.4
Associate

I am facing CPU halt during flash erase opertaion, so i chosen RAM linker script "STM32F769NIHX_RAM.ld" to enable code execute from RAM. Now the code and data section of my software is purely working from RAM (no fash access required) but CPU is halted if flash sector erase is performed. Please give solution to resolve CPU halt during erase.

3 REPLIES 3

> Now the code and data section of my software is purely working from RAM (no fash access required)

Are you sure? Is also interrupt vector table in RAM and VTOR pointed to it?

JW

sm.4
Associate

yes , it is pointing to 0x20000000 RAM address. Also the vector table stord in RAM start address at 0x20000000

OK so just try erasing all FLASH nothing else. If all code is in RAM, even if it stops during execution, it should continue running after the FLASH erase is finished.

If it won't, it would probably crash in a way so that you'll see in the fault status registers, from where the program attempted to fetch.

JW