- Fri Jul 14, 2006 12:10 am
#15846
Hi,
The problem is simple. I have a binary file main.bin (696 bytes) and I want to program it into flash.
1) I program it with SAM-BA, it works. I read it in openocd with "mdb 0x00100000 696" and it is same like the binary main.bin.
2) I program it with openocd, with "flash write 0 main.bin 0x0", it doesnt work. When I read it with openocd "mdb 0x00100000 696, I get the same binary like main.bin on my HDD between 0 and 618 byte (its ok), then 619 byte is 0x00 (wrong) and 620-696 bytes are FF (wrong).
My hardware is at91sam7x256 programmed with jtagkey clone, my openocd is the openocd-2006re76-setup-rc01.exe. My system is WindowsXP (cygwin, gnuarm, etc.)
My config and instructions scripts are based on Martin Thomas flash programming tutorial which I found on his page.
The problem is simple. I have a binary file main.bin (696 bytes) and I want to program it into flash.
1) I program it with SAM-BA, it works. I read it in openocd with "mdb 0x00100000 696" and it is same like the binary main.bin.
2) I program it with openocd, with "flash write 0 main.bin 0x0", it doesnt work. When I read it with openocd "mdb 0x00100000 696, I get the same binary like main.bin on my HDD between 0 and 618 byte (its ok), then 619 byte is 0x00 (wrong) and 620-696 bytes are FF (wrong).
My hardware is at91sam7x256 programmed with jtagkey clone, my openocd is the openocd-2006re76-setup-rc01.exe. My system is WindowsXP (cygwin, gnuarm, etc.)
My config and instructions scripts are based on Martin Thomas flash programming tutorial which I found on his page.