This commit is contained in:
pvvx 2016-09-23 12:57:10 +03:00
parent a7a75d120b
commit b0e49f773c
4 changed files with 16 additions and 7 deletions

View file

@ -6,7 +6,7 @@ echo Build project...
mingw32-make.exe -f Makefile all mingw32-make.exe -f Makefile all
@if not exist build\obj\build.axf goto err @if not exist build\obj\build.axf goto err
:run :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 arm-none-eabi-gdb.exe -x flasher/gdb_run_ram.jlink
taskkill /F /IM JLinkGDBServer.exe taskkill /F /IM JLinkGDBServer.exe
goto end goto end

View file

@ -1,4 +1,6 @@
@echo off @echo off
PATH=D:\MCU\SEGGER\JLink_V610a;%PATH% PATH=D:\MCU\GNU_Tools_ARM_Embedded\5.2_2015q4\bin;D:\MCU\SEGGER\JLink_V610a;%PATH%
start JLinkGDBServerCL.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_init.jlink
taskkill /F /IM JLinkGDBServer.exe

View file

@ -2,16 +2,24 @@
# J-LINK GDB SERVER initialization # J-LINK GDB SERVER initialization
# #
target remote localhost:2331 target remote localhost:2331
set remotetimeout 10000
monitor device Cortex-M3 monitor device Cortex-M3
monitor speed 3500
monitor endian little monitor endian little
monitor reset monitor reset
monitor speed 20000 # Set max speed
monitor speed 4000
set mem inaccessible-by-default off
# Setup GDB FOR FASTER DOWNLOADS # 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 #set remote memory-write-packet-size fixed
# Boot Flash
#monitor long 0x40000210 = 0x211157
# Boot RAM # Boot RAM
monitor long 0x40000210 = 0x8011157 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 the program executable called "image.elf"
load build/obj/build.axf load build/obj/build.axf
#continue #continue

View file

@ -37,7 +37,6 @@ build_info:
else \ else \
echo \#define RTL8195AFW_COMPILE_DOMAIN ; \ echo \#define RTL8195AFW_COMPILE_DOMAIN ; \
fi >> .ver fi >> .ver
@echo \#define RTL195AFW_COMPILER \"gcc `$(CC) $(CFLAGS) -dumpversion | tr --delete '\r'`\" >> .ver @echo \#define RTL195AFW_COMPILER \"gcc `$(CC) $(CFLAGS) -dumpversion | tr --delete '\r'`\" >> .ver
@mv -f .ver project/realtek_ameba1_va0_example/inc/$@.h @mv -f .ver project/realtek_ameba1_va0_example/inc/$@.h