C++ freeRTOS Task, invalid use of non-static member function
问题 Where is the Problem? void MyClass::task(void *pvParameter){ while(1){ this->update(); } } void MyClass::startTask(){ xTaskCreate(this->task, "Task", 2048, NULL, 5, NULL); } But, I get this: error: invalid use of non-static member function I cannot find any useful doc to check where is the mistake, but i think that should be something like: (C++11's std::thread) e.g.: xTaskCreate(&MyClass::task, "Task", 2048, (void*)this, 5, NULL); solution that works for me: void MyClass::task(){ while(1){