From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-lb0-x22a.google.com ([2a00:1450:4010:c04::22a]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZO5rB-0000rC-N6 for barebox@lists.infradead.org; Sat, 08 Aug 2015 15:16:23 +0000 Received: by lbbtg9 with SMTP id tg9so37022119lbb.1 for ; Sat, 08 Aug 2015 08:15:58 -0700 (PDT) Date: Sat, 8 Aug 2015 18:23:30 +0300 From: Antony Pavlov Message-Id: <20150808182330.a52abdc75132a0f1fafd440e@gmail.com> In-Reply-To: <55C50118.3080202@icid.cu> References: <55C4C388.9060102@icid.cu> <20150807194104.b02642e26c441e906a1deeca@gmail.com> <55C50118.3080202@icid.cu> Mime-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: serial port weird chars ... To: Roberto Alejandro Espi Munoz Cc: barebox@lists.infradead.org On Fri, 07 Aug 2015 15:03:52 -0400 Roberto Alejandro Espi Munoz wrote: > Both scenarios work well on another host. On my host serial port when = > interacting with one bootloader the communication is fine and with = > barebox fails. When using a USB-serial adapter there's no problem. = > Perhaps there's a problem on my board but why does the first connection = > work and with barebox doesn't ? May be barebox programs UART clocks in a slightly different way than S3C244= 0A USB Downloader does, so waveform for one character is too short or too long for your host comput= er UART receiver? IMHO a logic analyzer can help you. Use it to compare output mini2440 UART = waveform from USB Downloader with output UART waveform from barebox. > = > On 08/07/2015 12:41 PM, Antony Pavlov wrote: > > On Fri, 07 Aug 2015 10:41:12 -0400 > > Roberto Alejandro Espi Munoz wrote: > > > >> Hi ... I'm currently having some trouble with displaying characters > >> correctly in my terminal. I'm using a board equivalent to the > >> mini2440. This one has a NOR and a NAND. I connect to it over a seri= al > >> port interface. When I boot up the board in debug mode I'm able to see > >> clearly the messages displayed by the S3C2440A USB Downloader which is > >> copied in the NOR interface, I then download my barebox binary over the > >> USB interface and when it boots I get a lot of weird characters on > >> screen. The console seems to respond correctly, I issue for example t= he > >> "reset" command and it resets but I can't make out what is displayed. > >> I was guessing at first a serial port configuration problem on my > >> operating system (I use Linux), tried it over on Windows and same > >> effect, the first bootloader works great and barebox when starting just > >> mangles the characters. > >> > >> The other weird problem is than when I use a USB-Serial converter to > >> connect to the board's serial port everything works ! > >> > >> I'm currently using barebox 2012.09 and OpenSuse Linux 13.2 > >> > >> Any ideas ? thanks > > You have the problem if you use your host computer motherboard serial p= ort (no matter, Linux or Windows), > > isn't it? > > And no problem if you use USB-Serial dongle. So it looks like host seri= al port problem. > > > > Could you try to connect the board to another host computer? > > > > -- = > > Best regards, > > Antony Pavlov > > > > _______________________________________________ > > barebox mailing list > > barebox@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/barebox > = > = > = > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox -- = --=A0 Best regards, =A0 Antony Pavlov _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox