Dual core with interrupts
Posted: 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?
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?