本文共 524 字,大约阅读时间需要 1 分钟。
其实AXD的功能非常强大,特别是其命令行。
打开AXD,按下 Alt + L ,就可以打开一个命令行,
非常有用的命令如:
LoadBinary = 将一个文件导入SDRAM LoadSymbols = 导入符号表SetPC = 设置PC寄存器Run = 开始运行OB + 文件名 = 按照批处理文件运行所有的命令在GUI里面也是有的,可以利用批处理文件(OB命令)来免去敲命令和点菜单的麻烦,
以调试u-boot为例,写一个批处理文件放在D盘,文件名为u-boot.txt,内容如下:loadbinary Y:/u-boot-1.1.4/u-boot.bin 0x00100000loadsymbols Y:/u-boot-1.1.4/u-boot.axfsetpc 0x00100000run打开AXD,按下ALT+L,键盘输入:ob d:/u-boot.txt那么AXD会自动运行批处理文件内的命令,自动载入u-boot的二进制代码,自动载入符号表,设置指针为0x00100000,并开始运行,如果在AXD中断运行,会自动显示源代码! cool~~!如果有命令不清楚的话,在命令行下,输入 help ,可以打开帮助文件!
转载地址:http://sjsqi.baihongyu.com/