Search found 4 matches

by taruroy
Mon Apr 29, 2024 8:28 pm
Forum: ESP-IDF
Topic: Uart driver Install fail - ESP_ERR_NOT_FOUND
Replies: 1
Views: 648

Uart driver Install fail - ESP_ERR_NOT_FOUND

Chip: ESP32S3 IDF: 4.4 When calling uart_driver_install(UART_NUM_1, rx_buf, tx_buf, q_size, &queue, 0); The call fails with ESP_ERR_NOT_FOUND about 5% of the times. Hence the problem is not easily reproducible. I replaced the call with 3 different calls esp_err_t err = uart_driver_install(UART_NUM_1...
by taruroy
Mon Apr 15, 2019 7:13 pm
Forum: General Discussion
Topic: Static variable (NVS handle) in a file getting overwritten
Replies: 1
Views: 3131

Static variable (NVS handle) in a file getting overwritten

I am initializing and using a file static nvs handle for getting and setting variables. static nvs_handle xNvsHandle; void vInitNVS() { esp_err_t err = nvs_flash_init(); if (err == ESP_ERR_NVS_NO_FREE_PAGES || err == ESP_ERR_NVS_NEW_VERSION_FOUND) { ESP_ERROR_CHECK(nvs_flash_erase()); ESP_ERROR_CHEC...
by taruroy
Thu Feb 07, 2019 5:28 am
Forum: General Discussion
Topic: Api usage in IRAM_ATTR interrupts
Replies: 3
Views: 7497

Re: Api usage in IRAM_ATTR interrupts

Thanks for the reply.
My question was specific to interrupts allocated using ESP_INTR_FLAG_IRAM.
So it seems like even other important functions such as memset or more importantly xQueueSendToBackFromISR cannot be used?
If yes, this does seem to limit the functionality of such ISRs quite a bit.
by taruroy
Thu Feb 07, 2019 1:22 am
Forum: General Discussion
Topic: Api usage in IRAM_ATTR interrupts
Replies: 3
Views: 7497

Api usage in IRAM_ATTR interrupts

In one of the timer examples, the following is mentioned before an ISR definition: * Note: * We don't call the timer API here because they are not declared with IRAM_ATTR. * If we're okay with the timer irq not being serviced while SPI flash cache is disabled, * we can allocate this interrupt withou...