This is the mail archive of the ecos-discuss@sources.redhat.com 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: Loading Binary images..


On Mon, 2002-03-25 at 17:39, Surya Prakash Rao wrote:
> Hi Gary,
> 
> Yaah..I did select the file. Even it displays the status window showing the
> file trasfer progress.
> But not even a single byte goes out ..I am not getting the header bytes
> either 'SOH' or 'STX' at the target end.

I don't understand this since you are [obviously] using the channel to
type commands to RedBoot, or am I confused?

> 
> Can you please tell me what exactly the following part of the code (in
> xyzmodem.c) does ??
> 
> >>>>>>>>>>>>>>>>>>>>>>
>   // Set up the I/O channel.  Note: this allows for using a different port
> in the future
>     console_chan =
> CYGACC_CALL_IF_SET_CONSOLE_COMM(CYGNUM_CALL_IF_SET_COMM_ID_QUERY_CURRENT);
>     if (chan >= 0) {
>         CYGACC_CALL_IF_SET_CONSOLE_COMM(chan);
>     } else {
>         CYGACC_CALL_IF_SET_CONSOLE_COMM(console_chan);
>     }
>     xyz.__chan = CYGACC_CALL_IF_CONSOLE_PROCS();
>     CYGACC_CALL_IF_SET_CONSOLE_COMM(console_chan);
>     CYGACC_COMM_IF_CONTROL(*xyz.__chan, __COMMCTL_SET_TIMEOUT,
> xyzModem_CHAR_TIMEOUT);
> 
> >>>>>>>>>>>>>>

>From the load command:
    
    Load a file
       load [-r] [-v] [-d] [-h <host>] [-m {TFTP | xyzMODEM -c <channel_number>}]
            [-b <base_address>] <file_name>
    
That code allows you to download from a port which is not the current console.

However, it's not clear that you are trying to do this.

> 
> 
> Thanks for your prompt replies...
> 
> Regards
> Surya
> 
> 
> -----Original Message-----
> From: Gary Thomas [mailto:gthomas@redhat.com]
> Sent: Monday, March 25, 2002 4:18 PM
> To: Surya Prakash Rao
> Cc: 'ecos-discuss@sources.redhat.com'
> Subject: RE: [ECOS] Loading Binary images..
> 
> 
> On Mon, 2002-03-25 at 17:11, Surya Prakash Rao wrote:
> > I am doing the same way. But I don't see anything coming out of the
> > Hyperterminal
> > except the last three 'CAN' commands. Why is this happening ?
> > Does the Hyperterminal expects something to start the transfer ?
> > 
> 
> Did you tell HyperTerm what file to send?
> 
> I've used it before and it worked just fine.
> 
> > 
> > Thanks & Regards
> > Surya
> > 
> 
> -- 
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss



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


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