Single char autocorrection of address calculation in legacy mode (not used in regular cases). - flash_base = buf[i].flash_base & (master->size - 1); + flash_base = buf[i].flash_base & ~(master->size - 1); Andrzej