mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-02 13:27:32 +08:00
[stm32] Fixed BMP firmware upload reset when using luftboot.
This commit is contained in:
@@ -25,6 +25,7 @@ FLASH_MODE = DFU
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef NO_LUFTBOOT
|
ifndef NO_LUFTBOOT
|
||||||
|
$(TARGET).CFLAGS+=-DLUFTBOOT
|
||||||
$(TARGET).LDFLAGS+=-Wl,-Ttext=0x8002000
|
$(TARGET).LDFLAGS+=-Wl,-Ttext=0x8002000
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@@ -30,8 +30,13 @@
|
|||||||
#include <libopencm3/stm32/f1/gpio.h>
|
#include <libopencm3/stm32/f1/gpio.h>
|
||||||
#include <libopencm3/stm32/f1/rcc.h>
|
#include <libopencm3/stm32/f1/rcc.h>
|
||||||
#include <libopencm3/stm32/f1/flash.h>
|
#include <libopencm3/stm32/f1/flash.h>
|
||||||
|
#include <libopencm3/stm32/f1/scb.h>
|
||||||
|
|
||||||
void mcu_arch_init(void) {
|
void mcu_arch_init(void) {
|
||||||
|
#if LUFTBOOT
|
||||||
|
#pragma message "We are running luftboot, the interrupt vector is being relocated."
|
||||||
|
SCB_VTOR = 0x00002000;
|
||||||
|
#endif
|
||||||
#if EXT_CLK == 8000000
|
#if EXT_CLK == 8000000
|
||||||
#pragma message "Using 8MHz external clock to PLL it to 72MHz."
|
#pragma message "Using 8MHz external clock to PLL it to 72MHz."
|
||||||
rcc_clock_setup_in_hse_8mhz_out_72mhz();
|
rcc_clock_setup_in_hse_8mhz_out_72mhz();
|
||||||
|
|||||||
Reference in New Issue
Block a user