- Notifications
You must be signed in to change notification settings - Fork 13.3k
Closed
Description
Basic Infos
- [ x] This issue complies with the issue POLICY doc.
- [x ] I have read the documentation at readthedocs and the issue is not addressed there.
- [ x] I have tested that the issue is present in current master branch (aka latest git).
- [x ] I have searched the issue tracker for a similar issue.
- If there is a stack dump, I have decoded it.
- [x ] I have filled out all fields below.
Platform
- Hardware: [ESP-12|
- Core Version: [2018-06-27]
- Development Env: [Arduino IDE 1.8.5]
- Operating System: [Windows 10]
Settings in IDE
- Module: [Generic ESP8266 Module and Nodemcu]
- Flash Mode: [qio]
- Flash Size: [4MB]
- lwip Variant: [v2 both Lower Memory and Higher Bandwidth]
- Reset Method: [ck]
- Flash Frequency: [40 and 80Mhz]
- CPU Frequency: [80Mhz and 160MHz]
- Upload Using: [OTA and SERIAL]
- Upload Speed: [115200]
Problem Description
Using arduino esp8266 core 4.2.1 hardware ISR's work fine. However this core has got a memory leakage problem which seems to be solved in latest git/current master branch. So i used latest git/current master branch. However with latest git hardware ISR's do not seem to work anymore. Esp8266 keeps resetting when interruptpin is connected to a pulsecounter. Disconnecting the pulsecounter from the interruptpin stops esp8266 from resetting.
Going back to arduino esp8266 core 4.2.1 (no hardware changes) and flashing same sketch results in hardware ISR working again (no resets with the pulsecounter connected to the interruptpin).
###Esp8266 log
Exception (28): epc1=0x401067d9 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000 ctx: cont sp: 3ffffc10 end: 3fffffd0 offset: 01a0 >>>stack>>> 3ffffdb0: 3ffef9dd 00000000 3ffef9a8 4021980c 3ffffdc0: 00000005 00000000 00000020 40100f22 3ffffdd0: 3ffe9685 4010431f 3ffed110 622f3c3e 3ffffde0: 40101c3d 3ffed110 00000020 40100f22 3ffffdf0: 0000001c 00852cf0 3ffedb40 40101e0e 3ffffe00: 4010678e 00000000 00000000 40104bfd 3ffffe10: e0030025 00852cf0 4010224e 00000100 3ffffe20: 00000000 00000000 0000001f 00000022 3ffffe30: 3fffc200 40106754 3fffc258 4000050c 3ffffe40: 40000662 00000030 00000010 ffffffff 3ffffe50: 401065dc 00867c52 00000000 4bc6a7f0 3ffffe60: 00000000 00000000 00000000 3fe00000 3ffffe70: 00000000 00100000 00000000 4bc6a7f0 3ffffe80: 00000000 00867c52 00000000 00000030 3ffffe90: 40202b07 00000030 00000010 ffffffff 3ffffea0: 402041e5 00002266 0000ea5f 00000000 3ffffeb0: 3ffe9490 00000000 40590000 00000000 3ffffec0: 00000000 00000000 00000000 3ffef02c 3ffffed0: 00000000 3ffef490 00000000 00000030 3ffffee0: 00000000 3ffef490 00000000 00000030 3ffffef0: 3ffeef90 00000005 3fff07a4 401006dc 3fffff00: 3ffeef90 3fff07a4 3ffeef24 402060fe 3fffff10: 4020151a 00000005 3fff07a4 4020586f 3fffff20: 00000000 4bc6a7f0 3ffef02c 4020c694 3fffff30: 00000000 4bc6a7f0 a49ba5e3 00000000 3fffff40: 00867c52 00000000 4bc6a7f0 00000000 3fffff50: 00000000 3fff07a4 401065dc 4bc6a7f0 3fffff60: 00000000 3ffef23c 00000000 00000000 3fffff70: 0027cec6 7fdf224d 3fff05f4 4020643b 3fffff80: 3ffef490 3ffef1c4 3ffef23c 3ffef05c 3fffff90: 3ffef490 3ffef064 3ffef23c 402042fa 3fffffa0: 00000000 00000000 00000001 3ffef578 3fffffb0: 3fffdad0 00000000 3ffef570 4020c204 3fffffc0: feefeffe feefeffe 3ffe860c 40100739 <<<stack<<< ets Jan 8 2013,rst cause:1, boot mode:(3,7) load 0x4010f000, len 1384, room 16 tail 8 chksum 0x2d csum 0x2d v00000000 ~ld Debug exception 28: 28 | LoadProhibitedCause | A load referenced a page mapped with an attribute that does not permit loads | Region Protection or MMU | Yes ###Code
const int digitalPin4 = 4; void ICACHE_RAM_ATTR pulsecount(){ISR code here ..... } void setup(){pinMode(4, INPUT_PULLUP); attachInterrupt(digitalPinToInterrupt(4), pulsecount, FALLING)} Metadata
Metadata
Assignees
Labels
No labels