How does NFC rewrite code?
Why do I rewrite the code according to the example of nfc07a1, but the string of smartag is always read out? Can I change its code?
void MX_NFC7_NDEF_URI_Init(void){
SmarTag_LED_GREEN_On();
while( SMARTAG1_NFCTAG_Init(SMARTAG1_NFCTAG_INSTANCE) != NFCTAG_OK ){}
/* Reset Mailbox enable to allow write to EEPROM */
SMARTAG1_NFCTAG_ResetMBEN_Dyn(SMARTAG1_NFCTAG_INSTANCE);
/* Check if no NDEF detected, init mem in Tag Type 5 */
if( NfcType5_NDEFDetection( ) != NDEF_OK ) {
CCFileStruct.MagicNumber = NFCT5_MAGICNUMBER_E1_CCFILE;
CCFileStruct.Version = NFCT5_VERSION_V1_0;
CCFileStruct.MemorySize = ( ST25DV_MAX_SIZE / 8 ) & 0xFF;
CCFileStruct.TT5Tag = 0x05;
while( NfcType5_TT5Init( ) != NFCTAG_OK ) ;
}
SmarTag_LED_GREEN_Off();
}
/**
* @brief Process of the NDEF_URI application
* @retval None
*/
void MX_NFC7_NDEF_URI_Process(void)
{
char str[] = "Hello, NFC!";
const uint16_t size = strlen(str) + 1;
NfcType5_WriteNDEF(size, (uint8_t *)str);
HAL_Delay(300);
}

