将代码烧写到sram中 需要在flash 中跳转到 sram中,不然reset后 程序无法运行
typedef void (*pFunction)(void);
pFunction JumpToApplication;
/* Disable CPU L1 cache before jumping to the QSPI code execution */
SCB_DisableICache();
SCB_DisableDCache();
/* Disable Systick interrupt */
SysTick->CTRL = 0;
//HAL_DeInit();
__disable_irq();
/* Initialize user application's Stack Pointer & Jump to user application */
JumpToApplication = (pFunction) (*(__IO uint32_t*) (0x24000000 + 4));
__DSB();
__ISB();
__set_MSP(*(__IO uint32_t*) 0x24000000);
__DSB();
__ISB();
__enable_irq();
JumpToApplication();
时段 | 个数 |
---|---|
{{f.startingTime}}点 - {{f.endTime}}点 | {{f.fileCount}} |