rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
dfu_init.h
Go to the documentation of this file.
1/*
2 * dfu_init.h
3 *
4 * @date Aug 3, 2019
5 * @author Andrey Belomutskiy, (c) 2012-2020
6 */
7
8#ifndef HW_LAYER_PORTS_STM32_STM32F7_DFU_INIT_H_
9#define HW_LAYER_PORTS_STM32_STM32F7_DFU_INIT_H_
10
11// System control block registers base
12LDR R1, =0xE000ED00
13
14// location of system memory (DFU bootloader)
15LDR R0, =0x1FF00000
16
17// Set the vector table offset to the sysmem image
18STR R0, [R1, #8]
19
20// load the stack pointer
21LDR SP, [R0, #0]
22
23// prepare for jump to bootloader
24LDR R0, [R0, #4]
25
26#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