1 Star 4 Fork 0

px4/Bootloader

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile.f3 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
#
# PX4 bootloader build rules for STM32F3 targets.
#
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_f3.c
FLAGS += -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 \
-DTARGET_HW_$(TARGET_HW) \
-DSTM32F3 \
-T$(LINKER_FILE) \
-L$(LIBOPENCM3)/lib \
-lopencm3_stm32f3 \
$(EXTRAFLAGS)
# libopencm3 doesn't have USB driver in stm32f3 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 stm32f3x.cfg -c init -c "reset halt" -c "flash write_image erase $(BINARY) 0x08000000" -c "reset run" -c shutdown
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/px4/Bootloader.git
git@gitee.com:px4/Bootloader.git
px4
Bootloader
Bootloader
master

搜索帮助