mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 17:15:53 +03:00
[GH-ISSUE #889] why restart-up while attachInterrupt used; #753
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#753
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wsdxyz on GitHub (May 22, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/889
Basic Infos
why esp8266 always restart-up while attachInterrupt used;
Hardware
**Esp8266
**Hardware: ESP-12e,
Description
why esp8266 always restart-up while attachInterrupt used;
Settings in IDE
Module: NodeMcu,
Additional libraries:
#include "WIFIManager.h"
Sketch
void setup() {
attachInterrupt(5,interrupt_1,3);
}
void loop() {
// put your main code here, to run repeatedly:
}
void interrupt_1 ()
{
}
#include <Arduino.h>
void setup() {
}
void loop() {
}
Debug Messages
[Info] Opened the serial port - COM29
r$
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
vac02aff5
~ld
[Done] Closed the serial port
@tablatronix commented on GitHub (May 22, 2019):
and it works if you remove wifimanager?
@tablatronix commented on GitHub (May 22, 2019):
Should interrupt_1 be in IRAM?
ICACHE_RAM_ATTR@wsdxyz commented on GitHub (May 23, 2019):
hi, tablatronix, thanks for your reply.
it's worked while i only use attachInterrupt without #include WiFiManager;
and also worked while #include WiFiManager without attchInterrupt
but not works while only conbined them both;
@wsdxyz commented on GitHub (May 23, 2019):
hi, tablatronix, Thanks a lot for your solution on ICACHE_RAM_ATTR!
this problem of restart-up is perfectly solved by your solution: ICACHE_RAM_ATTR.
below is my code:
void ICACHE_RAM_ATTR interrupt_1 () ;