Re: [Openocd-development] [patch/RFC 2/2] stellaris: write words only

2009-12-18 Thread David Brownell
On Friday 18 December 2009, Michael Schwingen wrote: > David Brownell wrote: > > Though ... I suppose that just verifying flash writes would > > catch a number of these problems too. After all, the main > > constraint is that zero bits can't turn back to ones... > > Sounds good. Another alterna

Re: [Openocd-development] [patch/RFC 2/2] stellaris: write words only

2009-12-18 Thread Michael Schwingen
David Brownell wrote: >> Hm. Not sure if this patch affects "write binary" behaviour, but in the >> past, I had problems writing binary files with an odd number of bytes to >> flash, because the last byte would trigger a similar check. >> > > Last byte? Sounds like a different issue. Maybe

Re: [Openocd-development] [patch/RFC 2/2] stellaris: write words only

2009-12-18 Thread David Brownell
On Friday 18 December 2009, Michael Schwingen wrote: > David Brownell wrote: > > Never attempt to write partial words. The hardware only > > allows writing entire words ... so don't guess about what > > users want to do with the other bytes. Require them to > > say explicitly what data they want

Re: [Openocd-development] [patch/RFC 2/2] stellaris: write words only

2009-12-18 Thread Michael Schwingen
David Brownell wrote: > Never attempt to write partial words. The hardware only > allows writing entire words ... so don't guess about what > users want to do with the other bytes. Require them to > say explicitly what data they want written. > Hm. Not sure if this patch affects "write binary"

[Openocd-development] [patch/RFC 2/2] stellaris: write words only

2009-12-17 Thread David Brownell
Never attempt to write partial words. The hardware only allows writing entire words ... so don't guess about what users want to do with the other bytes. Require them to say explicitly what data they want written. --- Similar in concept to the NOR patch I sent for comment. I sure hope we don't ha