Re: Re: [ECOS] GDB connect via UART failed

jourdon shell
Fri Sep 24 04:11:00 GMT 2004


    Thank you for your comment. I used CygWin under Win2K. The settings and the COM channel I used is correct. I used this channel fine on other boards with the same settings.
    Yesterday, I debuged this RedBoot[ROM] code with the Multi-ICE gdb stub. I found that, in function __getpacket, there are characters coming from COM channel, but never built up a complete packet for GDB and return. So I made a test, In hyper terminal, I pasted a string from a notepad to it. e.g. 'abcdefghijklmnopqrstuvwxyz', but the hyper terminal showed that 'abcdefgêijklðnopqrstîvwxyz'. So I guess, when the COM channel runs with a continuous stream, there will be some mistakes with some characters. So is the GDB packet stream.
    This means that, there is something wrong with the UART settings. But where is it? Host? or the board? I used 57600 bps. Any special settings with SNDS100(S3C4510B)? Or anyone has debuged with COM channel on SNDS100 correctly?

Jourdon Shell


> Redboot communicates via the UART but GDB does not?  It 
> could be either one of two things:
> 1) Problem with Redboot build.
> 2) Problem with Host machine.
> Most likely it will be 2.  What Host machine are you using 
> to communicate to the target?  Are you using Cygwin?
> First I would make sure that the serial device you are 
> using is correct. If you are using CygWin it could be that 
> the serial device has a different name, like /dev/com1. 
>  If you are using Insight 6.1, the default COMX in its 
> menu might not refer to the correct serial device and it 
> might give you some IOCTL error.
> Second I would make sure that you are using the correct 
> communication settings.
> Darryl Palmer
> On Thu, 23 Sep 2004 11:03:58 +0800 (CST)
>   "jourdon_shell" <> wrote:
> > Dear eCos discussers,
> > 
> >   I built a RedBoot[ROM] version to my board. My board 
> >uses S3C4510B, and is similar with SNDS100. So I chosed 
> >SNDS100 template, and modified memory bank settings for 
> >the difference on my board.
> >   The problem is that, now, I can use command line 
> >interface via UART0/UART1 to talk with RedBoot. And even 
> >can use GDB debug via networking channel. But when I try 
> >using GDB to connect RedBoot via UART0/UART1, it never 
> >succeed, times out.
> >   What on earth the problem is? Any other options I 
> >should set?
> >   Anyone could give me suggestions?
> >   Many many thanks.
> > 
> > BRs
> > Jourdon Shell


More information about the Ecos-discuss mailing list