Guest User

Untitled

a guest
Jan 22nd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. void boot_softs() {
  2.  
  3. volatile uint32_t addr = 0x1FFF0000;
  4. void (*SysMemBootJump)(void);
  5. SysMemBootJump = (void (*)(void)) (*((uint32_t *)(addr + 4)));
  6.  
  7. HAL_RCC_DeInit();
  8. SysTick->CTRL = 0;
  9. SysTick->LOAD = 0;
  10. SysTick->VAL = 0;
  11. _disable_irq();
  12. SYSCFG->MEMRMP = 0x01;
  13. __set_MSP(*(__IO uint32_t*)0x20001000);
  14. SysMemBootJump();
  15.  
  16. }
Add Comment
Please, Sign In to add comment