Topic: How to write on NFC Tag withArduino

hi im new here, and im interested on this NFC topic im just startng  some project with NFC but im stack with with NDEF write........  im using SPI code not Wire code. when i compile it the screen didin't show the any eror report, but when i look in serial monitor the reply was "NDEF Writer , Didnt find PN53x board" need some sollution for my problem thx. sorry for my bad english
here my coding i use it from NDEF write

#include <SPI.h>
#include <PN532_SPI.h>
#include <PN532.h>
#include <NfcAdapter.h>


PN532_SPI pn532spi(SPI, 10);
NfcAdapter nfc = NfcAdapter(pn532spi);


void setup() {
      Serial.begin(9600);
      Serial.println("NDEF Writer");
      nfc.begin();
}

void loop() {
    Serial.println("\nPlace a formatted Mifare Classic or Ultralight NFC tag on the reader.");
    if (nfc.tagPresent()) {
        NdefMessage message = NdefMessage();
        message.addTextRecord("D312081");
        message.addTextRecord("Goodbye");
        boolean success = nfc.write(message);
        if (success) {
          Serial.println("Success. Try reading this tag with your phone.");       
        } else {
          Serial.println("Write failed.");
        }
    }
    delay(5000);
}