Search found 156 matches

by hassan789
Sat Dec 09, 2017 4:01 am
Forum: General Discussion
Topic: trouble with Open OCD
Replies: 1
Views: 3363

Re: trouble with Open OCD

Try these steps:

1. try plugging the USB directly into your computer (don't use a USB hub).
2. try a different USB port (that is directly connected to the computer)
3. Double check the Zadig setting
4. put the ESP in bootload mode (hold BOOT pin, and hit the EN pin), then start openOCD
by hassan789
Fri Dec 08, 2017 3:09 am
Forum: General Discussion
Topic: Unexpected break/watch point in FreeRTOS code cannot be resumed
Replies: 3
Views: 6042

Re: Unexpected break/watch point in FreeRTOS code cannot be resumed

I have been living with same problem. I am running in eclipse on windows.
Hoping the dev team is working on improving debugging.
by hassan789
Sat Nov 25, 2017 6:06 pm
Forum: General Discussion
Topic: OpenSSL vs mBedTLS
Replies: 5
Views: 12383

Re: OpenSSL vs mBedTLS

Thanks WiFive. It looks like "esp-idf/components/openssl/platform/" wraps mbedtls to make it look like openssl.
Seems its easier to use the openssl API, but it gives less control and is less efficient than directly using mbedtls.
by hassan789
Fri Nov 24, 2017 4:37 am
Forum: General Discussion
Topic: OpenSSL vs mBedTLS
Replies: 5
Views: 12383

OpenSSL vs mBedTLS

Some basic SSL Questions, which I am having trouble with... 1. What is the difference between OpenSSL vs mbedTLS, as used in the ESP-IDF sdk? It looks like mbedTLS has additional crypto libraries as well. 2. Why do both libraries need to be included in the SDK? Sometimes I see examples using OpenSSL...
by hassan789
Thu Nov 23, 2017 1:35 am
Forum: ESP-IDF
Topic: Minimizing power consumption while connected to WiFi
Replies: 6
Views: 19299

Re: Minimizing power consumption while connected to WiFi

A good article on how modem-sleep, light-sleep and DTIM will work (but its for esp8266). Looks like the esp8266 can get <1mA at DTIM 3 when idle. https://www.espressif.com/sites/default/files/9b-esp8266-low_power_solutions_en_0.pdf Hopefully, we get light-sleep (aka tickless sleep) soon for ESP32 as...
by hassan789
Wed Nov 22, 2017 1:30 am
Forum: General Discussion
Topic: What happens if two ESP32 use the same static IP?
Replies: 2
Views: 4501

Re: What happens if two ESP32 use the same static IP?

Thanks. I guess I will test it myself to see how the esp/lwip stack will react.
by hassan789
Tue Nov 21, 2017 3:35 pm
Forum: General Discussion
Topic: What happens if two ESP32 use the same static IP?
Replies: 2
Views: 4501

What happens if two ESP32 use the same static IP?

What would happen if two ESP32 use the same static IP (via WiFi)? Will the second one not be able to connect?
by hassan789
Sat Nov 04, 2017 2:28 am
Forum: General Discussion
Topic: Inter-task Communication: pass the same payload through more then two tasks
Replies: 7
Views: 9501

Re: Inter-task Communication: pass the same payload through more then two tasks

Option 1: Do 3 different queues. This will use more memory, but will ensure parallel push of data.
Options 2: Use 3 different binary semaphore "takes", and have each task retrieve the payload upon a successful "take".
by hassan789
Thu Nov 02, 2017 2:35 am
Forum: ESP-IDF
Topic: ESP32 IDF RTOS SDK vs NON-OS SDK
Replies: 3
Views: 7298

Re: ESP32 IDF RTOS SDK vs NON-OS SDK

Once you use FreeRTOS (or other RTOS) you will never go back to bare metal. There is a few hours of learning curve, but you will understand it very quickly.
by hassan789
Tue Oct 31, 2017 2:54 am
Forum: ESP-IDF
Topic: Confusing Heap availability in ESP-IDF (dual-core, freertos, no Bluetooth, no wifi)
Replies: 2
Views: 5330

Re: Confusing Heap availability in ESP-IDF (dual-core, freertos, no Bluetooth, no wifi)

Thanks ESP_igrr, I was able to allocate 280kB of ram, via malloc. Looks like however, non-contiguous memory is not supported at this time, since I could not malloc all 280kB at once. Had to do it in this exact order of 3 chunks: 160kB 110kB 10kB Next steps is to study the heap_caps API: http://esp-i...