$ 0 0 The hardware already divides the flash into 512-byte segments. Your flash programming software must mirror that.