Hi @fangfang,
I believe I found the issue with the above error. It looks like line 72 was missing a colon and should have been:
:L_WaitTransceiveFinished
ReadRegister IRQ1_REG $test
JumpIfBitN $test 0x40 :L_WaitTransceiveFinished
When I made the change, I no longer get the error. However, now my Cockpit crashes when it reaches this part of the code. After doing some testing, I discovered it was because the value of IRQ1_REG is 0x43, not 0x40, so it gets stuck in an infinite loop. Do you know how I can fix this? If I change the 0x40 value to 0x43, it fixes the infinite loop problem but then I receive no data in the FIFO when trying to read an NFC tag. Thanks.