Skip to content

noInterrupts problem #934

@ricaun

Description

@ricaun

Describe the bug

Hello, I'm trying to use noInterrupts() on my library and I notice the board stop working for no reason.
I create a simple sketch and the board stops when I call the noInterrupts(). I tried to call interrupts() first but nothing.
Does anyone have this problem?

To Reproduce

void setup() {
  Serial.begin(115200);
  Serial.println("Start noInterrupt test!");
  delay(100);
  noInterrupts(); // <------------- this makes the board to block and never goes to the loop
}

void loop() {
  Serial.println("noInterrupt loop");
  delay(100);
}

Desktop

  • OS: Windows
  • Arduino IDE version: 1.8.8
  • STM32 core version: 1.8.0
  • Upload method: STLink

Board

  • Name: Generic STM32F1 series - BluePill F103C8

Additional context

I tested with other boards and has the same problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions