From 1e5cb9bab0cfaddea2a201481ddb84956b722e29 Mon Sep 17 00:00:00 2001 From: pvvx Date: Mon, 26 Sep 2016 04:42:52 +0300 Subject: [PATCH] add --- JLink-RunRAM.bat | 3 +++ JLinkGDB-WrFlash.bat | 6 ++++++ flasher/RTL_Reset.JLinkScript | 5 +++++ flasher/RTL_RunRAM.JLinkScript | 8 ++++++++ 4 files changed, 22 insertions(+) create mode 100644 JLink-RunRAM.bat create mode 100644 JLinkGDB-WrFlash.bat create mode 100644 flasher/RTL_Reset.JLinkScript create mode 100644 flasher/RTL_RunRAM.JLinkScript diff --git a/JLink-RunRAM.bat b/JLink-RunRAM.bat new file mode 100644 index 0000000..253941d --- /dev/null +++ b/JLink-RunRAM.bat @@ -0,0 +1,3 @@ +@echo off +PATH=D:\MCU\SEGGER\JLink_V610a;%PATH% +start JLink.exe -Device CORTEX-M3 -If SWD -Speed 4000 flasher\RTL_RunRAM.JLinkScript diff --git a/JLinkGDB-WrFlash.bat b/JLinkGDB-WrFlash.bat new file mode 100644 index 0000000..f408d98 --- /dev/null +++ b/JLinkGDB-WrFlash.bat @@ -0,0 +1,6 @@ +@echo off +PATH=D:\MCU\GNU_Tools_ARM_Embedded\5.2_2015q4\bin;D:\MCU\SEGGER\JLink_V610a;%PATH% +start JLinkGDBServer.exe -device Cortex-M3 -if SWD -ir -endian little -speed 1000 +arm-none-eabi-gdb.exe -x flasher/gdb_wrflash.jlink +taskkill /F /IM JLinkGDBServer.exe + diff --git a/flasher/RTL_Reset.JLinkScript b/flasher/RTL_Reset.JLinkScript new file mode 100644 index 0000000..303f367 --- /dev/null +++ b/flasher/RTL_Reset.JLinkScript @@ -0,0 +1,5 @@ +h +r +w4 0x40000210,0x00211157 +g +q \ No newline at end of file diff --git a/flasher/RTL_RunRAM.JLinkScript b/flasher/RTL_RunRAM.JLinkScript new file mode 100644 index 0000000..ff5a2ba --- /dev/null +++ b/flasher/RTL_RunRAM.JLinkScript @@ -0,0 +1,8 @@ +h +r +loadbin build/bin/ram_1.r.bin 0x10000bc8 +loadbin build/bin/ram_2.bin 0x10006000 +r +w4 0x40000210,0x20200113 +g +q \ No newline at end of file