You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I am working on a project that uses M5ez as the screen handler with the main screen giving access to the M5ez menus through a button but with the initial screen containing live data updated from a second task running on the other core in the M5. When I moved the code that displays new data on the screen from the main task which is also handling the web server to the second task I ran into an exception problem with the exception pointing to the call to clear the canvas.
0x400e1191: ezCanvas::clear() at Arduino Sketchbook\libraries\M5ez\src/M5ez.cpp line 2118
0x400d506f: appUpdateTemperature() at menu_functions.cpp line 53 (discriminator 2)
0x400dc17c: Task2Main(void*) at task2.cpp line 183
0x400897e1: vPortTaskWrapper at esp-idf-public/components/freertos/port.c line 355
Moving the calling code back to the main task removes the problem, any thoughts on why it only works in the main task and not in a task running on the second core. The code to start the second task is included below.
// Start task for second core
xTaskCreatePinnedToCore(
Task2Main, /* Task function. */
"TaskCore2", /* name of task. */
3072, /* Stack size of task */
NULL, /* parameter of the task */
1, /* priority of the task */
&TaskCore2, /* Task handle to keep track of created task */
0 /* Core */
);
The text was updated successfully, but these errors were encountered:
Hi
I am working on a project that uses M5ez as the screen handler with the main screen giving access to the M5ez menus through a button but with the initial screen containing live data updated from a second task running on the other core in the M5. When I moved the code that displays new data on the screen from the main task which is also handling the web server to the second task I ran into an exception problem with the exception pointing to the call to clear the canvas.
0x400e1191: ezCanvas::clear() at Arduino Sketchbook\libraries\M5ez\src/M5ez.cpp line 2118
0x400d506f: appUpdateTemperature() at menu_functions.cpp line 53 (discriminator 2)
0x400dc17c: Task2Main(void*) at task2.cpp line 183
0x400897e1: vPortTaskWrapper at esp-idf-public/components/freertos/port.c line 355
Moving the calling code back to the main task removes the problem, any thoughts on why it only works in the main task and not in a task running on the second core. The code to start the second task is included below.
The text was updated successfully, but these errors were encountered: