Page Write Saved even after failure code

cancel
Showing results for 
Search instead for 
Did you mean: 

Page Write Saved even after failure code

362 Views
eljeffo
Contributor III

When using a CLRC663 to write to an Ultralight EV1 Chip, on occasion I get back error code 0x0201

        status = phalMful_Write( pDataParams, Address, Data);

In these cases, I assume I have lost connection with the chip AND that my write is not saved.

However I find that often the write is successful, even though I get back an error status.

How do I interpret status = 0x0201?

Does it mean:

1) Write failed (doubt it)

2) Write maybe failed, but can't be sure (seems like it)

3) Write succeeded, then connection lost (can it be guaranteed?)

4) Write status impossible to determine without reconnection

0 Kudos
3 Replies

201 Views
AlexanderB
NXP Employee
NXP Employee

Hello @Jeffrey_Chan,

To check error codes look into the file 'ph_Status.h'.

Looking at '0x0201':

  • 0x0200 is the component: PH_COMP_HAL
  • 0x0001 is the error PH_ERR_IO_TIMEOUT /**< No reply received, e.g. PICC removal. */

So it is very likely that the write itself was successful but the response (ACK) hasn't been received and that's why you get a timeout error. 

Do answer you question; This would be option "4) Write status impossible to determine without reconnection" because without reading it you don't know what failed.

  • Has the tag already NOT received your request. --> Nothing written
  • Has the tag received the frame but with error --> Nothing written
  • Has the tag recieved the request correct but PCD couldn't receive response (for whatever reason) --> Most probably written, but to be confirmed by reading.

Conclusion: By receiving an error you most likely can assume that the write was NOT successful. To be confirmed by reading back.

Hopefully that answered your question :-)

Best regards,

Alexander

0 Kudos

201 Views
eljeffo
Contributor III

Thanks Alexander!  Appreciate your confirmation!

0 Kudos

201 Views
IvanRuiz
NXP TechSupport
NXP TechSupport

Hello, 

Please share the requested information in thread: https://community.nxp.com/thread/521102 

Thank you,

Ivan.

0 Kudos