public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] DBG Serial Init Problem with MBX based code
@ 2000-08-29 16:57 Ross Wightman
  2000-08-29 23:53 ` Jesper Skov
  0 siblings, 1 reply; 4+ messages in thread
From: Ross Wightman @ 2000-08-29 16:57 UTC (permalink / raw)
  To: ecos-discuss

Okay, thanks to Gary's help I now appear to have the memory aspects of
eCos working on my board. 

I have now run into a new problem with the debug serial channel
initialization. In the mbx code from CVS the fcn
cyg_hal_plf_serial_init_channel() initially gets called from hal_diag_init 
during some constructor/initializer code. A little later on, the fcn
cyg_hal_plf_serial_init() in quicc_smc1.c gets called. This function
resets the CPM right before it makes a call to serial_init_channel()
again. The CPM reset wipes almost everything that the initial call to
serial_init_channel set up and due to the fact that serial_init_channel()
has a check so that it can only be run once, the channel is not setup back
up again. 

This problem would be easy to "hack" fix. However, I would like some
insight into why this is setup as is (if it should be?) and what a good
fix would entail.

Thanks. 

^ permalink raw reply	[flat|nested] 4+ messages in thread
* [ECOS] DBG Serial Init Problem with MBX based code
@ 2000-08-31 12:28 Ross Wightman
  2000-08-31 23:57 ` Jesper Skov
  0 siblings, 1 reply; 4+ messages in thread
From: Ross Wightman @ 2000-08-31 12:28 UTC (permalink / raw)
  To: ecos-discuss

Yup, it worked. The serial port gets initialized and GDB can communicate
with the board. Now I'm having issues loading programs onto the board. No
matter what baud rate I use (even slowing it to 9600) the program download
process downloads the vectors at a good rate, then when it gets to .text
the download goes up in increments of 512bytes about every 30 seconds with
lots of packet error warnings in the gdb console. Sigh, the fun never
ceases.  

(Btw sorry bout not replying to the thread, but that doesn't seem to work)

Jesper Skov <jskov@redhat.com> wrote in message
news:8oib37$3fv$1@velvet.microplex.com ...
> >>>>> "Ross" == Ross Wightman <rpw@velvet.microplex.com> writes:
> Ross> This problem would be easy to "hack" fix. However, I would like
> Ross> some insight into why this is setup as is (if it should be?) and
> Ross> what a good fix would entail.
> 
> I think something like the below is what we want. Could you please see
> if it fixes your problem - if so, I will commit it.
> 
> Ta,
> Jesper








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

end of thread, other threads:[~2000-08-31 23:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-29 16:57 [ECOS] DBG Serial Init Problem with MBX based code Ross Wightman
2000-08-29 23:53 ` Jesper Skov
2000-08-31 12:28 Ross Wightman
2000-08-31 23:57 ` Jesper Skov

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