Search found 2344 matches

by ESP_Angus
Mon Aug 06, 2018 6:50 am
Forum: ESP-IDF
Topic: std::this_thread::yield()
Replies: 12
Views: 17586

Re: std::this_thread::yield()

Yes, pthread yielding (and libstdc++ thread yield on top of that) is implemented and supported. The difference here is in the behaviour of "yield" on a conventional OS (like Windows/MacOS/most installs of Linux) and a real-time OS like FreeRTOS. Yielding in FreeRTOS means "immediately allow a task o...
by ESP_Angus
Mon Aug 06, 2018 4:29 am
Forum: General Discussion
Topic: KAFKA producer on ESP-32 running esp-idf
Replies: 1
Views: 5679

Re: KAFKA producer on ESP-32 running esp-idf

(Moderator's note: I've split this question to a new topic and moved it out of the News forum.) I'm not familiar with Kafka, but you're correct that sending 21,500 MQTT messages/sec will not be possible on an ESP32. Do you need to send one sample per MQTT message? If you can combine multiple samples...
by ESP_Angus
Sun Aug 05, 2018 11:18 pm
Forum: General Discussion
Topic: Understanding/Debugging Stack Smashing
Replies: 6
Views: 14557

Re: Understanding/Debugging Stack Smashing

Probably I don't quite understand how to find the correct version of arduino-esp to use with the official released esp-idf. I think arduino-esp32 tends to track "master" rather than releases. You can tell which ESP-IDF version was used to build the precompiled libraries (used by the Arduino IDE) by...
by ESP_Angus
Fri Aug 03, 2018 6:38 am
Forum: General Discussion
Topic: Understanding/Debugging Stack Smashing
Replies: 6
Views: 14557

Re: Understanding/Debugging Stack Smashing

the trace is showing that WiFiGenericClass::getMode() is somehow overwriting the bounds of its stack (which I find hard to believe). How old is your version of the Arduino repo? There was (technically) a stack smashing bug in this function which was fixed very recently. The type of the "mode" local...
by ESP_Angus
Fri Aug 03, 2018 5:58 am
Forum: ESP-IDF
Topic: UART minimum baudrate????
Replies: 10
Views: 17272

Re: UART minimum baudrate????

I don't think an issue was ever opened, so yes please open one.
by ESP_Angus
Wed Aug 01, 2018 11:25 pm
Forum: General Discussion
Topic: Secure boot problem
Replies: 9
Views: 11126

Re: Secure boot problem

Hi Dmitry, Glad you got everything working. Sorry I didn't think of the digest bug when I first replied. ESP-IDF v3.1 includes esptool v2.5.0, but there's no reason why using IDF 3.0.2 + esptool v2.5.0 won't keep working. I've enabled both secure boot and flash encryption. Now bootloader and app par...
by ESP_Angus
Wed Aug 01, 2018 5:33 am
Forum: General Discussion
Topic: Secure boot problem
Replies: 9
Views: 11126

Re: Secure boot problem

Hi dmitryga, This all looks correct to me. What version of ESP-IDF are you using? (You can check by running "cd $IDF_PATH" then "git describe --tags --dirty") A bug was fixed in esptool v2.5.0 where digest_secure_bootloader could produce an incorrect digest under some circumstances. You can check if...
by ESP_Angus
Wed Aug 01, 2018 1:33 am
Forum: General Discussion
Topic: Any way to override MBEDTLS_PLATFORM_MEMORY define?
Replies: 14
Views: 15789

Re: Any way to override MBEDTLS_PLATFORM_MEMORY define?

An update, the MBEDTLS_PLATFORM_MEMORY PR is queued for merging. There is also a change in internal review for SPIRAM_MALLOC_RESERVE_INTERNAL, to allow this pool to be allocated from multiple non-contiguous regions if needed, to make up the complete size. It also increases the maximum reservation si...
by ESP_Angus
Wed Aug 01, 2018 1:19 am
Forum: General Discussion
Topic: Where does xQueueCreate get its memory from?
Replies: 2
Views: 4961

Re: Where does xQueueCreate get its memory from?

If you call xQueueCreate() or xTaskCreate() or xTaskCreatePinnedToCore(), the memory for the queue contents or the task stack is allocated from heap. If you have external SPI RAM enabled, the tasks have to be allocated from internal memory but the queues can be allocated anywhere. There are also "st...
by ESP_Angus
Tue Jul 31, 2018 6:54 am
Forum: ESP-ADF
Topic: ESP 32 ADF next release date?
Replies: 2
Views: 6412

Re: ESP 32 ADF next release date?

(Moderator's note: I've moved this topic to the ADF forum.)