« Return to Thread: Coldfire V2 devices and serial debuggers
X-SpamDetect-Info: ------------- Start ASpam results --------------- X-SpamDetect-Info: This message may be spam. This message BODY has been altered to show you the spam information X-SpamDetect: *******: 7.000000 From3consonants=0.3, SpamUrl=4.1, Accept Orbs.0, X-Verify-SMTP present=0.6, Aspam=3.0 X-SpamDetect-Info: ------------- End ASpam results -----------------Forgive my lack to astuteness with regards to how to respond to this list. I'm sure with your assistance I will figure it out soon.
Hi Harjit,
> Has anyone got a serial debugger running on a Coldfire V2 MCF52xxx
> device?
Blunk's TargetTools includes a debug monitor, TargetMon, that connects
to the debugger (Insight/GDB) via Ethernet.
http://www.blunkmicro.com/tools-cf.htm
Currently, when a breakpoint hits, all tasks are stopped and only the
debug monitor runs, in polled mode with interrupts masked and still
communicating over TCP/IP, but we've had this running in an alternate
mode that just suspends the task that hit the breakpoint and lets other
tasks continue running.
We've had other requests from this, from customers doing motor control
as you are, and will be productizing this mode. If you are interested
in trying our software, we can supply this mode for you.
Best regards,
Tim
Harjit Singh wrote:
> Has anyone got a serial debugger running on a Coldfire V2 MCF52xxx device?
>
> A while back I read that dBug supports the GDB protocol and dBug is a
> serial debugger. But all posts I have seen, seem to be about using a BDM
> based debugger.
>
> The reason a serial debugger is prefered to a BDM based debugger is that
> I'm doing some robotics work and I can make the servo code run at a
> higher interrupt level than the serial debugger and this will allow me
> to debug code with servos running.
>
> BDM is too intrusive and it will cause the servos to go nuts.
>
> The CF debug docs say that BDM theoretically will steal cycles but
> everything I have read says tha the BDM debuggers halt the CPU...
>
> Thanks in advance.
> Harjit
>
> ------------------------------------------------------------------------
> Windows Live™: Keep your life in sync. See how it works.
> <http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_allup_howitworks_022009>coldfire@...
> Send a post to the list. coldfire-join@... Join the list.
> coldfire-digest@... Join the list in digest mode.
> coldfire-leave@... Leave the list.
------------------------------------------------------------
Tim Stoutamore, Principal Engineer
Blunk Microsystems, LLC
6576 Leyland Park Drive
San Jose, CA 95120-4558
Tel: 408/323-1758
stout@...
www.blunkmicro.com
------------------------------------------------------------
Harjit Singh wrote:
[...]
> The reason a serial debugger is prefered to a BDM based debugger is
> that I'm doing some robotics work and I can make the servo code run
> at a higher interrupt level than the serial debugger and this will
> allow me to debug code with servos running.
>
> BDM is too intrusive and it will cause the servos to go nuts.
In most cases, a serial debugger will have more impact.
Do you want single step debugging of one task while the interrupt
service routine is still running? This might indeed be harder.
If you only want to observe or maniplate variables during program
execution, BDM is likely the better way.
> The CF debug docs say that BDM theoretically will steal cycles but
> everything I have read says tha the BDM debuggers halt the CPU....
Coldfire V2 BDM is indeed more intrusive than the HC12 BDM is.
Accessing memory stalls the pipeline, causing several cycles delay. I
couldn't get Freescale giving me official numbers, but my
measurements showed me that 4..6 cycles for every memory access are
likely.
You will probably see such delays also when using DMA transfers.
With architectures like the Coldfire V2, you shouldn't rely on
precise cycle by cycle instruction timing unless you know very well
what happens.
Oliver
--
Oliver Betz, Muenchen
Hi Harjit,
Is this a platform that's running uClinux like M52277? If it is, you can run
gdbserver/gdb via a serial connection.
Best regards,
Matt
Harjit Singh wrote:
> Has anyone got a serial debugger running on a Coldfire V2 MCF52xxx device?
>
> A while back I read that dBug supports the GDB protocol and dBug is a
> serial debugger. But all posts I have seen, seem to be about using a BDM
> based debugger.
>
> The reason a serial debugger is prefered to a BDM based debugger is that
> I'm doing some robotics work and I can make the servo code run at a
> higher interrupt level than the serial debugger and this will allow me
> to debug code with servos running.
>
> BDM is too intrusive and it will cause the servos to go nuts.
>
> The CF debug docs say that BDM theoretically will steal cycles but
> everything I have read says tha the BDM debuggers halt the CPU...
>
> Thanks in advance.
> Harjit
>
> ------------------------------------------------------------------------
> Windows Live™: Keep your life in sync. See how it works.
> <http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_allup_howitworks_022009>coldfire@...
> Send a post to the list. coldfire-join@... Join the list.
> coldfire-digest@... Join the list in digest mode.
> coldfire-leave@... Leave the list.
« Return to Thread: Coldfire V2 devices and serial debuggers
| Free embeddable forum powered by Nabble | Forum Help |