mirror of
https://github.com/pvvx/rtl00TstMinAmebaV35a.git
synced 2024-11-22 09:44:15 +00:00
112 lines
2.6 KiB
Text
112 lines
2.6 KiB
Text
# GDB script for loading ram.bin process
|
|
|
|
#===============================================================================
|
|
#set GDB connection
|
|
set remotetimeout 100000
|
|
target remote :2331
|
|
|
|
#===============================================================================
|
|
#Message display setting
|
|
#disable all messages
|
|
|
|
set verbose off
|
|
set complaints 0
|
|
set confirm off
|
|
set exec-done-display off
|
|
show exec-done-display
|
|
set trace-commands off
|
|
#set debug aix-thread off
|
|
#set debug dwarf2-die 0
|
|
set debug displaced off
|
|
set debug expression 0
|
|
set debug frame 0
|
|
set debug infrun 0
|
|
set debug observer 0
|
|
set debug overload 0
|
|
set debugvarobj 0
|
|
set pagination off
|
|
set print address off
|
|
set print symbol-filename off
|
|
set print symbol off
|
|
set print pretty off
|
|
set print object off
|
|
#set debug notification off
|
|
set debug parser off
|
|
set debug remote 0
|
|
|
|
#===============================================================================
|
|
monitor reset 1
|
|
monitor sleep 20
|
|
monitor clrbp
|
|
#===============================================================================
|
|
#Init SDRAM here
|
|
# init System
|
|
monitor MemU32 0x40000014=0x00000021
|
|
monitor sleep 10
|
|
monitor MemU32 0x40000304=0x1fc00002
|
|
monitor sleep 10
|
|
monitor MemU32 0x40000250=0x00000400
|
|
monitor sleep 10
|
|
monitor MemU32 0x40000340=0x00000000
|
|
monitor sleep 10
|
|
monitor MemU32 0x40000230=0x0000dcc4
|
|
monitor sleep 10
|
|
monitor MemU32 0x40000210=0x00011117
|
|
monitor sleep 10
|
|
monitor MemU32 0x40000210=0x00011157
|
|
monitor sleep 10
|
|
monitor MemU32 0x400002c0=0x00110011
|
|
monitor sleep 10
|
|
monitor MemU32 0x40000320=0xffffffff
|
|
monitor sleep 10
|
|
# init SDRAM
|
|
monitor MemU32 0x40000040=0x00fcc702
|
|
monitor sleep 10
|
|
monitor MemU32 0x40000040
|
|
monitor MemU32 0x40005224=0x00000001
|
|
monitor sleep 10
|
|
monitor MemU32 0x40005004=0x00000208
|
|
monitor sleep 10
|
|
monitor MemU32 0x40005008=0xffffd000
|
|
monitor sleep 13
|
|
monitor MemU32 0x40005020=0x00000022
|
|
monitor sleep 13
|
|
monitor MemU32 0x40005010=0x09006201
|
|
monitor sleep 13
|
|
monitor MemU32 0x40005014=0x00002611
|
|
monitor sleep 13
|
|
monitor MemU32 0x40005018=0x00068413
|
|
monitor sleep 13
|
|
monitor MemU32 0x4000501c=0x00000042
|
|
monitor sleep 13
|
|
monitor MemU32 0x4000500c=0x700
|
|
monitor sleep 20
|
|
monitor MemU32 0x40005000=0x1
|
|
monitor sleep 100
|
|
monitor MemU32 0x40005000
|
|
monitor MemU32 0x4000500c=0x600
|
|
monitor sleep 30
|
|
|
|
monitor MemU32 0x40005008=0x00000000
|
|
monitor sleep 3
|
|
monitor MemU32 0x40000300=0x0006005e
|
|
monitor sleep 3
|
|
#===============================================================================
|
|
#Load flash download file
|
|
file ./application/Debug/bin/application.axf
|
|
|
|
#boot from ram, igonore loading flash
|
|
monitor MemU32 0x40000210=0x8011157
|
|
|
|
#Load the file
|
|
lo
|
|
|
|
#Run to main
|
|
b main
|
|
continue
|
|
clear main
|
|
|
|
|
|
|
|
|
|
|