mirror of
https://github.com/drasko/open-ameba.git
synced 2024-12-24 15:15:18 +00:00
add
This commit is contained in:
parent
898fa8329e
commit
ad23e91b43
9 changed files with 48 additions and 2 deletions
6
DAPLink-RTL00Console.bat
Normal file
6
DAPLink-RTL00Console.bat
Normal file
|
@ -0,0 +1,6 @@
|
|||
@echo off
|
||||
cd flasher
|
||||
openocd -f interface/cmsis-dap.cfg -c "adapter_khz 1000" -f rtl8710.ocd -f cortex.ocd -c "init" -c "reset halt" -c "load_ram_binary RTL00Console_ROM.bin" -c "exit"
|
||||
rem -c "shutdown"
|
||||
|
||||
|
6
DAPLink-RdFullFlash.bat
Normal file
6
DAPLink-RdFullFlash.bat
Normal file
|
@ -0,0 +1,6 @@
|
|||
@echo off
|
||||
cd flasher
|
||||
openocd -f interface/cmsis-dap.cfg -c "adapter_khz 1000" -f rtl8710.ocd -f cortex.ocd -c "init" -c "reset halt" -c "rtl8710_flash_read_id" -c "adapter_khz 5000" -c "rtl8710_flash_read ../fullflash.bin 0 1048576" -c "shutdown"
|
||||
echo flash read fullflash.bin
|
||||
pause
|
||||
|
4
DAPLink-Reset.bat
Normal file
4
DAPLink-Reset.bat
Normal file
|
@ -0,0 +1,4 @@
|
|||
@cd flasher
|
||||
openocd -f interface/cmsis-dap.cfg -c "adapter_khz 1000" -f rtl8710.ocd -f cortex.ocd -c "init" -c "reset halt" -c "cortex_reboot" -c "shutdown"
|
||||
rem
|
||||
|
5
DAPLink_WrFullFlash.bat
Normal file
5
DAPLink_WrFullFlash.bat
Normal file
|
@ -0,0 +1,5 @@
|
|||
@echo off
|
||||
cd flasher
|
||||
openocd -f interface/cmsis-dap.cfg -c "adapter_khz 3500" -f rtl8710.ocd -f cortex.ocd -c "init" -c "reset halt" -c "rtl8710_flash_read_id" -c "rtl8710_flash_auto_erase 1" -c "rtl8710_flash_auto_verify 1" -c "rtl8710_flash_write fullflash.bin 0" -c "shutdown"
|
||||
pause
|
||||
|
|
@ -1,8 +1,11 @@
|
|||
@echo off
|
||||
PATH=D:\MCU\GNU_Tools_ARM_Embedded\5.2_2015q4\bin;D:\MCU\SEGGER\JLink_V610a;%PATH%
|
||||
@if not %1x==x goto xxx
|
||||
set img_file=build/bin/ram_all.bin
|
||||
@if %1x==x goto xxx
|
||||
set img_file=%1
|
||||
goto run
|
||||
:xxx
|
||||
set img_file=build/bin/ram_all.bin
|
||||
:run
|
||||
echo define call1>flasher/flash_file.jlink
|
||||
echo SetFirwareSize %img_file%>>flasher/flash_file.jlink
|
||||
echo end>>flasher/flash_file.jlink
|
||||
|
|
6
JLinkOCD-RdFullFlash.bat
Normal file
6
JLinkOCD-RdFullFlash.bat
Normal file
|
@ -0,0 +1,6 @@
|
|||
@echo off
|
||||
cd flasher
|
||||
openocd -f interface/Jlink.cfg -c "adapter_khz 3500" -f rtl8710.ocd -f cortex.ocd -c "init" -c "reset halt" -c "rtl8710_flash_read_id" -c "rtl8710_flash_read ../fullflash.bin 0 1048576" -c "shutdown"
|
||||
echo flash read fullflash.bin
|
||||
pause
|
||||
|
6
JLink_RdFullFlash.bat
Normal file
6
JLink_RdFullFlash.bat
Normal file
|
@ -0,0 +1,6 @@
|
|||
@echo off
|
||||
cd flasher
|
||||
openocd -f interface/Jlink.cfg -c "adapter_khz 1000" -f rtl8710.ocd -f cortex.ocd -c "init" -c "reset halt" -c "adapter_khz 3500" -c "rtl8710_flash_read_id" -c "rtl8710_flash_read ../fullflash.bin 0 1048576" -c "shutdown"
|
||||
echo flash read fullflash.bin
|
||||
pause
|
||||
|
6
STLink-RdFullFlash.bat
Normal file
6
STLink-RdFullFlash.bat
Normal file
|
@ -0,0 +1,6 @@
|
|||
@echo off
|
||||
cd flasher
|
||||
openocd -f interface/stlink-v2.cfg -c "adapter_khz 1000" -f rtl8710.ocd -f cortex.ocd -c "init" -c "reset halt" -c "rtl8710_flash_read_id" -c "adapter_khz 5000" -c "rtl8710_flash_read ../fullflash.bin 0 1048576" -c "shutdown"
|
||||
echo flash read fullflash.bin
|
||||
pause
|
||||
|
4
STLink-Reset.bat
Normal file
4
STLink-Reset.bat
Normal file
|
@ -0,0 +1,4 @@
|
|||
@cd flasher
|
||||
openocd -f interface/stlink-v2.cfg -c "adapter_khz 1000" -f rtl8710.ocd -f cortex.ocd -c "init" -c "reset halt" -c "cortex_reboot" -c "shutdown"
|
||||
rem
|
||||
|
Loading…
Reference in a new issue