Hello!
I’m trying to program an STR731FV2T6 processor. Flash erasing, dumping works, but I can’t burn the flash. I get the following messages:
flash write_image TDG1_UPD.BIN 0x80000000 bin
timed out while waiting for target halted
error executing str7x flash write algorithm
target not halted
flash writing failed with error code: 0x0
error writing to flash at address 0x80000000 at offset 0x00000000 (-902)
called at file “command.c”, line 473
called at file “embedded:startup.tcl”, line 89
called at file “embedded:startup.tcl”, line 91
called at file “embedded:startup.tcl”, line 93
Just before this flash_write command, I send a ‘halt’ command, so I don’t understand what is happening.
Could someone pls help me?
Thanks,
recortebordes
What flash config line are you using?
if i setup the flash as follows:
flash bank str7.flash str7x 0x80000000 0x00040000 0 0 str7.cpu STR3x
then the offset from this is 0, so to flash i would use:
flash write_image TDG1_UPD.BIN 0 bin
Cas07
February 10, 2010, 3:07am
3
I think this was the same error i got when using 0.4.0RC1 and it is a known problem so I’m using 0.3.1 now
ntfreak
February 10, 2010, 9:19am
4
What known problem?
The problem above looks related to incorrect config, not openocd.
Cheers
Spen
Hello!
I solved the problem. The working area that was defined by default couldn’t be used:
$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0
On the processor I am using, STR731FV2T6, at address from 0x40000000 to 0x4000003F there only config registers, I had to replace the working area start address to 0xA0000000, where the RAM begins :D.
then the offset from this is 0, so to flash i would use:
It is strange, because with offset 0x80000000 the programming is working perfectly.
Cas07: I am using 0.3.1.
Thanks,
recortebordes
Cas07
February 10, 2010, 10:30pm
6
ntfreak:
What known problem?
The problem above looks related to incorrect config, not openocd.
Cheers
Spen
Actually you are right, i got mixed up, it wasn’t the error i saw when i needed to downgrade as it finished with “Command handler execution failed”
:oops: