[boards][stm32f4] Lisa MX luftboot support

Added support for luftboot-like bootloader for Lisa MX 2.0 and 2.1
(the bootloader itself is in ext repository, this is only support in pprzi code)
This commit is contained in:
podhrmic
2014-12-07 08:32:47 +01:00
committed by Felix Ruess
parent 88fe553f02
commit 03b58017f9
5 changed files with 20 additions and 12 deletions
+7 -6
View File
@@ -21,12 +21,13 @@ $(TARGET).LDSCRIPT=$(SRC_ARCH)/lisa-mx.ld
# other possibilities: DFU-UTIL, SWD, JTAG_BMP, STLINK, SERIAL
FLASH_MODE ?= SWD
#
#
# some default values shared between different firmwares
#
#
HAS_LUFTBOOT ?= 0
ifeq (,$(findstring $(HAS_LUFTBOOT),0 FALSE))
$(TARGET).CFLAGS+=-DLUFTBOOT
$(TARGET).LDFLAGS+=-Wl,-Ttext=0x8004000
DFU_ADDR = 0x8004000
DFU_PRODUCT = Lisa/Lia
endif
#
+7 -6
View File
@@ -21,12 +21,13 @@ $(TARGET).LDSCRIPT=$(SRC_ARCH)/lisa-mx.ld
# other possibilities: DFU-UTIL, SWD, JTAG_BMP, STLINK, SERIAL
FLASH_MODE ?= SWD
#
#
# some default values shared between different firmwares
#
#
HAS_LUFTBOOT ?= 0
ifeq (,$(findstring $(HAS_LUFTBOOT),0 FALSE))
$(TARGET).CFLAGS+=-DLUFTBOOT
$(TARGET).LDFLAGS+=-Wl,-Ttext=0x8004000
DFU_ADDR = 0x8004000
DFU_PRODUCT = Lisa/Lia
endif
#
+1
View File
@@ -44,6 +44,7 @@
<boards>
<board name="krooz_sd"/>
<board name="li[s]?a_[m]?_.*"/>
<board name="li[s]?a_mx_.*"/>
<board name="px4fmu_.*"/>
</boards>
</mode>
+4
View File
@@ -42,8 +42,12 @@
void mcu_arch_init(void) {
#if LUFTBOOT
PRINT_CONFIG_MSG("We are running luftboot, the interrupt vector is being relocated.")
#if defined STM32F4
SCB_VTOR = 0x00004000;
#else
SCB_VTOR = 0x00002000;
#endif
#endif
#if EXT_CLK == 8000000
#if defined(STM32F1)
PRINT_CONFIG_MSG("Using 8MHz external clock to PLL it to 72MHz.")
+1
View File
@@ -153,6 +153,7 @@ if __name__ == "__main__":
valid_manufacturers.append("TUDelft MavLab. 2012->13")
valid_manufacturers.append("1 BIT SQUARED")
valid_manufacturers.append("S.Krukowski")
valid_manufacturers.append("Paparazzi UAV")
# list of tuples with possible stm32 (autopilot) devices
stm32devs = []