This works but it dispaches it to wrong core because I set exception handlers specific for core 0 and they dont get triggered.
Code: Select all
void (*MainPtr)(void*);
MainPtr = (void(*)(void*))(FunctionAddr) ; //FunctionAddr is the Address of start of code from external source in IRAM
xTaskCreate(MainPtr,"test" ,8192, NULL, 1, NULL);
Code: Select all
void (*MainPtr)(void*);
MainPtr = (void(*)(void*))(FunctionAddr) ; //FunctionAddr is the Address of start of code from external source in IRAM
xTaskCreatePinnedToCore(MainPtr,"test" ,8192, NULL, 1, NULL, 0);
Code: Select all
void (*MainPtr)(void*);
MainPtr = (void(*)(void*))(FunctionAddr) ; //FunctionAddr is the Address of start of code from external source in IRAM
MainPtr(NULL); //Execute code