Is it possible to overwrite the external flash memory from itself?
Hello everyone! I have a STM32H750VBT6 controller with external W25Q128 QSPI memory.
The bootloader starts from address 0x080000000, initializes the flash in memory mapping mode and starts the main program from 0x900000000.
There was a need to update the data in the external memory. Since the update must be done via Ethernet, this amount of code will not fit in the 128k flash. Question: is it possible to put the code that directly clears the memory and writes, for example, in the address 0x080100000 and use it there.
How to properly disable execution from SPI for the duration of work from the address 0x080100000, and then return to the same place from where the jump function was called.
Or will this not work?

