[ARM开发] .ds文件造成的卡死

zgbkdlm   2015-2-6 18:40 楼主
.ds是debug的脚本文件,但是例程里面的很多.ds都有个问题
如这个:
  1. # Reset and stop the system.
  2. reset system
  3. stop
  4. wait 30s

  5. # Disable semihosting.
  6. set semihosting enabled false

  7. #
  8. # Load the SPL preloader into memory.
  9. loadfile "$sdir/preloader_scrubbing/uboot-socfpga/spl/u-boot-spl" 0x0

  10. # Delete any existing breakpoints.
  11. delete

  12. # Set a breakpoint in the SPL function spl_boot_device(). This function is
  13. # called right before the SPL tries to load the next stage in the preloader.
  14. tbreak spl_boot_device

  15. # Set the PC to the entry point and go.
  16. run

  17. # Wait for the breakpoint.
  18. wait

  19. # Load the demo program.
  20. loadfile "$sdir/hello.axf" 0x0

  21. # Run the target and break at main().
  22. start
看命令行发现,总是卡死在
# Wait for the breakpoint.
wait
如图:
QQ图片20150206183557.png
这里面,,删掉这个wait就能正常调试了.
有的程序会卡死在这,有的不会,真是醉了,,,这个好像是等待preloader加载下一阶段boot的断点的,,,,搞不懂这样有啥意义,,


回复评论

暂无评论,赶紧抢沙发吧
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复