public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] raw output to serial port and dataflash + legacy API questions
@ 2009-05-07 10:58 Dave Milter
  2009-05-11 17:44 ` Evgeniy Dushistov
  0 siblings, 1 reply; 5+ messages in thread
From: Dave Milter @ 2009-05-07 10:58 UTC (permalink / raw)
  To: ecos-discuss

Hello,

There are a couple questions about ecos, for which I can not find
suitable answers
in google and ecos documentation. May be anybody can help?

1)I have a board with two interfaces rs232 and let's call it "X",
I want to log data (which come from interface "X") on my PC .
And PC not support "X", so I took this board and ecos and write:

cyg_io_lookup("/dev/ttydiag", &hRS232);
cyg_io_read(hX, buf, &len);
cyg_io_write(hRS232, buf, &out_len);

my problem is bytes with values '\r' and '\n'.
Data that go via X interface is binary, but when I write
to RS232 ecos library looks like add symbols of new lines (replace
'\n' with \n\r or
something like this),
and I want to turn off this mode, but only when my application start working,
I mean in runtime, not in  configtool.

2)I have board with dataflash, it supported with package in directory
packages/devs/flash/atmel/dataflash, but on my board
as against eb55 there is only dataflash, there is no NOR flash.

I build redboot, but
arm-eabi-nm redboot.elf | grep dataflash is empty.
while
arm-eabi-nm libtarget.a | grep dataflash give all symbols
that I expect to see.

During my investigation I remove norflash from eb55 description
and receive the same result for eb55 redboot.

And at last I find out that if I add CYGHWR_IO_FLASH_DEVICE_LEGACY to
packages/devs/flash/atmel/dataflash/current/cdl/devs_flash_atmel_dataflash.cdl
and add empty functions to implement legacy API the output of
arm-eabi-nm redboot.elf  become as expected.

Can anybody explain this?

-- 
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] 5+ messages in thread

end of thread, other threads:[~2009-05-11 19:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-07 10:58 [ECOS] raw output to serial port and dataflash + legacy API questions Dave Milter
2009-05-11 17:44 ` Evgeniy Dushistov
2009-05-11 17:57   ` Andrew Lunn
2009-05-11 18:35     ` Evgeniy Dushistov
2009-05-11 19:04       ` Andrew Lunn

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).