Closed
Description
If using the ConnectionHandler example and changing it to the following:
#include <Scheduler.h>
void setup() {
...
Scheduler.startLoop(loop1);
}
void loop() {
delay(100); // permits yield(); to be called
}
void loop1() {
conMan.check();
}
The Giga just crashes and get red LED flashing indicating crash. I'm raising it here as a potential issue with Scheduler.h
as I tried doing effectively the same via rtos::Thread
and it worked correctly:
#include "mbed.h"
using namespace rtos;
void setup() {
...
thread.start(loop1);
}
void loop() {
delay(100);
}
void loop1() {
while(true) {
conMan.check();
}
}
Frankly, there is very little within Scheduler.cpp
so no idea what could be causing it.
Metadata
Metadata
Assignees
Labels
No labels