I found the problem, in my code I was doing while( !Serial) {delay(100)} , I put a fix and it works now