⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 g.ini

📁 本程序是基于NETOS操作系统的
💻 INI
字号:
echo Setting up the environment for debugging gdb.\n

set complaints 1
set output-radix 16
set input-radix 16
set endian big
dir .
set prompt (netsilicon-gdb) 

# This connects to a target via netsiliconLibRemote
# listening for commands on this PC's tcp port 8888
target remote localhost:8888

# Set netSiliconLibRemote to write short/long values
# in big-endian
monitor endian big

# Set GDB in big-endian 
set endian big

# Reset the chip to get to a known state.
monitor reset
monitor halt

# NET50 INITIALIZATION VALUES
monitor long 0xffb00000 = 0x4004a000
monitor long 0xffb00000 = 0x4004a000
monitor long 0xffc00000 = 0x0dc00000
monitor long 0xffb00030 = 0x00000000
monitor long 0xffc00034 = 0x00000000
monitor long 0xffc00010 = 0x0
monitor long 0xffc00020 = 0x0
monitor long 0xffc00024 = 0xf3000070
monitor long 0xffc00020 = 0x0000022d
monitor long 0xffc00028 = 0x00000001
monitor long 0xffc00014 = 0xf3000570
monitor long 0xffc00018 = 0x00000005
monitor long 0xffb00020 = 0xefe00000

# Set Registers to known value
set $r0 = 0
set $r1 = 0
set $r2 = 0
set $r3 = 0
set $r4 = 0
set $r5 = 0
set $r6 = 0
set $r7 = 0
set $r8 = 0
set $r9 = 0
set $r10 = 0
set $r11 = 0
set $r12 = 0
set $sp = 0x80000
set $lr = 0
set $pc = 0
set $cpsr = 0xd3
set $r13 = 0
set $r14 = 0
set $r15 = 0

# Setup GDB FOR FASTER DOWNLOADS
set remotewritesize 1024
set remotewritesize fixed 

# Load the program executable called "image.elf"
# load image.elf
# Load the symbols for the program.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -