mirror of
https://gitee.com/dlmu-cone/bf_original_balance_chassis
synced 2026-07-24 03:27:45 +08:00
增加了一键下载(不调试)的支持,并更新了makefile,添加了make clean支持
This commit is contained in:
15
Makefile
15
Makefile
@@ -292,8 +292,19 @@ $(BUILD_DIR):
|
||||
# clean up
|
||||
#######################################
|
||||
clean:
|
||||
-rm -r -Force $(BUILD_DIR)
|
||||
|
||||
rmdir /q $(BUILD_DIR)
|
||||
|
||||
#######################################
|
||||
# download without debugging
|
||||
#######################################
|
||||
OPENOCD_FLASH_START = 0x08000000 # 如果切换芯片可能需要修改此值
|
||||
|
||||
download_dap:
|
||||
openocd -f openocd_dap.cfg -c init -c halt -c "flash write_image erase $(BUILD_DIR)/$(TARGET).hex $(OPENOCD_FLASH_START)" -c reset -c shutdown
|
||||
|
||||
download_jlink:
|
||||
openocd -f openocd_jlink.cfg -c init -c halt -c "flash write_image erase $(BUILD_DIR)/$(TARGET).hex $(OPENOCD_FLASH_START)" -c reset -c shutdown
|
||||
|
||||
#######################################
|
||||
# dependencies
|
||||
#######################################
|
||||
|
||||
Reference in New Issue
Block a user