Skip to content

ISR: check for address in IRAM #5995

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

Merged
merged 2 commits into from
Apr 19, 2019
Merged

Conversation

d-a-v
Copy link
Collaborator

@d-a-v d-a-v commented Apr 17, 2019

closes #5780
closes #5779

@earlephilhower earlephilhower merged commit ab12516 into esp8266:master Apr 19, 2019
@dok-net
Copy link
Contributor

dok-net commented Apr 20, 2019

Refer to the ESP32 sources' FunctionalInterrupt.cpp:
void IRAM_ATTR interruptFunctional(void* arg)

But ESP8266 FunctionalInterrupt.cpp is missing this patch:

--- a/cores/esp8266/FunctionalInterrupt.cpp
+++ b/cores/esp8266/FunctionalInterrupt.cpp
@@ -11,7 +11,7 @@ typedef void (voidFuncPtrArg)(void);
extern "C" void ICACHE_RAM_ATTR __attachInterruptArg(uint8_t pin, voidFuncPtr userFunc, void*fp , int mode);

-void interruptFunctional(void* arg)
+void ICACHE_RAM_ATTR interruptFunctional(void* arg)
{
ArgStructure* localArg = (ArgStructure*)arg;
if (localArg->functionInfo->reqScheduledFunction)

Which leaves the commited IRAM check (ab12516) firing all the time:
ISR not in IRAM!

I'm converting EspSoftwareSerial to use FunctionInterrupt in order to save the ISR table.
The PR for this is #6002.

gdsports added a commit to gdsports/i2cdevlib that referenced this pull request Jun 19, 2019
Required starting with ESP8266 board package 2.5.1

esp8266/Arduino#5995
seablj added a commit to seablj/mind-controled that referenced this pull request Apr 9, 2025
Required starting with ESP8266 board package 2.5.1

esp8266/Arduino#5995
774977826 added a commit to 774977826/nytimesv that referenced this pull request Apr 10, 2025
Required starting with ESP8266 board package 2.5.1

esp8266/Arduino#5995
861333628foxmails added a commit to 861333628foxmails/riosnaket that referenced this pull request Apr 10, 2025
Required starting with ESP8266 board package 2.5.1

esp8266/Arduino#5995
790659193qqch added a commit to 790659193qqch/RushanKhactker that referenced this pull request Apr 12, 2025
Required starting with ESP8266 board package 2.5.1

esp8266/Arduino#5995
culveritz added a commit to culveritz/IluhaEvdokimov4 that referenced this pull request Apr 15, 2025
Required starting with ESP8266 board package 2.5.1

esp8266/Arduino#5995
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

Successfully merging this pull request may close these issues.

interruptFunctional should be placed in IRAM
4 participants