Skip to main content
sm.4
Associate
August 22, 2022
Question

CPU halted during flash erase opertaion

  • August 22, 2022
  • 3 replies
  • 1149 views

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.

This topic has been closed for replies.

3 replies

waclawek.jan
Super User
August 22, 2022

> 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
sm.4Author
Associate
August 22, 2022

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

waclawek.jan
Super User
August 22, 2022

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