On 29/08/13 21:39, Spencer Oliver wrote: > On 28/08/13 13:55, Spencer Oliver wrote: >> On 27/08/13 11:38, Chris Fryer wrote: >>> On 27/08/13 10:14, Chris Fryer wrote: >>>> The first problem was that when 'flash info 0' was run, the code would >>>> quit with an assert(bank->num_sectors > 0); >>>> This turned out to be a simple fix: size and count reversed when >>>> calling target_read_memory to get config registers from the IC. Patch >>>> attached. >>> I now realise (I think) that the above patch was, in fact, a workaround >>> for a problem with multiple byte reads presumably in the cmsis-dap >>> implementation: >>> >>> > mdb 0x40020010 0x04 >>> 0x40020010: ff 00 00 00 >>> > mdw 0x40020010 0x01 >>> 0x40020010: ffffffff >>> >>> >> >> I will look into that as I thought all the read/write etc was working. >> Make sure you are using the latest patchset. >> > > Seems this target does not support packed transfers, so we will need to > add detection and use the non packed read/write routines. >
http://openocd.zylin.com/1602 should fix it Spen ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel