关于STM32 HAL库版本IAP升级跳转一直进入HAL_Delay()函数;只需要在升级 程序中加入如下代码;主要动作就是关闭中断

发布时间 2023-10-18 09:39:40作者: 周总在纽约

__set_FAULTMASK(1);

/* set vector table/
SCB->VTOR = FLASH_BASE | 0x1F800; //
/
USER CODE END 1 */

/* MCU Configuration--------------------------------------------------------/
/
Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();

/* USER CODE BEGIN Init /
/
open interruption*/
__ASM("CPSIE I"); //
__set_FAULTMASK(0); //