Mysterious exceptions
"qty154" <[email protected]>
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <[email protected]> |
Hello!
I have a Wuerz board with MPC565. I wrote an RTOS myself.
I now flashed an application program and I began (again) to receive
spurious exceptions. It seems my program somewhere goes astray and it
doesn't start the application as expected. I put some code to the OS
itself to cause an exception, and the result is that if I put this
code than it is executed, I see it in the exception log window (2nd
serial port), but when I remove it it seems the code is not executed.
(I cannot describe it better since I don't have a debugger)
I suspected the exception handler or the interrupt handler have bug,
but this problem never occured for ages, and came up again when I
reorganised the initialisation sequence in the OS.
MOREOVER, If I attach the wiggler cable to the BDM port, and start the
mccraigor OCDaemon program, then the problem never occures!!! Even if
I don't use the program at all!
The difference is being the cable connected and not connected is that
the wiggler pulls the DSCK pin high with -SRESET causing the processor
to enable debug mode. I saw it on an oscilloscope.
The OS anyway tries to disable the debug mode via resetting all bits
in the DER.
My question is that what is the side effect of the cable being
connected? What happens inside the RCPU if the cable is connected?
(The moment 22 is that If I attach the cable to run ocdaemon, then the
problem never happens. If I detach it and attach it after reset then
the problem occures but I'm not able to halt the program.)
Any ideas??
Best regards
Attila
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/dN_tlB/TM
--------------------------------------------------------------------~->
-----------------------------------------------------------
To learn more about Freescale Microcontrollers, please visit
http://www.freescale.com/mcu
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/MPC500/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/