public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] HELP: lpc2xxx serial (software/hw) flow control
@ 2006-04-06  7:49 Sergei Gavrikov
  2006-04-06  8:12 ` Andrew Lunn
  0 siblings, 1 reply; 3+ messages in thread
From: Sergei Gavrikov @ 2006-04-06  7:49 UTC (permalink / raw)
  To: ecos-discuss

Hello

Anybody has a time and an experience to hint me about flow control
settings for serial ports with `ecosconfig'?

I do the steps

ecosconfig new myplf redboot;
ecosconfig import myredboot.ecm;

ecosconfig add <what pkg need to add to support flow hw control?>

Or, what lines (rules) need to add to myredboot.ecm to support same
control?

I will be going to enter new RedBoot's command: flowctl (or mode) for
serial channels, like it

RedBoot>flowctl -c 0 xonxoff; flowctl -c 1 rtscts

I have a board with Philips LPC2214 CPU. That cpu has 2 serial port.
First of them is just RxD/TxD 2-plet, but second (UART1) has full modem
control/status.  That UART1 control has such a pinouts/registers.

Can the Jani's lpc2xxx serial package does the hardware flow control for
lpc2xxx UART1? (RTSCTS)

It look like that both of them works withoout any flow control. Is my
opine wrong? I had built Redboot for my platform and try to load a pice
binary data with xyzmodem to RAM. I can get 10 successes of a uploading
and then 10 fails this one. I cannot understand: why suddenly I get
fails? In these cases, the `load -m x -r -b %{FREEMEMLO}' command
reports me about more long RAM region to hold same data. I do not think
that 38.4k is too high speed to upload data.

I hope anybody can help me, thanks you in advance.

Sergei

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] HELP: lpc2xxx serial (software/hw) flow control
  2006-04-06  7:49 [ECOS] HELP: lpc2xxx serial (software/hw) flow control Sergei Gavrikov
@ 2006-04-06  8:12 ` Andrew Lunn
  2006-04-06  9:37   ` Sergei Gavrikov
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Lunn @ 2006-04-06  8:12 UTC (permalink / raw)
  To: Sergei Gavrikov; +Cc: ecos-discuss

On Thu, Apr 06, 2006 at 09:57:09AM +0300, Sergei Gavrikov wrote:
> Hello
> 
> Anybody has a time and an experience to hint me about flow control
> settings for serial ports with `ecosconfig'?
> 
> I do the steps
> 
> ecosconfig new myplf redboot;
> ecosconfig import myredboot.ecm;
> 
> ecosconfig add <what pkg need to add to support flow hw control?>
> 
> Or, what lines (rules) need to add to myredboot.ecm to support same
> control?
> 
> I will be going to enter new RedBoot's command: flowctl (or mode) for
> serial channels, like it
> 
> RedBoot>flowctl -c 0 xonxoff; flowctl -c 1 rtscts
> 
> I have a board with Philips LPC2214 CPU. That cpu has 2 serial port.
> First of them is just RxD/TxD 2-plet, but second (UART1) has full modem
> control/status.  That UART1 control has such a pinouts/registers.
> 
> Can the Jani's lpc2xxx serial package does the hardware flow control for
> lpc2xxx UART1? (RTSCTS)

Redboot does not use this serial driver. It uses the HAL serial
driver. The HAL serial driver is generally very simple, so it is
unlikely to handle flow control. 

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] HELP: lpc2xxx serial (software/hw) flow control
  2006-04-06  8:12 ` Andrew Lunn
@ 2006-04-06  9:37   ` Sergei Gavrikov
  0 siblings, 0 replies; 3+ messages in thread
From: Sergei Gavrikov @ 2006-04-06  9:37 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss

Andrew, thank you!

I see. I think that my question was not clear. I'm thinking now that the
problem with Redboot xyzmodem.

Would you point a way for more effective xymodem uploading without flow
control? Redboot xyzmodem does simple crc control for every received
block. Is it right? I have a code for Altera FPGA I load it to the
on-board RAM and then to FPGA. I do it with Redboot. So, for example,
I've got a raw binary data (it is 78422 bytes for the fpga). I try to
load it as:

RedBoot> lo -m x -r -b %{FREEMEMLO}
CRaw file loaded 0x81007000-0x8101a255, assumed entry at 0x81007000
xyzModem - CRC mode, 619(SOH)/0(STX)/0(CAN) packets, 7 retries
RedBoot> cksum
Computing cksum for area 81007000-8101a256
POSIX cksum = 1687239779 78422 (0x64913c63 0x00013256)
RedBoot>

I repeat it a few times. But on 4th uploading (I was doing it a few
minutes ago), I had got :(

RedBoot> lo -m x -r -b %{FREEMEMLO}
CCRaw file loaded 0x81007000-0x8102394f, assumed entry at 0x81007000
xyzModem - CRC mode, 613(SOH)/0(STX)/0(CAN) packets, 2 retries
RedBoot> cksum
Computing cksum for area 81007000-81023950
POSIX cksum = 3544422626 117072 (0xd34398e2 0x0001c950)
RedBoot> cksum -l 78422
Computing cksum for area 81007000-81023950
POSIX cksum = 3544422626 117072 (0xd34398e2 0x0001c950)
RedBoot> cksum -l 78422 -b 0x81007000
POSIX cksum = 2120258377 78422 (0x7e609349 0x00013256)
RedBoot>

What's happens? Why did length of data grow up? I have got no error
message from xyzmodem (bad crc or other wrongs).

I use minicom, all minirc settings are correct. I'd tried a hyperterm
too.  The problem is same.

Do you have any ideas? Thanks,

Sergei

On Thu, 6 Apr 2006, Andrew Lunn wrote:

> On Thu, Apr 06, 2006 at 09:57:09AM +0300, Sergei Gavrikov wrote:
>> Hello
>>
>> Anybody has a time and an experience to hint me about flow control
>> settings for serial ports with `ecosconfig'?
>>
>> I do the steps
>>
>> ecosconfig new myplf redboot;
>> ecosconfig import myredboot.ecm;
>>
>> ecosconfig add <what pkg need to add to support flow hw control?>
>>
>> Or, what lines (rules) need to add to myredboot.ecm to support same
>> control?
>>
>> I will be going to enter new RedBoot's command: flowctl (or mode) for
>> serial channels, like it
>>
>> RedBoot>flowctl -c 0 xonxoff; flowctl -c 1 rtscts
>>
>> I have a board with Philips LPC2214 CPU. That cpu has 2 serial port.
>> First of them is just RxD/TxD 2-plet, but second (UART1) has full modem
>> control/status.  That UART1 control has such a pinouts/registers.
>>
>> Can the Jani's lpc2xxx serial package does the hardware flow control for
>> lpc2xxx UART1? (RTSCTS)
>
> Redboot does not use this serial driver. It uses the HAL serial
> driver. The HAL serial driver is generally very simple, so it is
> unlikely to handle flow control.
>
>        Andrew
>
>

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-04-06  9:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-06  7:49 [ECOS] HELP: lpc2xxx serial (software/hw) flow control Sergei Gavrikov
2006-04-06  8:12 ` Andrew Lunn
2006-04-06  9:37   ` Sergei Gavrikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).