2022-08-21 11:36 PM
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.
2022-08-22 01:15 AM
> 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
2022-08-22 01:49 AM
yes , it is pointing to 0x20000000 RAM address. Also the vector table stord in RAM start address at 0x20000000
2022-08-22 03:49 AM
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