Search found 2238 matches

by chegewara
Mon Jun 01, 2020 12:25 pm
Forum: ESP-IDF
Topic: [solved] sprintf() Guru Meditation Error (maximum Task Size?)
Replies: 9
Views: 9618

Re: sprintf() Guru Meditation Error (maximum Task Size?)

Code: Select all

char* HTML = (char*)malloc(8500);
	if (HTML != NULL)
	{
		ESP_LOGD(TAG,"Fill HTML file");
		export_aio_conf(conf, HTML, html_request);
	
	    ESP_LOGD(TAG,"Send Response");
	    httpd_resp_send(req, (const char*)HTML, strlen(HTML));
	    free(HTML);
	}
by chegewara
Sat May 30, 2020 2:45 am
Forum: Sample Code
Topic: esp32 s2 tinyUSB
Replies: 38
Views: 132183

esp32 s2 tinyUSB

I would like to share good news. Today i finished updating tinyUSB component to master branch and have prepared 3 useful and really cool examples https://github.com/chegewara/esp-idf/tree/master/examples/peripherals/usb: - CDC usb, communication device class, which allows to connect with any termina...
by chegewara
Sat May 30, 2020 12:16 am
Forum: General Discussion
Topic: ESP32 OTA via BLE
Replies: 25
Views: 45143

Re: ESP32 OTA via BLE

Simple code, using Kolban's library, the same which is in arduino-esp32. No CRC or any other error correction, sending with notifications, MTU 512. Client app to OTA update is ionic on android, iOS app is using max 185 MTU and update is longer accordingly. I am using it in few projects, also commerc...
by chegewara
Fri May 29, 2020 8:56 pm
Forum: ESP-IDF
Topic: Firmware Update OTA
Replies: 13
Views: 10637

Re: Firmware Update OTA

ota_data_initial.bin @0x9000 This address is still not 16 bytes aligned. In that case you have to set start address, 0x10000 for example. Remember the same rule, address aligned, needs to be used for factory and ota partitions. Thats why most common are 0x10000, 0x20000 in case of first app partiti...
by chegewara
Fri May 29, 2020 1:16 pm
Forum: ESP IoT Solution
Topic: How to install esp-iot-solution?
Replies: 3
Views: 5046

Re: How to install esp-iot-solution?

Here is all you need:
https://github.com/espressif/esp-iot-so ... rationmake

Which part is confusing you?
iot-solution is using esp-idf which is in submodule folder with checkout hash. If you will update it to some newer version it may not work.
by chegewara
Thu May 28, 2020 9:16 pm
Forum: ESP-IDF
Topic: BLE requires another pairing process after ESP reboots? esp-idf, BLE
Replies: 2
Views: 3545

Re: BLE requires another pairing process after ESP reboots? esp-idf, BLE

esp_ble_auth_req_t auth_req = ESP_LE_AUTH_REQ_SC_BOND;
by chegewara
Thu May 28, 2020 8:15 pm
Forum: ESP-IDF
Topic: ble mesh light model
Replies: 2
Views: 2949

ble mesh light model

We have generic ON/OFF example and more or less i understand it, but i need to use lighting server/client model. I know how lighting model should extend generic on/off and generic level models https://www.bluetooth.com/wp-content/uploads/2019/04/1903_Mesh-Models-Overview_FINAL.pdf but now is my ques...
by chegewara
Thu May 28, 2020 12:12 pm
Forum: ESP-IDF
Topic: Firmware Update OTA
Replies: 13
Views: 10637

Re: Firmware Update OTA

Ok, i think i know what is wrong.
Brunosugui wrote: nvs, data, nvs, , 0x23000
otadata, data, ota, , 0x2000
As far as i remember otadata partition has to be aligned to 16. Please try to change both partitions order.
by chegewara
Thu May 28, 2020 11:55 am
Forum: ESP-IDF
Topic: What is the meaning of rst:0x1 (POWERON_RESET),boot:0x2
Replies: 2
Views: 20926

Re: What is the meaning of rst:0x1 (POWERON_RESET),boot:0x2

boot:0xNN (DESCRIPTION) is the hex value of the strapping pins, as represented in the GPIO_STRAP register. The individual bit values are as follows:

0x01 - GPIO5
0x02 - MTDO (GPIO15)
0x04 - GPIO4
0x08 - GPIO2
0x10 - GPIO0
0x20 - MTDI (GPIO12)
by chegewara
Thu May 28, 2020 11:51 am
Forum: ESP IoT Solution
Topic: BLE & WIFI simultaneous usage in amazon freetos
Replies: 3
Views: 4834

Re: BLE & WIFI simultaneous usage in amazon freetos

aravind p wrote: esp_image: Image length 1201904 doesn't fit in partition length 1048576
This line tells you all. Binary is bigger than partition. What you have to do is to use custom partition table.