Closed tsotnek closed 2 years ago
Ok, I fixed it, silly me. So as it is said in the datasheet when you enter the transceive state, PN looks at the initiator bit in TRANSCEIVE_CONTROL register and I manually set this bit to one in the send_data function and it fixed the problem. https://imgur.com/a/aB2TzLK
Hello,
I am working on a project with PN5180, my end goal is to emulate a Type A card. But for now, I just want to use PN5180 as PCD and read 14443 cards.
I have followed your code which is written very well and modified it slightly for the STM32, I am using HAL drivers.
ATM, I followed 14443 code and I am currently stuck on send_data command. I rewrote this arduino for loop
in stm32 as...
So whenever readCardSerial(uid) function is executed, it calls activateTypeA function, which calls sendData, so I followed all of the code which was written by you guys.
When in sendData my program freezes. after going to IDLE first and then in Transceive state, when you are waiting for WaitTransmit, my application returns WAIT_FOR_DATA all the time. I even tried to manually change the initiator bit in TRANSCEIVE_CONTROL register by setting the 0th bit to 1, but it still returns WAIT_FOR_DATA. Could you maybe assist me with this problem?
Thank you in advance!