You should check the datasheet of m28w740hcb and at49bv642d.Maybe there's something uncorrect when you write to your flash.Focus on the write option code.Maybe your software is compatible with at49bv642d, but m28w740hcb is not the same. Hopes to help!