Hi!
I have a little question regarding stellaris flash programming. I have two boards available here, LM3S8962 demoboard and my own design based on LM3S6950. And both behave the same.
In case I have small binary/hex images (like up to 60K…), everything goes as expected. But openocd fails to flash image which size is about 100K. It reports:
Debug: 2698 75028 stellaris.c:821 stellaris_write(): (bank=00038508 buffer=00C122F0 offset=00000000 count=00016DC9)
Warning: 2699 75028 stellaris.c:836 stellaris_write(): offset size must be word aligned
Error: 2700 75028 flash.c:103 flash_driver_write(): error writing to flash at address 0x00000000 at offset 0x00000000 (-904)
Debug: 2701 75028 command.c:387 find_and_run_command(): Command failed with error code -904
Im a little bit confused here. Any idesas what can by wrong?
toolchain for compiling: codesourcery lite
openocd ver 717 (from yagarto website)
config file:
#daemon configuration
telnet_port 4444
gdb_port 3333
#interface
interface ft2232
ft2232_device_desc “Stellaris Evaluation Board A”
ft2232_layout evb_lm3s811
ft2232_vid_pid 0x0403 0xbcd9
jtag_speed 20
#LM3S811 Evaluation Board has only srst
#reset_config srst_only separate
reset_config trst_and_srst
#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe
#target configuration
daemon_startup attach
#target
#target arm7tdmi
target cortex_m3 little run_and_halt 0
4k working area at base of ram
working_area 0 0x20000800 0x4000 nobackup
#flash configuration
flash bank stellaris 0 0 0 0 0
debug_level 3
Thank you,
Madis