主题 : 求救,gdb 串口调试问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 17481
精华: 0
发帖: 3
金钱: 15 两
威望: 3 点
综合积分: 6 分
注册时间: 2010-03-29
最后登录: 2010-04-04
楼主  发表于: 2010-04-04 12:51

 求救,gdb 串口调试问题


使用gdb 串口远程调试,
开发板运行gdbserver
不知道为什么主机连接不上开发板,停在了Remote debugging using ,没有反应

开发板
/home# ./gdbserver /dev/ttySAC0 hello
Process hello created; pid=750
Remote debugging using /dev/ttySAC0


主机
debian:/home/xu/hello# arm-linux-gdb hello
GNU gdb (Sourcery G++ Lite 2008q3-72) 6.8.50.20080821-cvs
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi".
For bug reporting instructions, please see:
<https://support.codesourcery.com/GNUToolchain/>...
(gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0

*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-04-04 13:49
ttySAC0?你的开发板不是用UART0做串口console的?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 17481
精华: 0
发帖: 3
金钱: 15 两
威望: 3 点
综合积分: 6 分
注册时间: 2010-03-29
最后登录: 2010-04-04
2楼  发表于: 2010-04-04 13:56

 回 1楼(kasim) 的帖子

我也不清楚,请问该如何设置?
我已将windows电脑上的超级终端关闭了,直接在开发板上操作的,但是开发板上没有ttyS0这个端口,只有/ttySAC0
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2010-04-04 14:46

 回 2楼(the_xu1986) 的帖子

如果你自己也不清楚,最好还是通过网络作GDB远程调试;
相信下面这个帖子你应该已经看过了
http://www.aiothome.net/read.php?tid-1396.html
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."