You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS: Windows 7
IDE: Arduino 1.6.5r5
USB to Serial: SiLabs CP2102
Hardware
Hardware: Nodemcu 1.0
Core Version: 2.1.0
Description
Problem description:
I'm receiving a PWM signal from a RC-servo receiver, using attachinterrupt() to detect the pin change. Seemingly the code runs smoothly but at random moments it dumps the memory with Exception (0). Using the Exception Decoder the dumped memory refers to _attachInterrupt on the file core_esp8266_wiring_digital.c line 156. But when I opened this file I realized line 156 is actually found in the detachInterrupt function, not attachInterrupt. Very strange..
Well, at least I don't find no way to prevent the memory dump.
Decoding 33 results
0x402014e8: __attachInterrupt at C:\Users\Rafael Johansen\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\cores\esp8266/core_esp8266_wiring_digital.c line 156
0x401029bd: lmacIsIdle at ?? line ?
0x40106fdc: interrupt_handler at C:\Users\Rafael Johansen\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\cores\esp8266/core_esp8266_wiring_digital.c line 156
0x4010702a: interrupt_handler at C:\Users\Rafael Johansen\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\cores\esp8266/core_esp8266_wiring_digital.c line 156
0x40103c9f: ppProcessTxQ at ?? line ?
0x40106fa4: interrupt_handler at C:\Users\Rafael Johansen\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\cores\esp8266/core_esp8266_wiring_digital.c line 156
0x40106f38: falling1() at C:\Program Files (x86)\Arduino/ESP_servo_pwm_readV3.ino line 46
0x40107040: interrupt_handler at C:\Users\Rafael Johansen\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\cores\esp8266/core_esp8266_wiring_digital.c line 156
0x4010702a: interrupt_handler at C:\Users\Rafael Johansen\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\cores\esp8266/core_esp8266_wiring_digital.c line 156
0x401016d1: ets_timer_disarm at ?? line ?
0x40106fa4: interrupt_handler at C:\Users\Rafael Johansen\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\cores\esp8266/core_esp8266_wiring_digital.c line 156
0x4010234e: spi_flash_read at ?? line ?
0x40107364: pvPortZalloc at C:\Users\Rafael Johansen\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\cores\esp8266/heap.c line 33
0x40211bbd: pm_set_sleep_time at ?? line ?
0x40212056: pm_get_sleep_type at ?? line ?
0x40213fd8: pp_noise_test at ?? line ?
0x40212103: pm_get_sleep_type at ?? line ?
0x40205029: ets_timer_handler_isr at ?? line ?
0x40205029: ets_timer_handler_isr at ?? line ?
0x40205029: ets_timer_handler_isr at ?? line ?
0x4020506e: ets_timer_handler_isr at ?? line ?
0x402024e7: loop_task at C:\Users\Rafael Johansen\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\cores\esp8266/core_esp8266_main.cpp line 43
The text was updated successfully, but these errors were encountered:
Well, attachInterrupt is not in IRAM, so calling it from an interrupt handler is not safe.
Need to free up some space in IRAM and move attach/detachInterrupt there.
Basic Infos
OS: Windows 7
IDE: Arduino 1.6.5r5
USB to Serial: SiLabs CP2102
Hardware
Hardware: Nodemcu 1.0
Core Version: 2.1.0
Description
Problem description:
I'm receiving a PWM signal from a RC-servo receiver, using attachinterrupt() to detect the pin change. Seemingly the code runs smoothly but at random moments it dumps the memory with Exception (0). Using the Exception Decoder the dumped memory refers to _attachInterrupt on the file core_esp8266_wiring_digital.c line 156. But when I opened this file I realized line 156 is actually found in the detachInterrupt function, not attachInterrupt. Very strange..
Well, at least I don't find no way to prevent the memory dump.
Settings in IDE
Module: ?Generic ESP8266 Module?
Flash Size: ?4MB/3MB?
CPU Frequency: ?80Mhz?
Flash Mode: ?DIO?
Flash Frequency: ?40Mhz?
Upload Using: ?SERIAL?
Reset Method: ?nodemcu?
Sketch
Debug Messages
Memory dump:
Decoded memory dump:
The text was updated successfully, but these errors were encountered: