.ds是debug的脚本文件,但是例程里面的很多.ds都有个问题
如这个:
- # Reset and stop the system.
- reset system
- stop
- wait 30s
- # Disable semihosting.
- set semihosting enabled false
- #
- # Load the SPL preloader into memory.
- loadfile "$sdir/preloader_scrubbing/uboot-socfpga/spl/u-boot-spl" 0x0
- # Delete any existing breakpoints.
- delete
- # Set a breakpoint in the SPL function spl_boot_device(). This function is
- # called right before the SPL tries to load the next stage in the preloader.
- tbreak spl_boot_device
- # Set the PC to the entry point and go.
- run
- # Wait for the breakpoint.
- wait
- # Load the demo program.
- loadfile "$sdir/hello.axf" 0x0
- # Run the target and break at main().
- start
看命令行发现,总是卡死在
# Wait for the breakpoint.
wait
如图:
这里面,,删掉这个wait就能正常调试了.
有的程序会卡死在这,有的不会,真是醉了,,,这个好像是等待preloader加载下一阶段boot的断点的,,,,搞不懂这样有啥意义,,