Search found 2 matches

by uneasy
Thu Mar 09, 2023 7:23 pm
Forum: ESP32 Arduino
Topic: TaskHandle_t, and passing object causing crash when using object
Replies: 2
Views: 1719

TaskHandle_t, and passing object causing crash when using object

It's probably user error, but I can't figure out how to properly pass created object to task, so it can be used along with other tasks.
Here is bit of code when I am creating a task and passing an object
LinHandler lin;
TaskHandle_t Task1;
void loop2(void* parameter) {
LinHandler& lin ...
by uneasy
Sat Feb 11, 2023 6:28 pm
Forum: ESP-IDF
Topic: uart: uart_get_buffered_data_len(1339): uart driver error with multitasking
Replies: 0
Views: 2210

uart: uart_get_buffered_data_len(1339): uart driver error with multitasking

I have some code that does uses 3 in total hardware Serial on ESP32-S3

I wanted to put them in tasks for better performance, but that'n I started getting an error as `uart: uart_get_buffered_data_len(1339): uart driver error `

here is some code:

Logger mainLog;
CanHandler can;
#ifdef LIN ...

Go to advanced search