@Vishnu, since you can read from M25P16, could you read the status/protection information? What are the bits set for write protection? ...both the soft and the hard bits? M25P16 has - like many similar devices have - protection information to prevent accidental overwrites...
M25P16 has quite an elaborate way to protect against accidental overwrite and also ways to make things permanent - on-time-programmable OTP ROM / fuse/anti-fuse ROM. M25P16 has these features last but not least also because of the capacity: you need only one memory chip in the system to handle the permanent and the non-permanent/non-volatile needs.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@Vishnu, since you can read from M25P16, could you read the status/protection information? What are the bits set for write protection? ...both the soft and the hard bits? M25P16 has - like many similar devices have - protection information to prevent accidental overwrites...
M25P16 has quite an elaborate way to protect against accidental overwrite and also ways to make things permanent - on-time-programmable OTP ROM / fuse/anti-fuse ROM. M25P16 has these features last but not least also because of the capacity: you need only one memory chip in the system to handle the permanent and the non-permanent/non-volatile needs.