RC ESC with arduino Zero or SAMD21 compatible

Hello to everyone,
I just moved my project from Arduino nano to Arduino SAMD21 mini.
I used pwm32library and servo.h library :

#include <Servo32.h>
#include <Motor32.h>

Servo32 servo1(5);
Motor32 motor1(2);
const int StartEscPin=13;
const int LedAccPin=10;

void setup(){
 pinMode(StartEscPin,INPUT);
 pinMode(LedAccPin, OUTPUT);
pwm32_init(); // Call this once.
}

void loop(){

  
if(digitalRead(StartEscPin) == HIGH )
{
 
  digitalWrite(LedAccPin, HIGH);
  servo1.set(1500); // 50hz
  motor1.set(1000); // 490hz
  }
if(digitalRead(StartEscPin) == LOW){
   digitalWrite(LedAccPin, LOW);
   servo1.set(1500); // 50hz
   motor1.set(1000);
   }
  }
 #include <Servo.h>
    #include <Wire.h>
    Servo ESC;     // create servo object to control the ESC
    const int EscPin=2;
    const int StartEscPin=13;
    const int LedAccPin=10;
    //int potValue;  // value from the analog pin
    void setup() {
      pinMode(StartEscPin,INPUT);
      pinMode(LedAccPin, OUTPUT);
      pinMode(EscPin, OUTPUT);
      //ESC.write(1000);
      // Attach the ESC on pin 9
 
      ESC.attach(EscPin,1000,2000);
    }
    void loop() {
     // potValue = analogRead(A0);   // reads the value of the potentiometer (value between 0 and 1023)
     // potValue = map(potValue, 0, 1023, 0, 180);   // scale it to use it with the servo library (value between 0 and 180)

  if(digitalRead(StartEscPin) == HIGH ){
    digitalWrite(LedAccPin, HIGH);
      ESC.write(2000);    // Send the signal to the ESC
      
    }
    if(digitalRead(StartEscPin) == LOW ){
    digitalWrite(LedAccPin, LOW);
      ESC.write(1000);    // Send the signal to the ESC
      
    }
     }

Normally ESC when is well connected make 2 sounds coming from BLDC: first sound of three notes and last sound, after a certaint time, a long acute one sound note that meanthe ESC is ready. This happen with the project made with Nano using Varspeedservo.h and everything work well.
But with Zero this do not happen. I can hear only first three notes sound and the ESC do not work.

Any has some suggestion? Thank you in advance.