cancel
Showing results for 
Search instead for 
Did you mean: 

How do I erase the M24SR NDEF record from I2C?

Alpha Mr
Associate II

I am using STM32. I can read the NDEF file from M24SR via I2c but I want to to delete it after reading so do I erase? I didn't found any example of erasing in app note.

1 ACCEPTED SOLUTION

Accepted Solutions
Berenice BENVEGUDA
ST Employee

Hello,

First of all, thanks for your interest in M24SR and STM32 products !

Erasing an NDEF file is usually done by overwriting the NDEF file content.

The simplest way to make the NDEF content "unvalid" is to put NDEF length to 0 ( offset address 0 of the NDEF file).

I hope this answers your question,

Best Regards

View solution in original post

1 REPLY 1
Berenice BENVEGUDA
ST Employee

Hello,

First of all, thanks for your interest in M24SR and STM32 products !

Erasing an NDEF file is usually done by overwriting the NDEF file content.

The simplest way to make the NDEF content "unvalid" is to put NDEF length to 0 ( offset address 0 of the NDEF file).

I hope this answers your question,

Best Regards