Page 1 of 1

Can i create a ISR or interrupt and let that be pinned to a core?

Posted: Fri Oct 20, 2017 7:31 pm
by YvesDS
Hi,
Is it possible to pin a interrupt routine to one of the two cores (or a ISR function pinned to one of the cores)?
The goal is to let some logic be done by one core (trapping external interrupts from eg. a pushbutton) and send a timestamp and some other data to the other core where it can be proccesed and output to eg. a serial monitor.

As for the "timestamp" is there a "arduino-alike" function of micros() or millis()?
Grtz,
Yves

Re: Can i create a ISR or interrupt and let that be pinned to a core?

Posted: Fri Oct 20, 2017 11:29 pm
by WiFive
Allocating an external interrupt will always allocate it on the core that does the allocation.

https://esp-idf.readthedocs.io/en/lates ... alloc.html

Re: Can i create a ISR or interrupt and let that be pinned to a core?

Posted: Sat Oct 21, 2017 12:51 pm
by YvesDS
Hi WiFive,

read the article, seems very interesting.
WiFive wrote:Allocating an external interrupt will always allocate it on the core that does the allocation.

https://esp-idf.readthedocs.io/en/lates ... alloc.html
Can anyone point me to a example?
Just googled for a sort of hands on, but nothing came up ;)
Grtz,
Yves

Re: Can i create a ISR or interrupt and let that be pinned to a core?

Posted: Mon Oct 22, 2018 9:29 am
by madlan
YvesDS wrote:Hi WiFive,

read the article, seems very interesting.
WiFive wrote:Allocating an external interrupt will always allocate it on the core that does the allocation.

https://esp-idf.readthedocs.io/en/lates ... alloc.html
Can anyone point me to a example?
Just googled for a sort of hands on, but nothing came up ;)
Grtz,
Yves
Bump - Has anyone got an example?

Re: Can i create a ISR or interrupt and let that be pinned to a core?

Posted: Tue Oct 23, 2018 2:26 am
by ESP_Sprite
An example for what, exactly?