iwanders / MFRC630

A library for NXP's MFRC630 NFC IC.
MIT License
59 stars 22 forks source link

How do I update the key of the buffer #21

Open chcmq opened 1 year ago

chcmq commented 1 year ago

// Use the manufacturer default key... uint8_t FFkey[6] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};

  mfrc630_cmd_load_key(FFkey);  // load into the key buffer

FFkey I need to validate the first key before I update it, but I keep calling mfrc630_cmd_load_key(FFkey); This function will fail to verify success, please tell me how to correctly repeat call it

iwanders commented 1 year ago

I'm not sure I understand, the mrfc630_cmd_load_key function is pretty boring, it just writes the key to the fifo and then sends a command, if you need to send another key you just do that again?

You could also modify the example function to accept another key if you need something else than the 0xFF default key?