On Mon, Aug 16, 2010 at 1:14 PM, Sergei Gavrikov <sergei.gavri...@gmail.com> wrote: > On Fri, 13 Aug 2010, Slide wrote: > >> I am bringing up eCos on a custom internal board, > > ^^^^^^^^^^^^^^^^^^^^^^^^^^ > > Hi Slide, > > So, does this mean that you have some new untested H/W and and a fresh > eCos port for it or your port closely depends on some known target in > eCos World? >
Yes, it is a board that has a PXA9XX part, which is similar to PXA3X0, which is similar to PXA2X0. >> I have diag_printf working just fine, > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > Good news, at the least you managed a polled (non-interrupt driven) > diagnostic *output* for the UART, and as you say that diag_printf() > works smoothly, then try the simplest diagnostic *input* with > > HAL_DIAG_READ_CHAR(_c_) macro I'll give this a shot. > > BUT, > >> I only have one serial port on the board, > > ^^^^^^^^^^^^^^^^^^^^^^^^^ > > It's good to know, How you download and run your test printf(), gets() > application? Do you share diagnostic and debug channels on that UART or > use an alternate communication channel for testing (debugging)? If you > use GDB remote protocol via that serial port..., well I won't guess, > write a bit, please, about your startup and debug environment. I load my image onto a microSD card. The PXA9XX supports loading images from SD, so I have it load the image into RAM and then branch to the load location to start running. Currently (until I get some other method going) I am just removing the microSD from the system, reprogramming the image and then putting it back in the system. I haven't not developed an SD stack yet for loading things to the card over serial port, or some other means. > >> but I can't seem to get printf or gets to work correctly. > > Let's leave this a while, especially gets(). > > Sergei > Agreed, I would assume that if printf was working, then gets/etc would probably be working as well. Thanks, slide -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss