Use the command line of the axd debugger to implement source code-level debugging of U-boot.

Source: Internet
Author: User

In fact, axd is very powerful, especially its command line.

Open axd and press Alt + L to open a command line,

Very useful Commands include:
Loadbinary = import a file to SDRAM
Loadsymbols = import the symbol table
Setpc = set PC register
Run = start running
OB + file name = run by batch file

All commands are also available in the GUI. You can use the batch processing file (OB command) to avoid the trouble of hitting commands and clicking menus,

Take u-bootas an example, write a batch of processing files on the d disk, and the file name is u-boot.txt. The content is as follows:
Loadbinary Y:/u-boot-1.1.4/u-boot.bin 0x00100000
Loadsymbols Y: // u-boot-1.1.4/u-boot.axf
Setpc 0x00100000
Run

Open axd, press Alt + L, keyboard input: ob d:/u-boot.txt

Then the axd will automatically run the commands in the batch processing file and automatically load the binary data of U-boot.CodeAutomatically load the symbol table, set the pointer to 0x00100000, and start running. If the axd is interruptedSource code! Cool ~~!

If the command is unclear, enter help in the command line to open the Help file!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.