Page Write Saved even after failure code

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Page Write Saved even after failure code

977件の閲覧回数
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

ラベル(2)
0 件の賞賛
3 返答(返信)

816件の閲覧回数
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 件の賞賛

816件の閲覧回数
eljeffo
Contributor III

Thanks Alexander!  Appreciate your confirmation!

0 件の賞賛

816件の閲覧回数
IvanRuiz
NXP Employee
NXP Employee

Hello, 

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

Thank you,

Ivan.

0 件の賞賛