代码拉取完成,页面将自动刷新
#
# PX4 bootloader build rules for STM32F7 targets.
# Since the STM32F7 is not supported fully in libopencm3 at this time,
# this build is a bit of a hack to use the similar IP blocks of the F469
# for USB by telling libopencm3 it is an STM32F4
ARCH=stm32
OPENOCD ?= openocd
JTAGCONFIG ?= interface/olimex-jtag-tiny.cfg
#JTAGCONFIG ?= interface/jtagkey-tiny.cfg
# 5 seconds / 5000 ms default delay
PX4_BOOTLOADER_DELAY ?= 5000
SRCS = $(COMMON_SRCS) $(addprefix $(ARCH)/,$(ARCH_SRCS)) main_f7.c
LIBS = opencm3_stm32f7 opencm3_stm32f4
FLAGS += -g -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-sp-d16 \
-DTARGET_HW_$(TARGET_HW) \
-T$(LINKER_FILE) \
-L$(LIBOPENCM3)/lib $(addprefix -l, $(LIBS)) \
-DSTM32F7
# libopencm3 doesn't have USB driver in stm32f7 library, tell it to use the one from stm32f4
# for the cdcacm
$(BUILD_DIR_ROOT)/$(TARGET_FILE_NAME)/stm32/cdcacm.o : FLAGS+=-DSTM32F4
#
# General rules for making dependency and object files
# This is where the compiler is called
#
include rules.mk
#upload: all flash flash-bootloader
upload: all flash-bootloader
flash-bootloader:
$(OPENOCD) --search ../px4_bootloader -f $(JTAGCONFIG) -f stm32f4x.cfg -c init -c "reset halt" -c "flash write_image erase $(BINARY) 0x08000000" -c "reset run" -c shutdown
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。