Hello.
The monitor in Arduino IDE is not working. It shows nothing. I also pasted a sample code from the Internet but nothing happens.
I tried searching for the solutions but nothing changed:
- Replace Serial.println() with SerialUSB.println()
- Check the baud rate.
I also have trouble with WiFi101 / WiFiNINA Firmware Updater. Is this problem because of that?
Here my code:
#include <Arduino_FreeRTOS.h>
#include <task.h>
TaskHandle_t TaskHandle_1;
TaskHandle_t TaskHandle_2;
void setup() {
Serial.begin(9600);
xTaskCreate(Task1, "Task1", 128, NULL, 2, &TaskHandle_1);
xTaskCreate(Task2, "Task2", 128, NULL, 1, &TaskHandle_2);
vTaskStartScheduler();
}
void loop() {}
void Task1(void *pvParameters)
{
for (;;)
{
SerialUSB.println("Task1 is running and about to raise Task2 priority.");
vTaskPrioritySet(TaskHandle_2, uxTaskPriorityGet(NULL) + 1);
}
}
void Task2(void *pvParameters)
{
for (;;)
{
SerialUSB.println("Task2 is running and about to lower Task2 priority.");
vTaskPrioritySet(TaskHandle_2, uxTaskPriorityGet(NULL) - 2);
}
}