Post Go back to editing

Load dxe/elf with gdb

Hello,

I'm trying to load an dxe file to my BF516 with gdbproxy and a ADI ICE-100B. I'm using the released 2011 toolchain.

The gdbproxy starts fine:

Found USB cable: ICE-100B
ICE-100B firmware version is 2.0.7
IR length: 5
Chain length: 1
Device Id: 00100010011111101000000011001011 (0x227E80CB)
  Manufacturer: Analog Devices, Inc. (0x0CB)
  Part(0):      BF518 (0x27E8)
  Stepping:     2
  Filename:     c:\program files (x86)\analog devices\gnu toolchain\2011r1\elf\b
in\../share/urjtag/analog/bf518/bf518
warning:   bfin: no board selected, BF518 is detected
notice:    bfin: jc: waiting on TCP port 2001
notice:    bfin: jc:  (you must connect GDB before using jtag console)
notice:    bfin-gdbproxy: waiting on TCP port 2000

And the gdb starts fine also:

(gdb) set pagination off
(gdb) target remote localhost:2000
Remote debugging using localhost:2000
0xffa0013c in ?? ()
(gdb) source vdsp-flash-programmer
(gdb) sanity_check_hwerr

The recipe comes from this script btw: http://sourceforge.net/p/adi-toolchain/blackfin/ci/master/tree/debug-helpers/gdb-scripts/vdsp-flash-programmer.sh Which I'm trying to reproduce.

When I try to load my dxe, gdb gives this output:

(gdb) load BF516FEzFlashDriver_Macronix_gnu.elf
Loading section L1_data_b, size 0x804 lma 0xff900000
Loading section L1_code, size 0xce lma 0xffa00000
Loading section L1_code, size 0x3fa6 lma 0xffa10000
Load failed

Notice that the file above is a stripped down elf file, created by the vdsp-flash script. However, dxe or elf file, the error is the same.

And gdbproxy gives this output:

error:     bfin: [0] cannot write L1 icache when enabled [0xFFA10000] size 16288

What am I doing wrong? (I've attached my dxe and elf file)

attachments.zip