Re: [Openocd-development] Debugging from NAND Flash

2009-09-01 Thread Alan Carvalho de Assis
On 9/1/09, Alan Carvalho de Assis wrote: > Still not working: > > (gdb) target remote : > Remote debugging using : > 0xd800 in ?? () > (gdb) monitor reg pc 0xd850 > pc (/32): 0xD850 > (gdb) si > 0xd800 in ?? () > Infinite loop detected > (gdb) > > (gdb) monitor reg pc 0xd80

Re: [Openocd-development] Debugging from NAND Flash

2009-09-01 Thread Alan Carvalho de Assis
Hi Oyvind, On 9/1/09, Øyvind Harboe wrote: > > Fixed in head of GDB? > > http://www.nabble.com/Patch-for-the-gdb-problem-%C2%ABValue-being-assigned--to-is-no-longer-active%C2%BB-td23615004.html > Thank you very much! >> Is there any other way to setup the PC to right position? > > I've always u

Re: [Openocd-development] Debugging from NAND Flash

2009-08-31 Thread Øyvind Harboe
> Unfortunately I can't change the PC: > > (gdb) set $pc=0xd850 > Value being assigned to is no longer active. Fixed in head of GDB? http://www.nabble.com/Patch-for-the-gdb-problem-%C2%ABValue-being-assigned--to-is-no-longer-active%C2%BB-td23615004.html > Is there any other way to setup the

Re: [Openocd-development] Debugging from NAND Flash

2009-08-31 Thread Alan Carvalho de Assis
Hi, I found half of issue, I was configuring the board to boot from 16 bit NAND flash, but it is a 8 bit one. Now I can see the internal buffer memory and it is exactly equal to my binary. This is the disassembled u-boot-nand.bin: u-boot-nand.bin: file format binary Disassembly of section

[Openocd-development] Debugging from NAND Flash

2009-08-31 Thread Alan Carvalho de Assis
Hi All, I am trying to debug U-Boot on i.MX27ADS booting from NAND flash with no success. When I power-on this board the NFC should to copy 2KB of flash to internal buffer (0xD800) and start-up from there, but it is not happening. See my debug steps: $ arm-elf-gdb GNU gdb 6.6 Copyright (C) 2