RE: Debugging in exception handlers
"Dobbin Allan-r11834" <[email protected]>
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <4147ED8B92A864498825C07E53594E4A322AE4@az33exm20.fsl.freescale.net> |
You have to enable hardware breakpoints for FLASH. Do this by inserting the following into your config file which should run when you boot your code from SDS: # enable hardware breakpoints in FLASH area - comment these instructions out when running from RAM. mem -d * mem 0x0-0x6ffff hwbrk Add a few other commands to your config as follows: set vectbase = 0x0 set vectaddr = 0x0 @ MSR = 0x00000042 Regards, Allan -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of prashanth_feb9 Sent: Monday, October 24, 2005 1:19 AM To: [email protected] Subject: [MPC500] Debugging in exception handlers Hi All, I am working on Phycore MPC565 board with single step debugger. In the configuration file of single step the DER register value was 0x73e67c0f. Whenever an exception was generated the debugger used to display popup messages. To avoid the popup i have reset the bits in the DER register. As an example, I have reset the system call exception bit in DER to check that whenever the exception occurs it branches to the exception handler (Address 0xC00) But when I generate a system call exception using a sc instruction and apply a breakpoint at 0xC00 it does not stop at the breakpoint (This address is in the internal Flash). Please let me know why the breakpoint is not activated at 0xC00 and debug the exception handler code. Thanks and Regards, Prashanth ----------------------------------------------------------- To learn more about Freescale Microcontrollers, please visit http://www.freescale.com/mcu Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/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/