MKR1310 FreeRTOS SAMD21 Issues

Hi @juliofontes

Please could you try changing this line:

#define  ERROR_LED_PIN  13 //Led Pin: Typical Arduino Board

to this:

#define  ERROR_LED_PIN  LED_BUILTIN //Led Pin: Typical Arduino Board

Also on the MKR1310, you might need to swap these lines from this:

#define SERIAL          SerialUSB //Sparkfun Samd21 Boards
//#define SERIAL          Serial //Adafruit, other Samd21 Boards

to this:

//#define SERIAL          SerialUSB //Sparkfun Samd21 Boards
#define SERIAL          Serial //Adafruit, other Samd21 Boards