code 1: start:int main(void){ /* USER CODE BEGIN 1 */ LL_SYSCFG_SetRemapMemory(LL_SYSCFG_REMAP_FLASH); LL_SYSCFG_SetFlashBankMode(LL_SYSCFG_BANKMODE_BANK2);……}code 2:switch:void switchFlashBankToUpgrade(uint16_t BootBank){ HAL_FLASH_OB_Unlock(); HAL...