[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [uClinux-dev] Re: [microblaze-uclinux] uclinux build fails because



Hi Anand,

anand_12 wrote:

> I have one more doubt...though I have not explicitly placed any breakpoints in my kernel image..when I download it on to SDRAM using xmd and then try to execute it using the con "start addr" command....the execution halts after giving this message on the xmd console

Are you using the xmd/mdm/fsl combination as described on the website?

http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux/Documentation/debugging_kernel.html

> XMD% USERSTOP AT
> ..some address in SDRAM: opcode...and the instruction
> 
> when I do a bpl(breakpoint listing),nothing shows up
> 
> XMD% bpl
> XMD%
> 
> whenever this happens,I do a 'rrd' in the XMD console 
> and find that register r16(of microblaze) holds the same address as the PC and according to the microblaze software reference manual..this happens whenever a hardware break occurs(register r16 gets the address of the instruction that was to be executed when the break occured...)

Here's a useful technique for debugging this kind of problem:

$ cd uClinux-dist/images
$ mb-objdump -S image.elf > image.dump

then open image.dump, and look at the code at/around the address of 
interest.  Let us know what you find.

Regards,

John


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/