Hi again we set the DE (debug enable) also manually at a break long after startup. But then it is reset again. We checked kode around interupt handling but haven't found the code responsible for resetting. It is certainly not done in out application code. So any hint in where the resetting could happen is welcome, cheer alex lindeijer 3D-perception -----Original Message----- From: Fahd Abidi Sent: 13/01/2010, 21:38 To: Alex Lindeijer; ecos-disc...@sourceware.org Subject: RE: [ECOS] Use of Lauterback debugger
look at the initial .S file, in uboot for instance its called start.S, I'm not sure what its called in ecos. Search in there for MSR or MSR[DE] and you will find the reference for it. Fahd ________________________________ From: Alex Lindeijer [mailto:ale...@3d-perception.com] Sent: Wed 1/13/2010 3:23 PM To: Fahd Abidi; ecos-disc...@sourceware.org Subject: RE: [ECOS] Use of Lauterback debugger Thanks for the quick reply! However I cannot find some ting for that in the config tool. I have look in kernel code for MSR macros etc but those didn't explain the resetting of this bit. Alex Lindeijer | 3D perception AS Senior System Designer ale...@3d-perception.com T: +47 97540959 www.3D-perception.com <http://www.3D-perception.com> Achieving Your Vision From: Fahd Abidi [mailto:fab...@ultsol.com] Sent: 13. januar 2010 21:09 To: Alex Lindeijer; ecos-disc...@sourceware.org Subject: RE: [ECOS] Use of Lauterback debugger You need to set a special flag in ecos, such as CONFIG_HW_DEBUG, where it ignores the code path to disable the debug interrupt bit. This is typically how this issue is handled in uboot or the Linux kernel. Fahd ________________________________ From: ecos-discuss-ow...@ecos.sourceware.org on behalf of Alex Lindeijer Sent: Wed 1/13/2010 2:30 PM To: ecos-disc...@sourceware.org Subject: [ECOS] Use of Lauterback debugger Hi We are trying to use a Lauterbach hardware debugger on a MPC8541. For the debugger to work( like breakpoints/stepping) the debug interrupt enable bit in the Machine State Register must be set. However we see that even when we set it (at start-up in the kernel or manually when breaking/continuing), it is reset by some code in the ecos kernel. Does anybody have hint where? We have not enabled GDB. Thanks in advance Alex Lindeijer Senior System Designer 3D Perception -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
-- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss