-
Notifications
You must be signed in to change notification settings - Fork 64
Conversation
Hi @Bartvelp, |
Upon some more debugging I specifcally got this error:
|
Hey The commit suggested by @Bartvelp solves the problem that I was referring to in the new pull request. I tried implementing the example 'BasicConnectivityTest' on a NodeMcu 1.0, i was getting the same 'ISR not in IRAM!' error, I found out that in the new board update ie. anything later to 2.5.1 will throw this error if interrupt function is used in the esp8266. Downgrading to older version is a solution but that isn't advised as handling interrupt in the new method is fairly simple and recommended to avoid unexpected crashes. By adding changing void interruptServiceRoutine() to void ICACHE_RAM_ATTR interruptServiceRoutine() in the DW1000Ng.cpp file, the code runs without throwing the 'ISR not in IRAM' error. ICACHE_RAM_ATTR is basically a linker attribute which tells the esp8266 to run the function in the RAM and not in in FLASH. |
@Bartvelp and @Yashvardhan001109 thanks a lot! |
Currently the ESP8266 is getting stuck in a bootloop with the following error messages:
This is because the interrupt service routine is not loaded correctly and I think the watchdog trips immediately. Anyhow this commit fixes that and the library can be used again.