免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4301 | 回复: 2
打印 上一主题 下一主题

[开发环境] eclipse调试arm开发板,下载时提示脚本出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-08-09 12:51 |只看该作者 |倒序浏览
使用eclipse调试arm开发板,下载提示初始化脚本错误:

开发环境:eclipse:Helios Service Release 1  
开发板:OK6410A
      芯片:S3C6410
调试工具:JlinkV8
JLink驱动:v4:22g

配置相关:elipse--》Debug Configuration--》Debugger--》GDB command file:s3c6410.init

控制台提示信息:
  1. source F:\Program Files\eclipse\Copy of led\s3c6410.init
  2. F:\Program Files\eclipse\Copy of led\s3c6410.init:1: Error in sourced command file:
  3. 127.0.0.1:3333: \323\311\323\332\301\254\275\323\267\275\324\332\322\273\266\316\312\261\274\344\272\363\303\273\323\320\325\375\310\267\264\360\270\264\273\362\301\254\275\323\265\304\326\367\273\372\303\273\323\320\267\264\323\246\243\254\301\254\275\323\263\242\312\324\312\247\260\334\241\243

  4. .
  5. load
  6. You can't do that when your target is `exec'
  7. break _start
  8. Breakpoint 1 at 0xc0000004: file start/start.S, line 27.
  9. c
  10. The program is not being run.
复制代码
如果需要code和其他配置请告诉我,我会一直关注这个问题。

Any help is appreciated.
Thanks.
-----------------------------------------------------
Name:Wang
Email:faxiang1230@sina.cn

论坛徽章:
0
2 [报告]
发表于 2014-08-09 12:56 |只看该作者
s3c6410.init:
  1. target remote 127.0.0.1:3333
  2. monitor halt
  3. monitor arm mcr 15 0 1 0 0 0
  4. monitor step 0
复制代码

论坛徽章:
0
3 [报告]
发表于 2014-08-09 13:34 |只看该作者
本帖最后由 faxiang1230 于 2014-08-09 13:36 编辑

刚才在参考这篇博文时,理解的GDB能够启动的顺序:
1.将.bin文件下载到板子上
2.执行gdbserver和初始化脚本
3.调用.elf格式的文件用于调试

猜测:1.bin文件执行错误,在执行第二步时出现错误

猜测验证:阅读GDB Server Guide,修改初始化脚本
  1. target remote 127.0.0.1:2331  //target remote 127.0.0.1:3333
复制代码
打印信息如下:
  1. source F:\Program Files\eclipse\Copy of led\S3C6410.init
  2. 0x00000000 in ?? ()
  3. F:\Program Files\eclipse\Copy of led\S3C6410.init:3: Error in sourced command file:
  4. Target does not support this command.
  5. load
  6. Loading section .text, size 0x184c lma 0xc0000000
  7. Loading section .rodata, size 0x70 lma 0xc000184c
  8. Loading section .data, size 0x900 lma 0xc00018bc
  9. Start address 0xc0000000, load size 8636
  10. Transfer rate: 2 KB/sec, 2878 bytes/write.
  11. break _start
  12. Cannot access memory at address 0xc0000004
  13. c
复制代码
从上面的log中可以看到失败原因最大可能是.bin文件和.lds中配置不合理。
...继续修改中

博文链接:http://blog.163.com/nesnil@126/b ... 982012223104416462/

也感谢关注该问题的同学
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP