Le mardi 14 février 2012 05:11:20, Spencer Oliver a écrit :
> On 14 February 2012 01:04, Jacques Pelletier <[email protected]> wrote:
> > Hi,
> > 
> > My hardware setup is an Amontec JTAGKey tiny with openocd 0.5.0
> > I'm able to mass erase the flash and write some binaries with size < 1024
> > bytes.
> > 
> > Any binaries with size greater than 1024 fail to program and openocd
> > gives sticky errors. If I split the binary into 1024 chunks and write
> > them in successive location, the write operations succeed and the
> > program runs fine.
> > 
> > The LM3S101 has 8k flash in 8 1k blocks, and 2k of SRAM. Can the small
> > size of the RAM be a problem for programming the flash?
> > 
> > It seems to me that this is a software problem and I could use some time
> > to try to fix this. I looked a bit in src/flash/nor/stellaris.c.
> 
> I am guessing that the working area is incorrect.
> The default WORKAREASIZE is 8k unless changed by your config - perhaps
> this needs changing to a safer smaller value.
> 
> For testing try adding this to your config:
> set WORKAREASIZE 0x800
> 
> Cheers
> Spen
It worked fine! I can now write files > 1024 bytes.

Thanks!

JP

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to