[Openocd-development] MIPS and Big Endian

2011-03-16 Thread Drasko DRASKOVIC
Hi all, I just tried to load a small test ELF like this : 80008000 _ftext: 80008000: 3c088001lui t0,0x8001 80008004: 8d089014lw t0,-28652(t0) 80008008: 24090005li t1,5 8000800c: 3c018001lui at,0x8001 80008010:

Re: [Openocd-development] MIPS and Big Endian

2011-03-16 Thread Drasko DRASKOVIC
Hi all, this seems to be OpenOCD endianess probelem for MIPS big endian targets. This is what I concluded with further instigation. I started target in little endian mode and let it configure SDRAM. In this case SDRAM is well configured, all values well written and load to SDRAM works correctly.

Re: [Openocd-development] MIPS and Big Endian

2011-03-16 Thread Drasko DRASKOVIC
Even further investigation of the problem lead to these posts : http://www.mail-archive.com/openocd-development@lists.berlios.de/msg05586.html Can anybody tell me if the patch David proposed is well applied ? Although there are some traces of Davids changes in the mips_ejtag.c file, I can not see

Re: [Openocd-development] MIPS and Big Endian

2011-03-16 Thread Drasko DRASKOVIC
Hi all, embedding David's solutions for mips_m4k_write_memory() and mips_m4k_read_memory() from commit b271efe12132e93cb17adb037323f6cf251305b2 seems to be solving the problem for the small files. However, trying to load a bigger image function mips_m4k_bulk_write_memory() is called an fails in

[Openocd-development] SYS_WRITE0 PATCH 1 (was Re: SYS_WRITE0 in do_semihosting in arm_semihosting.c broken)

2011-03-16 Thread John and Tina Peterson
Finally got to testing these. Here's the fix... diff --git a/src/target/arm_semihosting.c b/src/target/arm_semihosting.c index a247cc8..903145c 100644 --- a/src/target/arm_semihosting.c +++ b/src/target/arm_semihosting.c @@ -139,7 +139,7 @@ static int do_semihosting(struct target *target)

[Openocd-development] SYS_WRITE0 PATCH 2 (was Re: SYS_WRITE0 in do_semihosting in arm_semihosting.c broken)

2011-03-16 Thread John and Tina Peterson
...and here's the prefetch version (fixed one little mistake...): diff --git a/src/target/arm_semihosting.c b/src/target/arm_semihosting.c index a247cc8..ef13f68 100644 --- a/src/target/arm_semihosting.c +++ b/src/target/arm_semihosting.c @@ -136,18 +136,26 @@ static int do_semihosting(struct

[Openocd-development] Embedded World / Cortex-M4 (Kinetis)

2011-03-16 Thread Hubert Hoegl
Hello list, about two weeks ago I spent a few days at Embedded World exhibition in Nuremberg where we had a tiny booth for Hochschule Augsburg (this is where OpenOCD started years ago with Dominic's thesis). We exhibited some student projects, despite OpenOCD was not in the main focus, we had

[Openocd-development] [PATCH] Fix a bunch of typos.

2011-03-16 Thread Uwe Hermann
Fix a bunch of typos. Most are in code comments, so nothing should break. UNKOWN_COMMAND and CMD_UNKOWN are not used elsewhere, so correcting the spelling should also not break anything. --- src/flash/nand/mx2.c |2 +- src/flash/nand/mx3.c |2 +- src/flash/nor/at91sam3.c

Re: [Openocd-development] MIPS and Big Endian

2011-03-16 Thread Mathias K.
Hello, Am 16.03.2011 20:19, schrieb Drasko DRASKOVIC: However, trying to load a bigger image function mips_m4k_bulk_write_memory() is called an fails in mips32_pracc_fastdata_xfer(). So, making mips_m4k_bulk_write_memory() to fall straight away to simple mips_m4k_write_memory(), like in