Re: Semi hosting with BDI2000 BDM ?

2 messages, 2 authors, 2003-05-22 · open the first message on its own page

Re: Semi hosting with BDI2000 BDM ?

From: Milton D. Miller II <hidden>
Date: 2003-05-21 04:34:24

If you are looking for a driver to take printf and send it to either
a memory buffer or some other channel to the host, then you might
consider starting with drivers/char/hvc_console.c ... It is a full
linux console driver that gets input and output via polling call
with timer callbacks for normal tty traffic.   The driver calls
two functions (one read, one write), write sinks 0 or upto 16
characters, and read returns 0-16 characters.

I have been using this driver hooked up to a large linear buffer for
write and "if a location is non-zero send 1 byte" for read for a
system where I have alternate access to the memory.  To read the
console just dump the memory, to write I have a script to put one
character and then wait 1/HZ seconds, then write the location again.

milton

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: Semi hosting with BDI2000 BDM ?

From: Robin Gilks <hidden>
Date: 2003-05-22 01:50:28

That looks to be what I want if I'm reading the code correctly - shame there is no
comment about what the hvc module is actually _supposed_ to do. I'd like to optimise
the i/o via the debugger a little to your implementation (I think!! - i.e. more
responsive that once a second but thats not critical) but a gdb script that loops
round pushing and pulling data would do it I reckon.

Perhaps someone on the list uses a Lauterbach debugger which _does_ support
semi-hosting - be interested in how they do it...

Cheers

--
Robin Gilks
Senior Design Engineer              Phone: (+64)(3) 357 1569
Tait Electronics                          Fax  :  (+64)(3) 359 4632
PO Box 1645 Christchurch        Email : robin.gilks@tait.co.nz
New Zealand


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help