Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Board rebooting #7

Open
eried opened this issue Jun 9, 2020 · 6 comments
Open

Board rebooting #7

eried opened this issue Jun 9, 2020 · 6 comments

Comments

@eried
Copy link

eried commented Jun 9, 2020

Hi! this is a great board idea thanks! I am having some issues running anything on it, normal examples run ok, but trying ESP-12S_A9G_GET_GPS I get a constant reboot:

OK
ISR not in IRAM!

User exception (panic/abort/assert)
Abort called

>>>stack>>>

ctx: cont
sp: 3ffffeb0 end: 3fffffc0 offset: 0000
3ffffeb0:  00000001 00000010 3fffff70 4020137b  
3ffffec0:  000000fe 00000000 00000000 00000000  
3ffffed0:  00000000 00000000 00000000 00ff0000  
3ffffee0:  5ffffe00 5ffffe00 401005e0 00000000  
3ffffef0:  00000001 0000000d 3ffee378 40202cae  
3fffff00:  401008ea 3ffee378 3fffff70 40202cc0  
3fffff10:  3ffee3f4 0000007b 3ffee378 402031d5  
3fffff20:  00000000 3ffee378 3fffff70 402010a2  
3fffff30:  000003e8 00000008 3fffff7c 0000007b  
3fffff40:  3ffee3f4 0000007b 3ffee378 4020329c  
3fffff50:  3ffee3f4 0000007b 3ffee378 40201280  
3fffff60:  00000040 00000000 feefeffe feefeffe  
3fffff70:  3ffefd00 0010001f 80000a0d 472b5400  
3fffff80:  313d5350 80efef00 feefeffe feefeffe  
3fffff90:  feefeffe feefeffe feefeffe 3ffee45c  
3fffffa0:  3fffdad0 00000000 3ffee41c 40202910  
3fffffb0:  feefeffe feefeffe 3ffe84e0 40101205  
<<<stack<<<

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

load 0x4010f000, len 3456, room 16 
tail 0
chksum 0x84
csum 0x84
va5432625
~ld
After 2s A9G will POWER ON.

I am using a 3.7 battery that was charged to 3.9V:
image

Any suggestion?

@IOT-MCU
Copy link
Owner

IOT-MCU commented Jun 9, 2020

Hi,
Maybe have 3 way to solve this problem.

  1. Block out the interrupt function if you not use this function.
    //pinMode(A9G_WAKE, INPUT);//interruptPin
    // attachInterrupt(digitalPinToInterrupt(A9G_WAKE), handleInterrupt, RISING);
  2. Refer here: https://github.com/IOT-MCU/ESP-12S-A9-A9G-GPRS-Node-v1.0/wiki/3.Using-Arduino-IDE

Please select the 2.5.0 version of esp8266 URL.

  1. According to the new version of arduino, redefine the interrupt function.

@eried
Copy link
Author

eried commented Jun 9, 2020

Thanks! I will test tomorrow

@eried
Copy link
Author

eried commented Jun 16, 2020

So, it works commenting

//pinMode(A9G_WAKE, INPUT);//interruptPin
// attachInterrupt(digitalPinToInterrupt(A9G_WAKE), handleInterrupt, RISING);

With latest version 2.7 of ESP8266 firmware :)

@rcomellas
Copy link

Same issue, and same solution: commenting out the interrupt function.

@sadamyne
Copy link

The solution is to add ICACHE_RAM_ATTR to your handleInterrupt function:

ICACHE_RAM_ATTR void handleInterrupt() {
}

@rcomellas
Copy link

Great! Thanks sadamyne

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants