diff --git a/JLinkGDB-RunRAM.bat b/JLinkGDB-RunRAM.bat index 8b80636..40333de 100644 --- a/JLinkGDB-RunRAM.bat +++ b/JLinkGDB-RunRAM.bat @@ -6,7 +6,7 @@ echo Build project... mingw32-make.exe -f Makefile all @if not exist build\obj\build.axf goto err :run -start JLinkGDBServer.exe -device Cortex-M3 -if SWD -ir -endian little -speed 3500 +start JLinkGDBServer.exe -device Cortex-M3 -if SWD -ir -endian little -speed 1000 arm-none-eabi-gdb.exe -x flasher/gdb_run_ram.jlink taskkill /F /IM JLinkGDBServer.exe goto end diff --git a/JLinkGDBServer.bat b/JLinkGDBServer.bat index 001eb32..974e29f 100644 --- a/JLinkGDBServer.bat +++ b/JLinkGDBServer.bat @@ -1,4 +1,6 @@ @echo off -PATH=D:\MCU\SEGGER\JLink_V610a;%PATH% -start JLinkGDBServerCL.exe -device Cortex-M3 -if SWD -ir -endian little -speed 3500 +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_init.jlink +taskkill /F /IM JLinkGDBServer.exe diff --git a/flasher/gdb_run_ram.jlink b/flasher/gdb_run_ram.jlink index f682d99..296e42b 100644 --- a/flasher/gdb_run_ram.jlink +++ b/flasher/gdb_run_ram.jlink @@ -2,16 +2,24 @@ # J-LINK GDB SERVER initialization # target remote localhost:2331 +set remotetimeout 10000 monitor device Cortex-M3 -monitor speed 3500 monitor endian little monitor reset -monitor speed 20000 +# Set max speed +monitor speed 4000 +set mem inaccessible-by-default off # Setup GDB FOR FASTER DOWNLOADS -#set remote memory-write-packet-size 4096 +set remote memory-write-packet-size 8192 #set remote memory-write-packet-size fixed +# Boot Flash +#monitor long 0x40000210 = 0x211157 # Boot RAM monitor long 0x40000210 = 0x8011157 +# CPU CLK 166 MHz? +# monitor long 0x40000014 = 0x00000011 +# CPU CLK 83 MHz? +#monitor long 0x40000014 = 0x00000021 # Load the program executable called "image.elf" load build/obj/build.axf #continue diff --git a/sdkbuild.mk b/sdkbuild.mk index 4861b98..31463ba 100644 --- a/sdkbuild.mk +++ b/sdkbuild.mk @@ -37,7 +37,6 @@ build_info: else \ echo \#define RTL8195AFW_COMPILE_DOMAIN ; \ fi >> .ver - @echo \#define RTL195AFW_COMPILER \"gcc `$(CC) $(CFLAGS) -dumpversion | tr --delete '\r'`\" >> .ver @mv -f .ver project/realtek_ameba1_va0_example/inc/$@.h