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.
9 years, 2 months ago.
Authenticating Card
With the help from another question I believe I have got the reading of a chip sorted but it returns this error: STATUS_CRC_WRONG.
This happens when the code calculates CRC_A. I think its failing as the block im reading hasnt been authenticated. the method to authenticate is:
<<code> PCD_Authenticate(uint8_t command, uint8_t blockAddr, MIFARE_Key *key, Uid *uid) <</code>>
im happy with the command and blockaddr, BUT what is MIFARE_Key and UID? the MIFARE_Key I thought was 0xFFFFFFFFFF (as apparently this is the default) but it wont compile with that value in place of the key.
the uid is a Pointer to the Uid struct but where is this structure?