Search found 57 matches

by cruvus
Fri Jul 29, 2022 6:38 pm
Forum: ESP-IDF
Topic: Not able to redirect crash report using esp_log_set_vprintf
Replies: 3
Views: 1802

Re: Not able to redirect crash report using esp_log_set_vprintf

Thank you for pointing me to the right file. That was indeed very helpful and solved the problem by introducing my own panic_print_char() function. :)
by cruvus
Fri Jul 29, 2022 3:52 pm
Forum: ESP-IDF
Topic: SPI mode promotion?
Replies: 4
Views: 2577

Re: SPI mode promotion?

Is there a way to get the currently active SPI flash mode from inside the app?
by cruvus
Wed Jul 27, 2022 3:11 pm
Forum: ESP-IDF
Topic: SPI mode promotion?
Replies: 4
Views: 2577

SPI mode promotion?

The SPI mode (40/80 MHz, DOUT/QIO and so on) is compiled into the bootloader and also the app. Is that right? I wonder if it is somehow possible to first boot into a fail-safe mode (40 MHz, DOUT) and later switch to the fastest possible mode. Let's say of the devices in the field some are capable of...
by cruvus
Sat Jul 23, 2022 9:03 pm
Forum: ESP-IDF
Topic: Crash when using rmt and reading flash at the same time
Replies: 1
Views: 1215

Crash when using rmt and reading flash at the same time

ESP32 rev0 on TTGO, using IDF 4.4.1. Compiled with -Os parameter (important). #include <string.h> #include "driver/rmt.h" #include "nvs_flash.h" void app_main(void) { rmt_config_t tx = { .channel = RMT_CHANNEL_0, .gpio_num = 20, .mem_block_num = 1, .clk_div = 40, .tx_config.idle_output_en = true, .r...
by cruvus
Fri Jul 22, 2022 10:50 pm
Forum: ESP-IDF
Topic: mDNS crash when functions called in wrong order
Replies: 3
Views: 2234

Re: mDNS crash when functions called in wrong order

Minimum code example: #include "esp_log.h" #include "esp_wifi.h" #include "nvs_flash.h" #include "mdns.h" static const char *TAG = "main"; void app_main(void) { nvs_flash_init(); esp_netif_init(); esp_event_loop_create_default(); esp_netif_create_default_wifi_sta(); wifi_init_config_t wifi_init_conf...
by cruvus
Fri Jul 22, 2022 10:11 pm
Forum: ESP-IDF
Topic: mDNS crash when functions called in wrong order
Replies: 3
Views: 2234

mDNS crash when functions called in wrong order

The correct order to call the functions is: mdns_init mdns_hostname_set mdns_instance_name_set mdns_service_add When we call them like this: mdns_init mdns_service_add mdns_hostname_set mdns_instance_name_set The IDF crashes with a LoadProhibited. And it costs hours to find out the wrong order is th...
by cruvus
Thu Jul 21, 2022 11:07 pm
Forum: ESP-IDF
Topic: Not able to redirect crash report using esp_log_set_vprintf
Replies: 3
Views: 1802

Re: Not able to redirect crash report using esp_log_set_vprintf

Is there a way to get ets_install_putc1() operational in the ESP32 IDF?
by cruvus
Sun Jul 17, 2022 8:25 am
Forum: ESP-IDF
Topic: System time corrupted across reboots
Replies: 11
Views: 6633

Re: System time corrupted across reboots

Example code. Run it and leave it for 1-3 days. It will (soft-)restart automatically every hour. Use PuTTY or a similar terminal and do not hardware reset the chip during the test. The problem will only manifest after several hours or days. Typical output see below. #include "esp_log.h" #include "es...