[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 # other possibilities: DFU-UTIL, SWD, JTAG_BMP, STLINK, SERIAL
FLASH_MODE ?= SWD FLASH_MODE ?= SWD
HAS_LUFTBOOT ?= 0
# ifeq (,$(findstring $(HAS_LUFTBOOT),0 FALSE))
# $(TARGET).CFLAGS+=-DLUFTBOOT
# some default values shared between different firmwares $(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 # other possibilities: DFU-UTIL, SWD, JTAG_BMP, STLINK, SERIAL
FLASH_MODE ?= SWD FLASH_MODE ?= SWD
HAS_LUFTBOOT ?= 0
# ifeq (,$(findstring $(HAS_LUFTBOOT),0 FALSE))
# $(TARGET).CFLAGS+=-DLUFTBOOT
# some default values shared between different firmwares $(TARGET).LDFLAGS+=-Wl,-Ttext=0x8004000
# DFU_ADDR = 0x8004000
# DFU_PRODUCT = Lisa/Lia
endif
# #
+1
View File
@@ -44,6 +44,7 @@
<boards> <boards>
<board name="krooz_sd"/> <board name="krooz_sd"/>
<board name="li[s]?a_[m]?_.*"/> <board name="li[s]?a_[m]?_.*"/>
<board name="li[s]?a_mx_.*"/>
<board name="px4fmu_.*"/> <board name="px4fmu_.*"/>
</boards> </boards>
</mode> </mode>
+4
View File
@@ -42,8 +42,12 @@
void mcu_arch_init(void) { void mcu_arch_init(void) {
#if LUFTBOOT #if LUFTBOOT
PRINT_CONFIG_MSG("We are running luftboot, the interrupt vector is being relocated.") PRINT_CONFIG_MSG("We are running luftboot, the interrupt vector is being relocated.")
#if defined STM32F4
SCB_VTOR = 0x00004000;
#else
SCB_VTOR = 0x00002000; SCB_VTOR = 0x00002000;
#endif #endif
#endif
#if EXT_CLK == 8000000 #if EXT_CLK == 8000000
#if defined(STM32F1) #if defined(STM32F1)
PRINT_CONFIG_MSG("Using 8MHz external clock to PLL it to 72MHz.") 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("TUDelft MavLab. 2012->13")
valid_manufacturers.append("1 BIT SQUARED") valid_manufacturers.append("1 BIT SQUARED")
valid_manufacturers.append("S.Krukowski") valid_manufacturers.append("S.Krukowski")
valid_manufacturers.append("Paparazzi UAV")
# list of tuples with possible stm32 (autopilot) devices # list of tuples with possible stm32 (autopilot) devices
stm32devs = [] stm32devs = []