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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy