Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 8 months ago.
NFC_Nucleo_Example hangs after modifying values
I'm trying to write a tel-URI to the ST Nucleo NFC board by modifying the original example program as follows:
Prepare URI NDEF message content
pc.printf("Prepare URI NDEF message content\n");
strcpy(URIout.protocol,URI_ID_0x05_STRING);
strcpy(URIout.URI_Message,"5551234567");
strcpy(URIout.Information,"\0");
pc.printf("Done\n\n");
After copying the binary file to my Nucleo ST32F401RET6, the program gets stuck while writing, as follows:
.NFC Example Prepare URI NDEF message content Done
URIout contents: URIout.protocol=tel: URIout Type: 5 URIout.URI_Message=5551234567
Initializing Tag Type 4 Access ... SUCCESS
Writing URI ...
Curiously, if I strip just one digit from the phone number, the program works flawlessly:
.NFC Example Prepare URI NDEF message content Done
URIout contents: URIout.protocol=tel: URIout Type: 5 URIout.URI_Message=555123456
Initializing Tag Type 4 Access ... SUCCESS
Writing URI ... SUCCESS
Reading back URI ... SUCCESS
URIin contents: URIin.protocol=tel: URIin Type: 5 URIin.URI_Message=555123456
Done
Any ideas?