Search found 38 matches

by markkuk
Sun Apr 21, 2024 9:43 am
Forum: IDEs for ESP-IDF
Topic: include wifi.h can't be resolved in VSCode
Replies: 3
Views: 3364

Re: include wifi.h can't be resolved in VSCode

Your first code sample is for the Arduino platform and the second is for ESP-IDF. The private wifi.h header in ESP-IDF isn't the same as the WiFi.h header in Arduino and including it won't provide any Arduino-like functionality for your code.
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: 3363

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: 3949

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: 4478

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: 2150

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: 3729

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: 8896

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: 1906

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: 4195

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...