Dual core with interrupts

tonyfoale
Posts: 1
Joined: Mon May 31, 2021 10:11 pm

Dual core with interrupts

Postby tonyfoale » Mon May 31, 2021 10:36 pm

I want to run an ISR function in core 0 to handle an external interrupt. It will run for the duration of program use and it will pass a global integer value to a function on core 1.
I have been having a problem getting the code to compile using xTaskCreatePinnedToCore(....). As soon as I include that line it gets upset about parameters being absent or wrong. I have added (void * pvParameters) as per numerous examples that I have viewed.
Firstly, my question is "Is it possible to run an ISR in core 0" using the Arduino IDE?
Secondly, if it is possible are there any tricks or traps to be aware of?

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: Dual core with interrupts

Postby ESP_Sprite » Tue Jun 01, 2021 12:51 am

Suggest you show the code and we can tell you what we think is wrong with it.

Who is online

Users browsing this forum: No registered users and 75 guests