[En-Nut-Discussion] Nut/OS Initialization

Harald Kipp harald.kipp at egnite.de
Thu Sep 18 09:48:39 CEST 2008


Alain M. wrote:
> PragmaLab escreveu:
>> what about getting the address of the reset vector and start debugging from
>> there? Just look in the map-file. I'm not familiar with Eclipse but at least
>> it must be possible to set breakpoints on (HW)addresses. 
> 
> It seams like it is easy, but I never manged to make it. If you set a 
> breakpoint using the debugger, Eclipse does not enter the source level 
> debugging mode. It could take an expert in Eclipse to do that, if anyone 
> can find one...

If everything is set up correctly, you can set a hardware breakpoint at 
the reset vector and press the reset button.

On the AT91R40008, for example, this is not possible, because nSRST is 
internally connected to the nTRST. Pressing the reset button will also 
clear the hardware breakpoint.

In such cases you can add an endless loop in crt0.s and use the debugger 
console to halt the CPU and increase the PC by 4.

Harald



More information about the En-Nut-Discussion mailing list