* Semi hosting with BDI2000 BDM ?
@ 2003-05-19 22:57 Robin Gilks
0 siblings, 0 replies; 3+ messages in thread
From: Robin Gilks @ 2003-05-19 22:57 UTC (permalink / raw)
To: linuxppc embedded
Greetings
Having worked on ARM CPUs for several years where a semi-hosting mode is available
for debugging, I'm wondering if something similar is available using a BDI2000 on a
MPC8xx target.
What I'm looking to do is put together a suite of tests that don't rely on the
serial port to get the results out - in fact one of the tests is to check the serial
port!!
Anyone used or have sample code for a 'printf' implementation that appears on the
debug host rather on a serial line/LCD output etc?
--
Robin Gilks
Senior Design Engineer Phone: (64)(3) 358 ????
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Semi hosting with BDI2000 BDM ?
@ 2003-05-21 4:34 Milton D. Miller II
2003-05-22 1:50 ` Robin Gilks
0 siblings, 1 reply; 3+ messages in thread
From: Milton D. Miller II @ 2003-05-21 4:34 UTC (permalink / raw)
To: robin.gilks; +Cc: linuxppc-embedded
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Semi hosting with BDI2000 BDM ?
2003-05-21 4:34 Semi hosting with BDI2000 BDM ? Milton D. Miller II
@ 2003-05-22 1:50 ` Robin Gilks
0 siblings, 0 replies; 3+ messages in thread
From: Robin Gilks @ 2003-05-22 1:50 UTC (permalink / raw)
To: Milton D. Miller II; +Cc: linuxppc-embedded
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-05-22 1:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-21 4:34 Semi hosting with BDI2000 BDM ? Milton D. Miller II
2003-05-22 1:50 ` Robin Gilks
-- strict thread matches above, loose matches on Subject: below --
2003-05-19 22:57 Robin Gilks
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 NNTP newsgroup(s).