espressif / esp-homekit-sdk

562 stars 105 forks source link

httpd_start() don't start, has problem with create stack ESP32-S3 SPIRAM 8MB (IDFGH-13325) #140

Closed MacWyznawca closed 2 months ago

MacWyznawca commented 2 months ago

Answers checklist.

IDF version.

5.3 release

Espressif SoC revision.

ESP32-S3 (QFN56) Embedded PSRAM 8MB

Operating System used.

macOS

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

None

Development Kit.

Custom

Power Supply used.

External 5V

What is the expected behavior?

Start esp-homekit-sdk MFi, but after update IDF from 5.2.2 to 5.3 project without changes in code and settings, don't start HomeKit runtime.

What is the actual behavior?

HomeKit rountine can't start httpd. Internal httpd_os_thread_create() can't create task. xTaskCreatePinnedToCoreWithCaps(thread_routine, name, stacksize, arg, prio, thread, core_id, caps); return zero.

Steps to reproduce.

Test httpd with ESP32S3 and SPIRAM

Debug Logs.

No response

More Information.

No response

shahpiyushv commented 2 months ago

There does not seem to be a problem with esp32s3 + idf v5.3 when I tried at my end. Are you on the latest esp-homekit-sdk, which has this fix for httpd start? Same commit is also available on the MFi variant of the SDK.

MacWyznawca commented 2 months ago

Hi @shahpiyushv I force change (like on pic.) in osal.h file xTaskCreatePinnedToCoreWithCaps caps field to MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT, and on our S3 witch SPIRAM works great, but this is not elegant 😉

image
MacWyznawca commented 2 months ago

@shahpiyushv Thanks! This fix work great witout my not elegant changes 😉