misan / dcservo

Position control of DC motors
312 stars 113 forks source link

ISR error #76

Open kotopuz opened 3 years ago

kotopuz commented 3 years ago

Dear all,

Nodemcu with ESP8266 with dcservoESP_wifi.ino sketch. Motor turns on and off. I've checked encoder connections , connections to H bridge, power. Somehow I see this in serial monitor. Motor rotates a little then stops then again rotates.

Serial gives this:

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

load 0x4010f000, len 3584, room 16 tail 0 chksum 0xb0 csum 0xb0 v2843a5ac ~ld ISR not in IRAM!

User exception (panic/abort/assert) --------------- CUT HERE FOR EXCEPTION DECODER ---------------

Abort called

stack>>>

ctx: cont sp: 3ffffee0 end: 3fffffc0 offset: 0000 3ffffee0: feefeffe feefeffe feefeffe 00000100
3ffffef0: 000000fe 00000000 00000000 00000000
3fffff00: 00000000 00000000 00000000 00ff0000
3fffff10: 5ffffe00 5ffffe00 3ffef86c 00000000
3fffff20: 00000003 0000000d 3ffee8f0 40205006
3fffff30: 401004de 40206115 ffffffff 40205018
3fffff40: feefeffe 00000001 3ffee8f0 40205525
3fffff50: 00000000 00000001 3ffee8f0 40203b34
3fffff60: 00000000 feefeffe feefeffe 3ffeea20
3fffff70: 3fffdad0 40201028 3ffee8f0 402055d4
3fffff80: 3fffdad0 00000000 3ffee8f0 4020151b
3fffff90: feefeffe feefeffe feefeffe feefeffe
3fffffa0: 3fffdad0 00000000 3ffee9e0 402049ac
3fffffb0: feefeffe feefeffe 3ffe84fc 40100dd9
<<<stack<<<

misan commented 3 years ago

rst cause 2 is due to Reset button being pressed or chip waking up from sleep mode. None of it seems to make sense in your case so ...

my guess is that is caused by a power supply problem on the ESP8266, try with a 2200uF/16V electrolytic capacitor between the 3V3 and GND rails.

I do not think it is code related. You can try with the sample programs (File/Examples/ESP8266) too see if these work ok or trigger a similar error too.

On Sun, Nov 1, 2020 at 2:14 PM kotopuz notifications@github.com wrote:

Dear all,

Nodemcu with ESP8266 with dcservoESP_wifi.ino sketch. Motor turns on and off. I've checked encoder connections , connections to H bridge, power. Somehow I see this in serial monitor. Motor rotates a little then stops then again rotates.

Serial gives this:

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

load 0x4010f000, len 3584, room 16 tail 0 chksum 0xb0 csum 0xb0 v2843a5ac ~ld ISR not in IRAM!

User exception (panic/abort/assert) --------------- CUT HERE FOR EXCEPTION DECODER ---------------

Abort called

stack>>>

ctx: cont sp: 3ffffee0 end: 3fffffc0 offset: 0000 3ffffee0: feefeffe feefeffe feefeffe 00000100 3ffffef0: 000000fe 00000000 00000000 00000000 3fffff00: 00000000 00000000 00000000 00ff0000 3fffff10: 5ffffe00 5ffffe00 3ffef86c 00000000 3fffff20: 00000003 0000000d 3ffee8f0 40205006 3fffff30: 401004de 40206115 ffffffff 40205018 3fffff40: feefeffe 00000001 3ffee8f0 40205525 3fffff50: 00000000 00000001 3ffee8f0 40203b34 3fffff60: 00000000 feefeffe feefeffe 3ffeea20 3fffff70: 3fffdad0 40201028 3ffee8f0 402055d4 3fffff80: 3fffdad0 00000000 3ffee8f0 4020151b 3fffff90: feefeffe feefeffe feefeffe feefeffe 3fffffa0: 3fffdad0 00000000 3ffee9e0 402049ac 3fffffb0: feefeffe feefeffe 3ffe84fc 40100dd9 <<<stack<<<

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/misan/dcservo/issues/76, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADRZSGDKTNT52BTAVEBYBTSNVNMHANCNFSM4TGQR7YQ .