> /* 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? -- Ø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
