open-ameba/sdk/flasher/add_sample_bat/JLinkOCD-RdFullFlash.bat

8 lines
295 B
Batchfile
Raw Normal View History

2017-01-31 03:46:49 +00:00
@echo off
2017-02-02 07:05:13 +00:00
call paths.bat
2017-01-31 03:46:49 +00:00
cd flasher
2017-02-02 07:05:13 +00:00
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 "adapter_khz 3900" -c "rtl8710_flash_read ../fullflash.bin 0 1048576" -c "shutdown"
2017-01-31 03:46:49 +00:00
echo flash read fullflash.bin
pause