Search found 559 matches

by boarchuz
Wed Mar 09, 2022 9:00 am
Forum: ESP-IDF
Topic: WiFi switch without disconnect.
Replies: 11
Views: 6359

Re: WiFi switch without disconnect.

Can you share your code?
by boarchuz
Wed Mar 09, 2022 5:42 am
Forum: General Discussion
Topic: How to display image on webserver
Replies: 10
Views: 10290

Re: How to display image on webserver

However, the issue is when I try to display the image together with other html elements on my index page. I would like to display the logo, some text, some tables and other things: The html and the image should be separate HTTP requests*. Headers are sent first, including the Content-Type which spe...
by boarchuz
Tue Mar 08, 2022 10:53 am
Forum: ESP-IDF
Topic: [Solved] esp_partition_write for OTA
Replies: 4
Views: 2470

Re: esp_partition_write for OTA

if ((received = httpd_req_recv(req, buf, MIN(remaining, 512))) <= 0) ... ESP_ERROR_CHECK(esp_partition_write(partition, 0 + (iterator * 512), buf, MIN(remaining, 512))); You're unconditionally writing 512 bytes of the buffer, despite perhaps having less available. Everything after the actual number...
by boarchuz
Mon Mar 07, 2022 3:25 am
Forum: ESP-IDF
Topic: How can I place a variable at an absolute address? Pass value between bootloader hook and application.
Replies: 7
Views: 4655

Re: How can I place a variable at an absolute address? Pass value between bootloader hook and application.

I don't think it's possible to specify an address. You would need to maintain a custom esp_system component with your new section specified in the relevant linker script. I had a need for the same thing this week - reserved RTC slow memory without having to have an entire esp_system hanging about to...
by boarchuz
Wed Mar 02, 2022 4:58 am
Forum: ESP32 Arduino
Topic: ESP32 goes into unknown state
Replies: 1
Views: 1468

Re: ESP32 goes into unknown state

ESP32 datasheet, section 2.3: • In scenarios where ESP32 is powered on and off repeatedly by switching the power rails, while there is a large capacitor on the VDD33 rail and CHIP_PU and VDD33 are connected, simply switching off the CHIP_PU power rail and immediately switching it back on may cause a...
by boarchuz
Fri Feb 25, 2022 6:15 pm
Forum: ESP-IDF
Topic: WiFi switch without disconnect.
Replies: 11
Views: 6359

Re: WiFi switch without disconnect.

Yes you can change modes without needing to stop and restart the driver.
by boarchuz
Wed Feb 23, 2022 4:48 pm
Forum: General Discussion
Topic: ESP32 IRAM and DRAM
Replies: 7
Views: 8082

Re: ESP32 IRAM and DRAM

zazas321 wrote:
Wed Feb 23, 2022 6:23 am
Would you be able to suggest a good reading material on this kind of topic because I havent been able to find a good source.
https://blog.espressif.com/esp32-progra ... 9444d89387
by boarchuz
Mon Feb 07, 2022 2:20 am
Forum: General Discussion
Topic: GPIO Interrupt from a class file
Replies: 12
Views: 15547

Re: GPIO Interrupt from a class file

chukitoes wrote:
Sun Feb 06, 2022 6:31 pm
But, it actually does work
Sorry, I think I was off the mark - I was mixed up with the common case where the header would have 'static' variables, in which case they would be 'duplicated' wherever that header is included.
by boarchuz
Sun Feb 06, 2022 5:50 am
Forum: General Discussion
Topic: GPIO Interrupt from a class file
Replies: 12
Views: 15547

Re: GPIO Interrupt from a class file

ANSI_Encoder.h: uint32_t C_cnt; rotary_encoder_example_main.c: #include "ANSI_ENCODER.h" printf("CNT C: %d\n", C_cnt); ANSI_Encoder.c: uint32_t C_cnt; C_cnt++; By including ANSI_ENCODER.h in your main.c, you declare a C_cnt in that translation unit. This is not the same memory as the C_cnt in the A...