mirror of
https://github.com/drasko/open-ameba.git
synced 2024-11-24 06:54:18 +00:00
update
This commit is contained in:
parent
95b8017e95
commit
0cf6a74c39
3 changed files with 6 additions and 9 deletions
6
Makefile
6
Makefile
|
@ -18,11 +18,9 @@ ram_all_mp:
|
||||||
.PHONY: clean clean_all
|
.PHONY: clean clean_all
|
||||||
clean:
|
clean:
|
||||||
@$(MAKE) -f sdkbuild.mk clean
|
@$(MAKE) -f sdkbuild.mk clean
|
||||||
@$(MAKE) -f webfs.mk clean
|
|
||||||
|
|
||||||
clean_all:
|
clean_all:
|
||||||
@$(MAKE) -f sdkbuild.mk clean_all
|
@$(MAKE) -f sdkbuild.mk clean_all
|
||||||
@$(MAKE) -f webfs.mk clean
|
|
||||||
|
|
||||||
.PHONY: flashburn runram reset test readfullflash flashwebfs
|
.PHONY: flashburn runram reset test readfullflash flashwebfs
|
||||||
flashburn:
|
flashburn:
|
||||||
|
@ -50,8 +48,8 @@ test:
|
||||||
#@make -f flasher.mk test
|
#@make -f flasher.mk test
|
||||||
|
|
||||||
readfullflash:
|
readfullflash:
|
||||||
JLink-RdFullFlash.bat
|
#JLink-RdFullFlash.bat
|
||||||
#@make -f flasher.mk readfullflash
|
@$(MAKE) -f flasher.mk readfullflash
|
||||||
|
|
||||||
.PHONY: prerequirement
|
.PHONY: prerequirement
|
||||||
prerequirement:
|
prerequirement:
|
||||||
|
|
|
@ -170,14 +170,10 @@ flashwebfs:
|
||||||
|
|
||||||
|
|
||||||
reset:
|
reset:
|
||||||
# @$(JLINK_PATH)$(JLINK_EXE) -Device CORTEX-M3 -If SWD -Speed $(FLASHER_SPEED) flasher/RTLreset.JLinkScript
|
|
||||||
@$(OPENOCD) -f interface/$(FLASHER).cfg -c "transport select swd" -f $(FLASHER_PATH)rtl8710.ocd -c "init" -c "adapter_khz $(FLASHER_SPEED)" -c "reset halt" \
|
@$(OPENOCD) -f interface/$(FLASHER).cfg -c "transport select swd" -f $(FLASHER_PATH)rtl8710.ocd -c "init" -c "adapter_khz $(FLASHER_SPEED)" -c "reset halt" \
|
||||||
-c "rtl8710_reboot" -c shutdown
|
-c "rtl8710_reboot" -c shutdown
|
||||||
|
|
||||||
runram:
|
runram:
|
||||||
# @start $(JLINK_PATH)$(JLINK_GDB) -device Cortex-M3 -if SWD -ir -endian little -speed $(FLASHER_SPEED)
|
|
||||||
# @$(GDB) -x flasher/gdb_run_ram.jlink
|
|
||||||
# @taskkill.exe -F -IM $(JLINK_GDB)
|
|
||||||
@$(OPENOCD) -f interface/$(FLASHER).cfg -c "transport select swd" -f $(FLASHER_PATH)rtl8710.ocd -c "init" -c "adapter_khz $(FLASHER_SPEED)" -c "reset halt" \
|
@$(OPENOCD) -f interface/$(FLASHER).cfg -c "transport select swd" -f $(FLASHER_PATH)rtl8710.ocd -c "init" -c "adapter_khz $(FLASHER_SPEED)" -c "reset halt" \
|
||||||
-c "load_image $(RAM1R_IMAGE) 0x10000bc8 bin" \
|
-c "load_image $(RAM1R_IMAGE) 0x10000bc8 bin" \
|
||||||
-c "load_image $(RAM2_IMAGE) 0x10006000 bin" \
|
-c "load_image $(RAM2_IMAGE) 0x10006000 bin" \
|
||||||
|
|
5
paths.mk
5
paths.mk
|
@ -5,8 +5,11 @@ SDK_PATH = RTL00_SDKV35a/
|
||||||
#GCC_PATH = d:/MCU/GNU_Tools_ARM_Embedded/5.2_2015q4/bin/# + or set in PATH
|
#GCC_PATH = d:/MCU/GNU_Tools_ARM_Embedded/5.2_2015q4/bin/# + or set in PATH
|
||||||
#OPENOCD_PATH = d:/MCU/OpenOCD/bin/# + or set in PATH
|
#OPENOCD_PATH = d:/MCU/OpenOCD/bin/# + or set in PATH
|
||||||
TOOLS_PATH ?= $(SDK_PATH)component/soc/realtek/8195a/misc/iar_utility/common/tools/
|
TOOLS_PATH ?= $(SDK_PATH)component/soc/realtek/8195a/misc/iar_utility/common/tools/
|
||||||
|
FLASHER_TYPE ?= Jlink
|
||||||
|
#FLASHER_TYPE ?= OCD
|
||||||
FLASHER_PATH ?= flasher/
|
FLASHER_PATH ?= flasher/
|
||||||
JLINK_PATH ?= D:/MCU/SEGGER/JLink_V610a/
|
JLINK_PATH ?= D:/MCU/SEGGER/JLink_V612i/
|
||||||
|
JLINK_GDBSRV ?= JLinkGDBServer.exe
|
||||||
#---------------------------
|
#---------------------------
|
||||||
# Default
|
# Default
|
||||||
#---------------------------
|
#---------------------------
|
||||||
|
|
Loading…
Reference in a new issue