This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: HELP: lpc2xxx serial (software/hw) flow control


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]