RTL00_WEB/flasher/gdb_init.jlink

31 lines
1 KiB
Text
Raw Normal View History

2017-04-22 13:54:00 +00:00
#
# J-LINK GDB SERVER initialization
#
target remote localhost:2331
set remotetimeout 10000
monitor device Cortex-M3
monitor endian little
monitor reset
# 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 fixed
# Boot Flash
2017-10-17 14:42:32 +00:00
monitor long 0x40000210 = 0x00011113
2017-04-22 13:54:00 +00:00
# Boot RAM start_addr0() Run if ( v400001F4 & 0x8000000 ) && ( v40000210 & 0x80000000 )
2017-10-17 14:42:32 +00:00
#monitor long 0x40000210 = 0x80011113
2017-04-22 13:54:00 +00:00
# Boot RAM start_addr1() Run if ( v40000210 & 0x20000000 )
2017-10-17 14:42:32 +00:00
#monitor long 0x40000210 = 0x20011113
2017-04-22 13:54:00 +00:00
# Boot RAM start_addr2() Run if ( v40000210 & 0x10000000 )
2017-10-17 14:42:32 +00:00
#monitor long 0x40000210 = 0x10011113
2017-04-22 13:54:00 +00:00
# Boot RAM start_addr3() Run if ( v400001F4 & 0x8000000 ) && ( v40000210 & 0x8000000 )
2017-10-17 14:42:32 +00:00
#monitor long 0x40000210 = 0x8011113
2017-04-22 13:54:00 +00:00
# Boot RAM start_addr4() Init console, Run if ( v40000210 & 0x4000000 )
2017-10-17 14:42:32 +00:00
monitor long 0x40000210 = 0x4011113
2017-04-22 13:54:00 +00:00
# CPU CLK 166 MHz?
# monitor long 0x40000014 = 0x00000011
# CPU CLK 83 MHz?
#monitor long 0x40000014 = 0x00000021