Skip to content

Giga Crashes if using ConnectionHandler and Scheduler.h #880

Closed
@dansiviter

Description

@dansiviter

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions