On Sat, Aug 23, 2008 at 10:04 AM, Daniel Gimpelevich <[EMAIL PROTECTED]> wrote: > On Sat, 23 Aug 2008 09:57:42 +0200, Øyvind Harboe wrote: > >>> /* check whether address belongs to this flash bank */ >>> - if ((addr >= c->base) && (addr < c->base + c->size) && >>> target == c->target) + if ((addr >= c->base) && (addr - 1 >>> < c->base + c->size - 1) && target == c->target) >>> return c; >> >> what about the case where addr==0 for a flash starting at address 0? > > Got a better idea?
My question was as to whether the above was correct or not. I don't disagree that there is a bug to be fixed. -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 XScale Cortex JTAG debugger and flash programmer _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
