* OCD - wiggler baud rate problem
@ 2001-08-29 9:20 Jonathan Riches
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Riches @ 2001-08-29 9:20 UTC (permalink / raw)
To: gdb, bystricky.juro
Thanks Juro for the info. It appears that in GDB 5.0 (ocd.c) that all ocd
writes / reads are as bytes, this would account for the problem I also had
in writing an init file, where the SYPCR was only getting 1 byte written,
then it was set for good.
I have found the download speed using wiggler has risen from 10,000 bits/sec
to 25,000,
Regards
Jonathan Riches
Juro wrote >
#######################################################################
Hi Jonathan
There's a bug in OCD.C, I reported it to macraigor:
the file load was SIGNIFICANTLY
slower. Using Raven I achieved the equivalent of about 9600 baud rate.
So I started comparing the old code with the new one and found a serious
bug:
in the file OCD.C you try to determine if to read/write words, halfwords or
bytes.
Your code:
=======================================================
if ( ((memaddr & 4) == 4) || ((len & 4) == 4) )
buf[5] = 4; /* Word align and word length */
else if ( ((memaddr & 2) == 2) || ((len & 2) == 2) )
buf[5] = 2; /* TWO BYTE WRITE */
else
buf[5] = 1; /* default to byte write */
=====================================================
is clearly wrong. You probably meant something like:
=====================================================
if ( ((memaddr & 3) == 0) && ((len & 3) == 0) )
buf[5] = 4; /* Word align and word length */
else if ( ((memaddr & 1) == 0) && ((len & 1) == 0) )
buf[5] = 2; /* TWO BYTE WRITE */
else
buf[5] = 1; /* default to byte write */
=====================================================
The same code occurs in two different places.
Indeed, after replacing the code we were back up to the speed
#####################################################################
^ permalink raw reply [flat|nested] 2+ messages in thread
* OCD - wiggler baud rate problem
@ 2001-08-28 9:16 Jonathan Riches
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Riches @ 2001-08-28 9:16 UTC (permalink / raw)
To: gdb
Hello,
can anybody help me out on this:
I am using gdb to connect to an MPC860 prototype board. I have built GDB
5.0 for a powerpc-rtems target. The environment is Win NT4.0 / cygwin
1.1.6, target OCD/Wiggler
I'm having a problem in the download speed, for example a 120k file takes
100 seconds to download using an OCD wiggler. The same file can be
downloaded to the target using Metaware SeeCode debugger (with OCD/wiggler)
within 15 seconds. The SeeCode uses wigglers.dll.
Does anyone know how to reduce the download time? Are there any alterations
to ocd.c/h or ser-ocd.c that could be made?
Regards
Jonathan Riches
Senior Design Engineer
Westbridge Design Ltd
Privett, Alton, GU34 3PL, UK
tel. 01730 828111 fax 01730 828123
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-08-29 9:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-29 9:20 OCD - wiggler baud rate problem Jonathan Riches
-- strict thread matches above, loose matches on Subject: below --
2001-08-28 9:16 Jonathan Riches
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox