调用如下函数:

appxaddr:跳转到flash中的地址。
1 void iap_load_app(uint32_t appxaddr)
2 {
3     __set_MSP(*(uint32_t*)appxaddr);                    //初始化APP堆栈指针(用户代码区的第一个字用于存放栈顶地址)
4     ((void(*)())(*(uint32_t*)(appxaddr+4)))();
5 }

 

IAP-BootLoader代码跳转

 

 

IAP-BootLoader代码跳转

 

相关文章:

  • 2022-12-23
  • 2021-05-12
  • 2022-12-23
  • 2021-08-04
  • 2021-05-17
  • 2022-12-23
  • 2022-01-01
猜你喜欢
  • 2021-07-16
  • 2022-12-23
  • 2021-04-27
  • 2021-07-23
  • 2021-10-10
  • 2021-06-07
  • 2022-12-23
相关资源
相似解决方案