hi, when i run the application , i used the external spi flash to download the firmware from my company's server, then make a upgrade flag to the spi flash and reset the chip. how can i write a basic bootloader to move the firmware to the application reginon instead of the previous application.