Search found 483 matches

by chegewara
Mon Oct 22, 2018 5:01 pm
Forum: ESP32 ADF
Topic: Bluetooth wifi coexistence problem
Replies: 2
Views: 136

Re: Bluetooth wifi coexistence problem

Still this can be related to lack of heap. Try this to see how much heap you have and if you are using spiram at all: heap_caps_print_heap_info(MALLOC_CAP_INTERNAL); heap_caps_print_heap_info(MALLOC_CAP_SPIRAM); About 2 weeks ago ive got similar issue with ble + wifi coex (dont remember exact logs) ...
by chegewara
Sun Oct 21, 2018 4:47 pm
Forum: ESP32 IDF
Topic: BLE GATT Client in peripheral role
Replies: 2
Views: 48

Re: BLE GATT Client in peripheral role

Yes, it should be possible. As fas i did 3 of 4 possible role mix, this is the last one i still have to build example. All you have to do is to make sure you are connected with your smartphone before you start searching for services, and my advice is to turn of nvs caching when you start (it gave me...
by chegewara
Sun Oct 21, 2018 4:28 pm
Forum: Sample Code
Topic: Example of using Queue to pass strings between tasks
Replies: 16
Views: 1883

Re: Example of using Queue to pass strings between tasks

You have to initialize single_tag with malloc or similar before you can use it.
by chegewara
Sat Oct 20, 2018 9:37 am
Forum: ESP32 IDF
Topic: SPIRAM malloc issues
Replies: 3
Views: 106

Re: SPIRAM malloc issues

Looks like it was my code, with heap_caps_malloc it works now.
by chegewara
Sat Oct 20, 2018 8:52 am
Forum: ESP32 IDF
Topic: SPIRAM malloc issues
Replies: 3
Views: 106

Re: SPIRAM malloc issues

@ESP_Sprite I can avoid this heap corruption errors, but i have to create task with 100kB stack and obviously it is not what i want. It is very simple app, client app reading data from I2S camera and http client sending base64 data to server. Even if i turn on in menuconfig option to allocate memory...
by chegewara
Fri Oct 19, 2018 10:48 pm
Forum: ESP32 IDF
Topic: SPIRAM malloc issues
Replies: 3
Views: 106

SPIRAM malloc issues

Hi, i am trying to allocate pretty big memory amount in SPIRAM with every known to me configuration combinations + malloc functions. Ive been trying malloc() with proper settings in menuconfig, and heap_caps_malloc uint8_t *buffer = heap_caps_malloc(1024*150, MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT); //...
by chegewara
Fri Oct 19, 2018 8:37 pm
Forum: Hardware
Topic: New wrover module (8MB psram)
Replies: 10
Views: 622

Re: New wrover module (8MB psram)

There will be an option to use part of the 4MiB mappable address range to bank-switch the remaining memory in. Afaik it hasn't made it into esp-idf yet, though. Bad ESP_Sprite, bad bad bad ;), we have this API and you didnt tell us about it :P I think we have new field to discover and few people wi...
by chegewara
Fri Oct 19, 2018 8:13 pm
Forum: General Discussion
Topic: DMA and DAC
Replies: 7
Views: 190

Re: DMA and DAC

https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/dac.html#overview ESP32 has two 8-bit DAC (digital to analog converter) channels, connected to GPIO25 (Channel 1) and GPIO26 (Channel 2). https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/da...
by chegewara
Fri Oct 19, 2018 8:10 pm
Forum: ESP32 IDF
Topic: ESP32 resets while deleting task from another task
Replies: 7
Views: 175

Re: ESP32 resets while deleting task from another task

This is what i meant: void vOtherFunction( void ) { // Use the handle to delete the task. if( vTaskCodeHandle!= NULL ) { vTaskDelete( vTaskCodeHandle); } for(;;){ // <-- infinite loop to not allow task exit } // OR while(1){} // OR vTaskDelete(NULL); // destroy this task (vOtherFunction) } PS Its we...
by chegewara
Fri Oct 19, 2018 8:06 pm
Forum: ESP32 Arduino
Topic: How to convert OV7670' output into MIME (base64 coding)
Replies: 1
Views: 111

Re: How to convert OV7670' output into MIME (base64 coding)

Hi, sorry for late reply but i just started similar project to yours. This is how i am changing data from camera to base64 string: size_t size = image.size; const uint8_t* image = image.data; uint8_t *buffer = calloc((size + 2 - ((size + 2) % 3)) / 3 * 4 + 1, sizeof(char)); // <--- equation from int...

Go to advanced search