rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
dfu_init.h
Go to the documentation of this file.
1
2// https://community.st.com/s/question/0D50X00009bNBluSAG/boot-stm32h7-after-power-up
3// https://community.st.com/s/article/STM32H7-bootloader-jump-from-application
4
5#ifndef HW_LAYER_PORTS_STM32_STM32F7_DFU_INIT_H_
6#define HW_LAYER_PORTS_STM32_STM32F7_DFU_INIT_H_
7
8// System control block registers base
9LDR R1, =0xE000ED00
10
11// location of system memory (DFU bootloader)
12LDR R0, =0x1FF09800
13
14// Set the vector table offset to the sysmem image
15STR R0, [R1, #8]
16
17// load the stack pointer
18LDR SP, [R0, #0]
19
20// prepare for jump to bootloader
21LDR R0, [R0, #4]
22
23#endif /* HW_LAYER_PORTS_STM32_STM32F7_DFU_INIT_H_ */
LDR R0
Definition dfu_init.h:11
LDR R1
Definition dfu_init.h:12
LDR LDR SP
Definition dfu_init.h:15