Problem with Rotary Encoder plugin

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
LaurB
Normal user
Posts: 33
Joined: 05 Aug 2019, 13:22

Problem with Rotary Encoder plugin

#1 Post by LaurB » 05 Aug 2019, 14:12

Hello,

I'm having problems with the rotary encoder plugin. I'm using EspEasy since R120 version so I can say I'm not doing something wrong, but it's the first time I'm using this plugin, so who knows.

I did the configuration exactly like in the wiki https://www.letscontrolit.com/wiki/inde ... ry_Encoder.

As soon as I thick the enable option the module resets. I used three esp modules, the same result. I tryed different gpio pins, no luck. Tryed it with mega-20190630 and mega-20190805, same result.

Anybody has any ideas?
I forgot to mention I'm using NodeMCU v2.

Log after pressing submit button:

Code: Select all

155261 : SaveToFile: free stack: 3184
155292 : FILE : Saved config.dat
155293 : SaveToFile: free stack after: 3184
155300 : SaveToFile: free stack: 3248
155330 : FILE : Saved config.dat
155332 : SaveToFile: free stack after: 3248
155341 : SaveToFile: free stack: 3184
155402 : FILE : Saved config.dat
155403 : SaveToFile: free stack after: 3184ISR not in IRAM!

Abort called

>>>stack>>>

ctx: cont
sp: 3fff1c70 end: 3fff2220 offset: 01b0
3fff1e20:  3ffef378 3ffef374 0000001c 40271110  
3fff1e30:  00000002 3ffef374 0000001c 0000000d  
3fff1e40:  3fff634c 00000001 0000000c 4010146a  
3fff1e50:  00000000 3ffef374 3ffef370 4020c835  
3fff1e60:  ffffffff 4028411a 00000010 40271110  
3fff1e70:  3ffefcc4 3ffef370 00000010 00000000  
3fff1e80:  3fff034c 3ffef370 3fff1fc0 4024f2a6  
3fff1e90:  00000000 00000000 3fff1ed0 402712f4  
3fff1ea0:  3ffefcc4 00000002 3fff1ef0 4026c2bc  
3fff1eb0:  00000000 00000000 00000000 4026c2e0  
3fff1ec0:  ffff000f 00000000 3fff1ef0 00000000  
3fff1ed0:  00000000 00000000 402b1964 4026c2e0  
3fff1ee0:  3fff634c ff00000a 402b1964 402172ee  
3fff1ef0:  00000000 00000000 ffff1fc0 0000002c  
3fff1f00:  3ffefcc4 00000002 3fff1fc0 402362bb  
3fff1f10:  00000000 00000000 00000950 00000000  
3fff1f20:  00000000 00ff2020 00000000 00000000  
3fff1f30:  002c9068 00000000 00000000 0026c2bc  
3fff1f40:  00000000 00000000 00fef784 00000000  
3fff1f50:  00000000 00000000 00000000 00000000  
3fff1f60:  00000000 00000000 00020000 00000000  
3fff1f70:  00000000 00000000 ff00000a 00001a90  
3fff1f80:  09437544 0000f63f 00000000 00000000  
3fff1f90:  ff000000 00000000 00000000 00000003  
3fff1fa0:  00000480 3ffefcc4 00000000 4023d065  
3fff1fb0:  ffffffff 4026c357 00000000 3fff7c1c  
3fff1fc0:  00000000 00000000 00ffffff 00000000  
3fff1fd0:  00000000 000000aa 00000000 00000000  
3fff1fe0:  002bcbb0 00000000 00000000 00271195  
3fff1ff0:  00000000 00000000 00000000 00000000  
3fff2000:  00000000 00000000 00000000 00000000  
3fff2010:  00000000 00000000 00020000 00000000  
3fff2020:  00000000 00000000 ffff2060 4020e7f8  
3fff2030:  402ba368 00000005 3fff2088 4026c4c6  
3fff2040:  00000002 402ba368 40278a50 ffffffff  
3fff2050:  40278a50 00000000 00000000 ff26c2e0  
3fff2060:  00000000 00000000 ffff2f24 4023ad48  
3fff2070:  00000134 00000001 00000001 402712f4  
3fff2080:  00000002 402bcbb0 00000000 00000006  
3fff2090:  0000000d 0000000c 3fff0242 3fff034c  
3fff20a0:  3fff034c 00000001 402bcbb0 40216786  
3fff20b0:  00000000 00000000 ff000000 4020e7f8  
3fff20c0:  00000002 00000001 3fff2f24 4023e17c  
3fff20d0:  00000002 4020cb18 3fff2f24 40277482  
3fff20e0:  00000000 4020cb18 3fff2f24 401000a9  
3fff20f0:  3fff2f24 3fff4aac 3fff2120 4020e832  
3fff2100:  00000000 00000000 ffff0f00 4026c638  
3fff2110:  3fff2f24 3fff1018 3fff0fd4 4020e8c6  
3fff2120:  7665642f 73656369 00000000 00000000  
3fff2130:  ff636976 3ffefe5c 3ffef10e 00000003  
3fff2140:  3fff0ffc 00000000 00000001 00000001  
3fff2150:  00000002 3fff1088 00000000 4020cb18  
3fff2160:  40202f0c 4bc6a7f0 00025da8 093ddbaa  
3fff2170:  00000001 3fff0ffc 3fff0fd4 4020eb31  
3fff2180:  4027037c 3fff2258 4026db9c 3fff1200  
3fff2190:  00000000 3ffefab0 00000000 4026afad  
3fff21a0:  00000000 3ffefab0 00000001 402321e6  
3fff21b0:  00000030 3ffefc54 000000a7 4022916e  
3fff21c0:  3fff2b44 40202bf4 3ffe85cc 3fff2258  
3fff21d0:  3fffdad0 3ffef10e 3ffe85cc 402689b0  
3fff21e0:  00000000 00000000 ffefeffe 00000000  
3fff21f0:  00000000 00000000 00000001 4026dbbd  
3fff2200:  3fffdad0 00000000 3fff2228 4026dc4c  
3fff2210:  feefeffe feefeffe 3ffe86f8 401017cd  
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v8b899c12
~ld
⸮U65 :

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Problem with Rotary Encoder plugin

#2 Post by TD-er » 05 Aug 2019, 20:08

It is a known issue. See https://github.com/letscontrolit/ESPEasy/issues/2492
The thing is, it is a programming error which will result in crashes every now and then, really hard to reproduce.
Since core 2.5.2 there is a detection in the software to detect incorrect use of so called ISR functions and it causes a crash as soon as it detects this kind of mis-use.

LaurB
Normal user
Posts: 33
Joined: 05 Aug 2019, 13:22

Re: Problem with Rotary Encoder plugin

#3 Post by LaurB » 05 Aug 2019, 23:12

TD-er wrote: 05 Aug 2019, 20:08 It is a known issue. See https://github.com/letscontrolit/ESPEasy/issues/2492
The thing is, it is a programming error which will result in crashes every now and then, really hard to reproduce.
Since core 2.5.2 there is a detection in the software to detect incorrect use of so called ISR functions and it causes a crash as soon as it detects this kind of mis-use.
Thanks for your reply. I dont know why but is seems to happen all the time for me. I did more then 20 flashes today with different builds and different modules and every single time it crashed. It's really frustrating.

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Problem with Rotary Encoder plugin

#4 Post by TD-er » 05 Aug 2019, 23:22

It will happen with all core 2.5.2 builds as far as I can tell.
It is on my ASAP to-do list, so I would suggest not to loose any time testing, since I can predict it will fail on almost all recent builds.
Like I said, it is changed in the core lib to fail always if it detects that particular code (incorrect code!)
On older builds it will work, but it will also fail (crash) every now and then.
That's why the core dev team decided to change it fail always to help detecting what's wrong here.

Post Reply

Who is online

Users browsing this forum: No registered users and 36 guests