Search found 37 matches

by markkuk
Tue Mar 21, 2023 10:04 pm
Forum: ESP-IDF
Topic: C++ error: Guru Meditation Error: Core 0 panic'ed (InstructionFetchError). Exception was unhandled
Replies: 2
Views: 1665

Re: C++ error: Guru Meditation Error: Core 0 panic'ed (InstructionFetchError). Exception was unhandled

xTaskCreate(&task, "Test Task", 10000, NULL, 1, NULL); You have extra indirection that causes the code to crash. The call should be: xTaskCreate(task, "Test Task", 10000, NULL, 1, NULL); See the example in the docs: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/fr...
by markkuk
Fri Dec 23, 2022 10:34 am
Forum: General Discussion
Topic: QT support for ESP32-S3
Replies: 2
Views: 2505

Re: QT support for ESP32-S3

There appears to be a port of Qt for MCUs for the ESP-S3-BOX device: https://doc.qt.io/QtForMCUs-2.3/qtul-supported-platforms.html#other-target-boards . You need to contact the Qt company for access to the code and for setup instructions. Notice that Qt for MCUs is a small subset of the full Qt libr...
by markkuk
Tue Jul 19, 2022 9:02 am
Forum: Hardware
Topic: NTP Update
Replies: 3
Views: 3033

Re: NTP Update

Remove the setenv() and tzset() calls from timeSync() function, and place them in setup() before calling getLocalTime().
by markkuk
Wed May 11, 2022 8:36 am
Forum: ESP-IDF
Topic: Task isn't running again after running for the first time
Replies: 3
Views: 1527

Re: Task isn't running again after running for the first time

The stack for "Print messages" task is too small and it breaks the other task. In my system, the program crashes after first run of print_messages(): Sending num :: 0 Sent num Spaces in queue :: 4 Item received :: 0 Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled. Co...
by markkuk
Thu Jan 13, 2022 12:37 pm
Forum: General Discussion
Topic: Sending struct information to the queue
Replies: 2
Views: 3171

Re: Sending struct information to the queue

Where is the array data_buf allocated? If it's a local variable to the sending function, it won't exist when the message is read and the space may have been overwritten by other data.
by markkuk
Thu Dec 09, 2021 12:50 pm
Forum: ESP-IDF
Topic: how do I save variables into the nvs?
Replies: 4
Views: 6730

Re: how do I save variables into the nvs?

The maximum length of a NVS key is 15 characters: https://docs.espressif.com/projects/esp ... and-values, the key "user_msg1_length" you used is 16 characters.
by markkuk
Tue Nov 02, 2021 12:32 pm
Forum: ESP-IDF
Topic: timer
Replies: 1
Views: 1450

Re: timer

The first comment line of the code states it's an example of the High Resolution Timer API and the documentation for esp_timer_delete() is on that page. No need to guess, just read more carefully.
by markkuk
Wed Oct 20, 2021 9:17 pm
Forum: General Discussion
Topic: Ease of programming
Replies: 5
Views: 3181

Re: Ease of programming

No, you can't compile code for ESP32 with Visual Studio. You can edit code and launch the build system from Visual Studio Code, which is an entirely different program. See the ESP-IDF Programming Guide and example code for code structure. You can't use any Windows APIs. Some Unix/Linux type APIs lik...
by markkuk
Sun Jul 04, 2021 7:56 am
Forum: ESP-IDF
Topic: Missing fnmatch in ESP-IDF
Replies: 4
Views: 3102

Re: Missing fnmatch in ESP-IDF

Fnmatch() is defined in the Single Unix Specification (a.k.a POSIX), it's not part of the standard C I/O library. If your application requires complete Unix-style filesystem interface, perhaps a Raspberry Pi would be a more suitable platform than an ESP32.